diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-01-10 06:41:31 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-01-10 06:41:31 +0000 |
commit | f9d8ddaae80afb8fa0924cd3f769f9b37dd373e1 (patch) | |
tree | d8962e6446d606b8c95329b4b78932a65f928a5f /dev-python/pyglet | |
parent | d94fef9a5708b8e64f363f4a71f0b56caef5efe4 (diff) |
gentoo auto-resync : 10:01:2025 - 06:41:30
Diffstat (limited to 'dev-python/pyglet')
-rw-r--r-- | dev-python/pyglet/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pyglet/pyglet-2.0.21.ebuild | 79 | ||||
-rw-r--r-- | dev-python/pyglet/pyglet-2.1.0.ebuild | 84 |
3 files changed, 167 insertions, 0 deletions
diff --git a/dev-python/pyglet/Manifest b/dev-python/pyglet/Manifest index d0a7d1ffb954..25699f752895 100644 --- a/dev-python/pyglet/Manifest +++ b/dev-python/pyglet/Manifest @@ -1,5 +1,9 @@ DIST pyglet-2.0.20.gh.tar.gz 6507362 BLAKE2B 43d1d60922f84e05da59ac970516fe33df4a7b86f8b30bb5c7433696d8b2414a2ccd7dbc1c3713f7bd92f1f5ce1c4547e28b65270132f4d7b4f8d4311f1e97ac SHA512 9a628206b758a07eb43efbc4e4d62e25e162885eb25e064a6e0dbfc045472baa57cbebc7c85a9cde0cebe1e3562304878b45f880b51e59c2b226a937da20565f +DIST pyglet-2.0.21.gh.tar.gz 6507374 BLAKE2B a75177b5d6d18b29f48c764d68f89377f11a817bd6d7c5c13f8ea1620e1d9b911127599a9c7ff02ae8b10566724be551dc87f1b8f0105ef938afddb4be4efd5c SHA512 adbfac15fcc75d1dd768ef4af14f15fabef53a69b9f166691d387ebb1ba092170052bc99b254f3596decedcdc7e7880074665177f1821af9fca41e21502b7003 +DIST pyglet-2.1.0.gh.tar.gz 6533224 BLAKE2B fed9421ae153f2d117f7ee5b136dab747e84c859383e6e12e5cdac7d9f3fa0476e33762a4a161f46cad087a791007ceba6e80706150a98079d5f2ba96f978128 SHA512 c13ac90600711b134b4770a8cb72e639ed440db79046585139b7ada92f35432b2357204d6d7e95ee457fe921dbce2c384c80a024bb44e7eae2d3ad69543343c8 DIST pyglet-2.1.rc3.gh.tar.gz 6533959 BLAKE2B adba9ba8d105d832540e2296c0b5de32e8925b12c66cff2645f29a4cf89cc8d4db58ce4e7ed56b6fe1fafaeb1c229d876fceb57058b3367e382c6e751249cfcf SHA512 5a21b04a528aa7b7099af715930d6f81586690a521073716b4628904e44c6f9676cf5444954b15a49d1cea63928a99a95586fd245a95193a8d6f95ddd641e2f8 EBUILD pyglet-2.0.20.ebuild 1755 BLAKE2B 8ff37342f4e7cfd4d24ea8ab16d1fee15ad98025b4911778b3bec16a3213c33b8d26a74913cabf0ae8b3eb19af650608e47eb9ccc4d5bf3119732b277b80e8b2 SHA512 ab364bd633294e175e45596df1909ae1bb20a9379850faae6d6a7a8f3d2bfeef418293e1406da3762400d7d568acad9139abaae6d3475443825d9d694c274a9c +EBUILD pyglet-2.0.21.ebuild 1758 BLAKE2B ffc130f45b873b548857f0d1fc4d3f961a7dd51f7ae3349a297965e9c95296e8c3bb9026ce793227aeb881c385bfc9ce1854bcf8c51c4eee58839aef0e801d92 SHA512 d40c2126119315d6478ea926f605e091a0b4e63eb47bed65958f75b65ed73dc0e494635634699166acf49d6ee08917c5447cdea4f16c9f17f910b6b5070c1d50 +EBUILD pyglet-2.1.0.ebuild 1805 BLAKE2B 311492f7108f5ecadcb93dcb1f7bcc6211c389e389c77ecee8c239ca2acfefa1244e29053e9b3d56cb9e6dce01d5444788ac90e3171e6e50686f66e4deaf0152 SHA512 268158e451d7fbac2c6fc47811587404e823845d67d91aa92844c14063d561cb7dfedae2f5d2f7af8e67f15c1f70fe4647992ae7318c7dd773e2bf9cfc6de4d1 EBUILD pyglet-2.1_rc3.ebuild 1805 BLAKE2B 46e10450e18a99aed0172a92e36d6b735ce43a0eeb70cd897697c1bc8f9d92fb855a6537fa4a49bcea40d6418fb2f92baac8d3d939f77f07b30660ae140f40d2 SHA512 f690e525245edd84392ede79e6a2350d05ba757bd61b5e18869b30452ca35bb0ad07279b85c21b9675ff9f8b79157b09328adbfe899add3cc9ef0068872a1355 MISC metadata.xml 1092 BLAKE2B 51abba6b5545fb47d277edaca91fda755e885f08a9407f5cd3d468c8b0b86991b57d8d151e27d59755ea884ae894ed0e5c32d357b0d81e66eb9054ca6fc92055 SHA512 7e47cc4c39ebf827bf46423251df994a65c2af8ada9420b36810e36f245bbd810796bc8b02cbce182ff071bbd9dae0c9e5d9f5cb201349cd49fa311b3891dc2f diff --git a/dev-python/pyglet/pyglet-2.0.21.ebuild b/dev-python/pyglet/pyglet-2.0.21.ebuild new file mode 100644 index 000000000000..6411f2627747 --- /dev/null +++ b/dev-python/pyglet/pyglet-2.0.21.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +inherit distutils-r1 virtualx xdg-utils + +DESCRIPTION="Cross-platform windowing and multimedia library for Python" +HOMEPAGE=" + https://pyglet.org/ + https://github.com/pyglet/pyglet/ + https://pypi.org/project/pyglet/ +" +SRC_URI="https://github.com/pyglet/pyglet/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="examples image +sound" + +RDEPEND=" + virtual/glu + virtual/opengl + image? ( + || ( + dev-python/pillow[${PYTHON_USEDEP}] + x11-libs/gtk+:2 + ) + ) + sound? ( + || ( + media-libs/libpulse + media-libs/openal + ) + ) +" +# ffmpeg? ( media-libs/avbin-bin ) +BDEPEND=" + test? ( + dev-python/pillow[${PYTHON_USEDEP}] + media-libs/fontconfig + ) +" + +distutils_enable_tests pytest + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + xdg_environment_reset + + local EPYTEST_DESELECT=( + # lacking device/server permissions + tests/unit/media/test_listener.py::test_openal_listener + tests/unit/media/test_listener.py::test_pulse_listener + # fragile to system load + tests/unit/media/test_player.py::PlayerTestCase::test_pause_resume + tests/unit/test_clock_freq.py::test_elapsed_time_between_tick + ) + + # Specify path to avoid running interactive tests + # We could add in integration tests, but they're slow + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + nonfatal epytest tests/unit || die "Tests failed with ${EPYTHON}" +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + distutils-r1_python_install_all +} diff --git a/dev-python/pyglet/pyglet-2.1.0.ebuild b/dev-python/pyglet/pyglet-2.1.0.ebuild new file mode 100644 index 000000000000..b53946c484de --- /dev/null +++ b/dev-python/pyglet/pyglet-2.1.0.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +inherit distutils-r1 virtualx xdg-utils + +MY_P=${P/_/.} +DESCRIPTION="Cross-platform windowing and multimedia library for Python" +HOMEPAGE=" + https://pyglet.org/ + https://github.com/pyglet/pyglet/ + https://pypi.org/project/pyglet/ +" +SRC_URI=" + https://github.com/pyglet/pyglet/archive/v${PV/_/.}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="examples image +sound" + +RDEPEND=" + virtual/glu + virtual/opengl + image? ( + || ( + dev-python/pillow[${PYTHON_USEDEP}] + x11-libs/gtk+:2 + ) + ) + sound? ( + || ( + media-libs/libpulse + media-libs/openal + ) + ) +" +# ffmpeg? ( media-libs/avbin-bin ) +BDEPEND=" + test? ( + dev-python/pillow[${PYTHON_USEDEP}] + media-libs/fontconfig + ) +" + +distutils_enable_tests pytest + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + xdg_environment_reset + + local EPYTEST_DESELECT=( + # lacking device/server permissions + tests/unit/media/test_listener.py::test_openal_listener + tests/unit/media/test_listener.py::test_pulse_listener + # fragile to system load + tests/unit/media/test_player.py::PlayerTestCase::test_pause_resume + tests/unit/test_clock_freq.py::test_elapsed_time_between_tick + ) + + # Specify path to avoid running interactive tests + # We could add in integration tests, but they're slow + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + nonfatal epytest tests/unit || die "Tests failed with ${EPYTHON}" +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + distutils-r1_python_install_all +} |