dev-python/srt: moved to ::gentoo

Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
David Roman
2024-07-15 10:19:30 +02:00
parent 38818f22fb
commit 4a28a4fa38
5 changed files with 0 additions and 128 deletions

View File

@@ -1,3 +0,0 @@
DIST srt-3.5.1.tar.gz 24003 BLAKE2B 0ba77727043090310d2db69d9569bde53fcd69a55715e9721a83ee148d382459b1d68b369eee52fc7f99ba5e8aca017128a2d999e44b5ae77dda027a23ecc8bc SHA512 0523b5b31d78db195911ea632adbd25e76d1270510cf9c7432a44bd96e44d4928196c7e4f2eed05bbd73c1d96dcbe99ecea2bd755d697ff659924773c3e6a05e
DIST srt-3.5.2.tar.gz 24416 BLAKE2B 7da4401cce45045058f4d91a3ea3b688ae65f48d039b642abdf649acf2a8e416e096a5959235dc0165ac0a2169ca63a66b101bac6d8f20b0b330d165626b5010 SHA512 5367d7fa3ed23523f03efad1524fcb44c1a8e1c95e2f3032c0e11ff67795a1399eb32b27365e4b0f98ed5b1d7671d576ab8cd342d50bb4005554faaf03ea9c8a
DIST srt-3.5.3.tar.gz 28296 BLAKE2B 97f8852a799e80401f09219b43b41f5d5f9fe2c7283e2b43312aef70d783d7f1c1bf126e076c3a13c10e74e80ff48f25075cc7a1cef58a99fb4ef32cfa5b2587 SHA512 434331d31763a339ebb7d5b335b9d924b7f6939f307ecd0e5476b91da19b39e0febf1a387199e22f0b15365a4305c24021d85a32a7b65058905abd7946865b70

View File

@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>smaniotto.nicola@gmail.com</email>
<name>Nicola Smaniotto</name>
</maintainer>
<upstream>
<remote-id type="github">cdown/srt</remote-id>
<remote-id type="pypi">srt</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -1,37 +0,0 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1 pypi
DESCRIPTION="A tiny library for parsing, modifying, and composing SRT files"
HOMEPAGE="https://github.com/cdown/srt"
LICENSE="MIT"
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."
}

View File

@@ -1,38 +0,0 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 pypi
DESCRIPTION="A tiny library for parsing, modifying, and composing SRT files"
HOMEPAGE="https://github.com/cdown/srt"
LICENSE="MIT"
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."
}

View File

@@ -1,38 +0,0 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 pypi
DESCRIPTION="A tiny library for parsing, modifying, and composing SRT files"
HOMEPAGE="https://github.com/cdown/srt"
LICENSE="MIT"
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."
}