mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-12 16:43:17 -04:00
dev-python/srt: bump to 3.5.0
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Nicola Smaniotto <smaniotto.nicola@gmail.com>
This commit is contained in:
38
dev-python/srt/srt-3.5.0.ebuild
Normal file
38
dev-python/srt/srt-3.5.0.ebuild
Normal file
@@ -0,0 +1,38 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A tiny library for parsing, modifying, and composing SRT files"
|
||||
HOMEPAGE="https://github.com/cdown/srt"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
DEPEND="
|
||||
test? (
|
||||
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
mv "${S}"/srt_tools/srt "${S}"/srt_tools/srt-cdown || die "Cannot rename the file"
|
||||
sed -e 's|"srt_tools/srt"|"srt_tools/srt-cdown"|' \
|
||||
-i "${S}"/setup.py || die "Cannot update setup.py"
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "To avoid conflict with dev-python/pysrt::gentoo the binary has been"
|
||||
ewarn "renamed /usr/bin/srt-cdown. The python module is still called srt."
|
||||
}
|
||||
Reference in New Issue
Block a user