diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
| commit | dda948891d3731927b821ce31f9d9a2d03ba20c5 (patch) | |
| tree | 99cd40be4cbb0606260da212cd81b8ab2db9da9b /dev-python/av | |
| parent | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (diff) | |
| download | baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.gz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.xz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.zip | |
Adding metadata
Diffstat (limited to 'dev-python/av')
| -rw-r--r-- | dev-python/av/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/av/av-17.0.0.ebuild | 93 | ||||
| -rw-r--r-- | dev-python/av/av-17.0.1.ebuild | 93 | ||||
| -rw-r--r-- | dev-python/av/metadata.xml | 12 |
4 files changed, 200 insertions, 0 deletions
diff --git a/dev-python/av/Manifest b/dev-python/av/Manifest new file mode 100644 index 000000000000..cd561b90b3ff --- /dev/null +++ b/dev-python/av/Manifest @@ -0,0 +1,2 @@ +DIST av-17.0.0.gh.tar.gz 218778 BLAKE2B 215c2728779eae2592546e361787f4b0449f0efe7f81f3b4512d9affe8063a0f20a0cd449b6e8c365ff0b3f15a0919c524ecd16625f58be1351694000c8f34a8 SHA512 f65692fdbd2757a55cdd15077bafc3dd180ea046468d90c47a29fafbaad18d4aa44166dc463a6378afb6ab7edd5785045f5987b23b0c53deef60a0d08d92fb46 +DIST av-17.0.1.gh.tar.gz 220046 BLAKE2B b7523cebc6178f6c4648b0d6ac3f6dd26f109823e57d0cfb860d7edc4122b7c8cfa4c34716dd39f433680fd20217c79ccadf188691419993c4da88c46d82c03a SHA512 ca4301ce952e2e8994af761bf719ce835f587e0424eed02245327f07f4d655b14d30c90e1402de197f40dae6941bbae27ae97dc94f4ce026fff160146e7af9ed diff --git a/dev-python/av/av-17.0.0.ebuild b/dev-python/av/av-17.0.0.ebuild new file mode 100644 index 000000000000..2162fe834c94 --- /dev/null +++ b/dev-python/av/av-17.0.0.ebuild @@ -0,0 +1,93 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 + +MY_PN="PyAV" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Pythonic bindings for FFmpeg's libraries" +HOMEPAGE=" + https://pyav.basswood-io.com/docs/stable/ + https://pypi.org/project/av/ + https://github.com/PyAV-Org/PyAV/ +" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/PyAV-Org/PyAV.git" +else + # pypi misses documentation + SRC_URI="https://github.com/PyAV-Org/PyAV/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + KEYWORDS="~amd64" + S=${WORKDIR}/${MY_P} +fi + +LICENSE="BSD" +SLOT="0" + +IUSE="examples" + +BDEPEND=" + virtual/pkgconfig + >=dev-python/cython-3.1.0[${PYTHON_USEDEP}] + test? ( + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + ) +" +DEPEND="media-video/ffmpeg:=" +RDEPEND=" + media-video/ffmpeg:= + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] +" + +DOCS=( README.md {AUTHORS,CHANGELOG}.rst ) + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest +distutils_enable_sphinx docs dev-python/sphinx-copybutton + +EPYTEST_DESELECT=( + # needs network access + tests/test_doctests.py + tests/test_timeout.py +) + +src_prepare() { + default + + # package directory must be deleted due to C ext. + # use PV instead of reading from pkg. dir. + sed -i \ + -e 's|about = {}|about = {"__version__": "'"${PV}"'"}|' \ + -e '/with open/,+2d' \ + docs/conf.py || die +} + +python_compile_all() { + rm -rf av || die + + sphinx_compile_all +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +} + +python_test() { + rm -rf av || die + + epytest +} diff --git a/dev-python/av/av-17.0.1.ebuild b/dev-python/av/av-17.0.1.ebuild new file mode 100644 index 000000000000..2162fe834c94 --- /dev/null +++ b/dev-python/av/av-17.0.1.ebuild @@ -0,0 +1,93 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 + +MY_PN="PyAV" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Pythonic bindings for FFmpeg's libraries" +HOMEPAGE=" + https://pyav.basswood-io.com/docs/stable/ + https://pypi.org/project/av/ + https://github.com/PyAV-Org/PyAV/ +" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/PyAV-Org/PyAV.git" +else + # pypi misses documentation + SRC_URI="https://github.com/PyAV-Org/PyAV/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + KEYWORDS="~amd64" + S=${WORKDIR}/${MY_P} +fi + +LICENSE="BSD" +SLOT="0" + +IUSE="examples" + +BDEPEND=" + virtual/pkgconfig + >=dev-python/cython-3.1.0[${PYTHON_USEDEP}] + test? ( + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + ) +" +DEPEND="media-video/ffmpeg:=" +RDEPEND=" + media-video/ffmpeg:= + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] +" + +DOCS=( README.md {AUTHORS,CHANGELOG}.rst ) + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest +distutils_enable_sphinx docs dev-python/sphinx-copybutton + +EPYTEST_DESELECT=( + # needs network access + tests/test_doctests.py + tests/test_timeout.py +) + +src_prepare() { + default + + # package directory must be deleted due to C ext. + # use PV instead of reading from pkg. dir. + sed -i \ + -e 's|about = {}|about = {"__version__": "'"${PV}"'"}|' \ + -e '/with open/,+2d' \ + docs/conf.py || die +} + +python_compile_all() { + rm -rf av || die + + sphinx_compile_all +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +} + +python_test() { + rm -rf av || die + + epytest +} diff --git a/dev-python/av/metadata.xml b/dev-python/av/metadata.xml new file mode 100644 index 000000000000..b4c867d91369 --- /dev/null +++ b/dev-python/av/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ghostyn678+git@gmail.com</email> + <name>dsaf</name> + </maintainer> + <upstream> + <doc>https://pyav.basswood-io.com/docs/stable/</doc> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
