From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-python/pysrt/Manifest | 1 + dev-python/pysrt/metadata.xml | 13 ++++++++++++ dev-python/pysrt/pysrt-1.1.2-r1.ebuild | 37 ++++++++++++++++++++++++++++++++++ dev-python/pysrt/pysrt-9999.ebuild | 31 ++++++++++++++++++++++++++++ 4 files changed, 82 insertions(+) create mode 100644 dev-python/pysrt/Manifest create mode 100644 dev-python/pysrt/metadata.xml create mode 100644 dev-python/pysrt/pysrt-1.1.2-r1.ebuild create mode 100644 dev-python/pysrt/pysrt-9999.ebuild (limited to 'dev-python/pysrt') diff --git a/dev-python/pysrt/Manifest b/dev-python/pysrt/Manifest new file mode 100644 index 000000000000..d964d0eb1a29 --- /dev/null +++ b/dev-python/pysrt/Manifest @@ -0,0 +1 @@ +DIST pysrt-1.1.2.tar.gz 104371 BLAKE2B b6f8e1e6d0cc0ae7ac4a5eb1ac9c5444318fd579fd2cbd926bed932326c986743d3efc1b604353df92a3dc67ea0d47f9a77eeba28d561b3f69b4b63eff8b78ad SHA512 a3a0988068d3cc13e6d44aec548a94e79d9ed29cfcd1e8e35ff56b50f0feb32a1baac2220c5331281c98a19ad9a3e9f960832a661699921cde0d185ea21e9753 diff --git a/dev-python/pysrt/metadata.xml b/dev-python/pysrt/metadata.xml new file mode 100644 index 000000000000..83559435ed9b --- /dev/null +++ b/dev-python/pysrt/metadata.xml @@ -0,0 +1,13 @@ + + + + + sbraz@gentoo.org + Louis Sautier + + + + https://github.com/byroot/pysrt/issues + + baldeagleos-repo + diff --git a/dev-python/pysrt/pysrt-1.1.2-r1.ebuild b/dev-python/pysrt/pysrt-1.1.2-r1.ebuild new file mode 100644 index 000000000000..1a0e7b71be98 --- /dev/null +++ b/dev-python/pysrt/pysrt-1.1.2-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 + +DESCRIPTION="Python library used to edit or create SubRip files" +HOMEPAGE=" + https://github.com/byroot/pysrt/ + https://pypi.org/project/pysrt/ +" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/byroot/pysrt.git" +else + inherit pypi + KEYWORDS="amd64 ~arm arm64 x86" +fi + +LICENSE="GPL-3+" +SLOT="0" + +RDEPEND=" + dev-python/chardet[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + # https://github.com/byroot/pysrt/commit/93f52f6d4f70f4e18dc71deeaae0ec1e9100a50f + sed -i -e 's:assertEquals:assertEqual:' tests/*.py || die + distutils-r1_src_prepare +} diff --git a/dev-python/pysrt/pysrt-9999.ebuild b/dev-python/pysrt/pysrt-9999.ebuild new file mode 100644 index 000000000000..baa23d6e39b7 --- /dev/null +++ b/dev-python/pysrt/pysrt-9999.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 + +DESCRIPTION="Python library used to edit or create SubRip files" +HOMEPAGE=" + https://github.com/byroot/pysrt/ + https://pypi.org/project/pysrt/ +" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/byroot/pysrt.git" +else + inherit pypi + KEYWORDS="~amd64 ~arm ~arm64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" + +RDEPEND=" + dev-python/chardet[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest -- cgit v1.3