diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-03-27 01:34:49 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-03-27 01:34:49 +0000 |
| commit | 266b5240d0c338340d28b757b02e6b9ff286bb13 (patch) | |
| tree | a937f7afd14a9bb15481a0147d82a6d10059d64a /dev-python/pygame | |
| parent | bfa29155f15043f788c4beb3e01d5ad429848832 (diff) | |
| download | baldeagleos-repo-266b5240d0c338340d28b757b02e6b9ff286bb13.tar.gz baldeagleos-repo-266b5240d0c338340d28b757b02e6b9ff286bb13.tar.xz baldeagleos-repo-266b5240d0c338340d28b757b02e6b9ff286bb13.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pygame')
| -rw-r--r-- | dev-python/pygame/metadata.xml | 4 | ||||
| -rw-r--r-- | dev-python/pygame/pygame-2.1.2-r1.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/pygame/pygame-2.1.2.ebuild | 81 |
3 files changed, 2 insertions, 85 deletions
diff --git a/dev-python/pygame/metadata.xml b/dev-python/pygame/metadata.xml index 430a4b8570fa..634337518202 100644 --- a/dev-python/pygame/metadata.xml +++ b/dev-python/pygame/metadata.xml @@ -5,9 +5,7 @@ <email>python@gentoo.org</email> <name>Python</name> </maintainer> - <upstream> - <remote-id type="pypi">pygame</remote-id> - </upstream> + <use> <flag name="midi">Enable midi support using <pkg>media-libs/portmidi</pkg></flag> </use> diff --git a/dev-python/pygame/pygame-2.1.2-r1.ebuild b/dev-python/pygame/pygame-2.1.2-r1.ebuild index cf6ebca98ade..e19011d94693 100644 --- a/dev-python/pygame/pygame-2.1.2-r1.ebuild +++ b/dev-python/pygame/pygame-2.1.2-r1.ebuild @@ -15,7 +15,7 @@ SRC_URI=" LICENSE="LGPL-2.1" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86" IUSE="examples midi opengl test X" RESTRICT="!test? ( test )" diff --git a/dev-python/pygame/pygame-2.1.2.ebuild b/dev-python/pygame/pygame-2.1.2.ebuild deleted file mode 100644 index c280f5c21c2c..000000000000 --- a/dev-python/pygame/pygame-2.1.2.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{7,8,9,10} ) -inherit distutils-r1 - -DESCRIPTION="Python bindings for SDL multimedia library" -HOMEPAGE="https://www.pygame.org/" -SRC_URI=" - https://github.com/pygame/pygame/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86" -IUSE="examples midi opengl test X" -RESTRICT="!test? ( test )" - -RDEPEND="dev-python/numpy[${PYTHON_USEDEP}] - media-libs/freetype - media-libs/libpng:0= - >=media-libs/sdl2-image-1.2.2 - >=media-libs/sdl2-mixer-1.2.4 - >=media-libs/sdl2-ttf-2.0.6 - >=media-libs/smpeg2-0.4.4-r1 - virtual/jpeg - midi? ( media-libs/portmidi ) - X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] ) - !X? ( >=media-libs/libsdl2-1.2.5[threads] )" -DEPEND="${RDEPEND} - test? ( - media-libs/sdl2-image[gif,jpeg,png,tiff] - media-libs/sdl2-mixer[mp3,vorbis,wav] - )" -# fontconfig used for fc-list -RDEPEND+=" - media-libs/fontconfig" -# util-linux provides script -BDEPEND=" - test? ( - media-libs/fontconfig - sys-apps/util-linux - )" - -src_prepare() { - if ! use midi; then - rm test/midi_test.py || die - fi - distutils-r1_src_prepare -} - -python_configure() { - PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \ - "${EPYTHON}" "${S}"/buildconfig/config.py -auto || die - - # Disable automagic dependency on PortMidi. - if ! use midi; then - sed -e "s:^pypm :#&:" -i Setup || die "sed failed" - fi -} - -python_test() { - local -x PYTHONPATH=${BUILD_DIR}/install/lib - local -x SDL_VIDEODRIVER=dummy - local -x SDL_AUDIODRIVER=disk - distutils_install_for_testing --via-root - script -eqc "${EPYTHON} -m pygame.tests -v" || die -} - -python_install() { - distutils-r1_python_install - - # Bug #497720 - rm -fr "${D}"$(python_get_sitedir)/pygame/{docs,examples,tests}/ || die -} - -python_install_all() { - distutils-r1_python_install_all - use examples && dodoc -r examples -} |
