dev-python/srt: new package (3.0.0)

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Nicola Smaniotto <smaniotto.nicola@gmail.com>
This commit is contained in:
Nicola Smaniotto
2021-07-26 10:51:12 +02:00
parent edfae2874b
commit 05a53fb2e3
3 changed files with 39 additions and 0 deletions

1
dev-python/srt/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST srt-3.4.1.tar.gz 23723 BLAKE2B 33445cb969db64e89978c06fcb0b8145047a1f40082500f507b8c70d42489dc083f7b2972868bf08a9f5fcb1b9a279df279f034455d0b326f3c03da086bd59c5 SHA512 bb214935203b4d3a8bc1dc7968ed318ed55709b880046dd070c3547e5c5e7df6d12f445e3be83a2e938096655008705a76461c404494a1c8eccee36f2ff465cd

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<maintainer type="person">
<email>smaniotto.nicola@gmail.com</email>
<name>Nicola Smaniotto</name>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,30 @@
# 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"
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."
}