diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-05-21 18:16:19 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-05-21 18:16:19 +0000 |
| commit | d5f95751af83d8eee51bc71ec77ed4485c2481dd (patch) | |
| tree | e102572021a5eeac464d72a147eabb533188ed1e /dev-python/pygame | |
| parent | 30907e7a13c58fbbb53caed44cad1064ae4ded85 (diff) | |
| download | baldeagleos-repo-d5f95751af83d8eee51bc71ec77ed4485c2481dd.tar.gz baldeagleos-repo-d5f95751af83d8eee51bc71ec77ed4485c2481dd.tar.xz baldeagleos-repo-d5f95751af83d8eee51bc71ec77ed4485c2481dd.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pygame')
| -rw-r--r-- | dev-python/pygame/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pygame/files/pygame-2.5.2-gcc-14.patch | 38 | ||||
| -rw-r--r-- | dev-python/pygame/pygame-2.5.1.ebuild | 88 | ||||
| -rw-r--r-- | dev-python/pygame/pygame-2.5.2-r2.ebuild (renamed from dev-python/pygame/pygame-2.5.2-r1.ebuild) | 4 |
4 files changed, 41 insertions, 90 deletions
diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest index b4bddf487169..586350b63be6 100644 --- a/dev-python/pygame/Manifest +++ b/dev-python/pygame/Manifest @@ -1,2 +1 @@ -DIST pygame-2.5.1.gh.tar.gz 6854761 BLAKE2B e137f73a3bb718213ef92e938ed1b065f5568d7dd2ade6edd973bc55d06425874da0e89e3c102fad39adac25f977ac97025a0c59099702cfabeffd0d3b8f109f SHA512 d7aceb2bc6e40c5dc2d7a19fdc7af18abf021b79dd98b859975f99ec10895e1b09e11fbf17fd6ab925d3aa6c64e5b3dd56c0d857ecacc67303d92fc0efb2630c DIST pygame-2.5.2.gh.tar.gz 5970857 BLAKE2B 523874926a8fd868f5674ed2997a44decb928fcfe246d551249ed7320a0e908ce46d00f459d187726edf74a4c1038cd56821f6466559fb7d24aa75d16769cbfe SHA512 b54e9b80951c8a9e75666621aafc26874c6dbdab27330146f7217346c76be5627a5464a0102a5968eca0dbd7cced4b2143cd2ff1b6227e3e17e5634854b27f19 diff --git a/dev-python/pygame/files/pygame-2.5.2-gcc-14.patch b/dev-python/pygame/files/pygame-2.5.2-gcc-14.patch new file mode 100644 index 000000000000..0d74303bbba4 --- /dev/null +++ b/dev-python/pygame/files/pygame-2.5.2-gcc-14.patch @@ -0,0 +1,38 @@ +From 504a11fd4855e33ecb945af1270311aa463aae59 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ren=C3=A9=20Dudfield?= <renesd@gmail.com> +Date: Sun, 19 May 2024 11:12:33 +0200 +Subject: [PATCH] pypm: Fix incorrect param in Pm_OpenInput + +--- + src_c/cython/pygame/pypm.pyx | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/src_c/cython/pygame/pypm.pyx b/src_c/cython/pygame/pypm.pyx +index f2c16c9e2b..54a88fd83a 100644 +--- a/src_c/cython/pygame/pypm.pyx ++++ b/src_c/cython/pygame/pypm.pyx +@@ -106,7 +106,7 @@ cdef extern from "portmidi.h": + PmDeviceID inputDevice, + void *inputDriverInfo, + long bufferSize, +- long (*PmPtr) (), # long = PtTimestamp ++ PmTimeProcPtr time_proc, # long = PtTimestamp + void *time_info) + + PmError Pm_OpenOutput(PortMidiStream** stream, +@@ -538,11 +538,14 @@ cdef class Input: + """Instantiate MIDI input stream object.""" + + cdef PmError err ++ cdef PmTimeProcPtr PmPtr + self.device = input_device + self.debug = 0 + ++ PmPtr = <PmTimeProcPtr>&Pt_Time ++ + err = Pm_OpenInput(&(self.midi), input_device, NULL, buffersize, +- &Pt_Time, NULL) ++ PmPtr, NULL) + if err < 0: + raise Exception(Pm_GetErrorText(err)) + diff --git a/dev-python/pygame/pygame-2.5.1.ebuild b/dev-python/pygame/pygame-2.5.1.ebuild deleted file mode 100644 index 9c1f9e742eac..000000000000 --- a/dev-python/pygame/pygame-2.5.1.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2024 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_{8,9,10,11,12} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="Python bindings for SDL multimedia library" -HOMEPAGE=" - https://www.pygame.org/ - https://github.com/pygame/pygame/ - https://pypi.org/project/pygame/ -" -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 ~riscv x86" -IUSE="examples opengl test X" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-python/numpy[${PYTHON_USEDEP}] - media-libs/freetype - media-libs/libjpeg-turbo:= - media-libs/libpng:= - media-libs/portmidi - media-libs/sdl2-image - media-libs/sdl2-mixer - media-libs/sdl2-ttf - X? ( media-libs/libsdl2[opengl?,threads,video,X] ) - !X? ( media-libs/libsdl2[threads] ) -" -DEPEND=" - ${RDEPEND} - test? ( - media-libs/sdl2-image[gif,jpeg,png,tiff,webp] - media-libs/sdl2-mixer[mp3,vorbis,wav] - ) -" -# fontconfig used for fc-list -RDEPEND+=" - media-libs/fontconfig -" -# util-linux provides script -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - test? ( - media-libs/fontconfig - sys-apps/util-linux - ) -" - -python_configure() { - PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \ - "${EPYTHON}" "${S}"/buildconfig/config.py || die -} - -python_configure_all() { - find src_c/cython -name '*.pyx' -exec touch {} + || die - "${EPYTHON}" setup.py cython_only || die -} - -python_test() { - local -x PYTHONPATH=${BUILD_DIR}/install/lib - local -x SDL_VIDEODRIVER=dummy - local -x SDL_AUDIODRIVER=disk - 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 -} diff --git a/dev-python/pygame/pygame-2.5.2-r1.ebuild b/dev-python/pygame/pygame-2.5.2-r2.ebuild index d5f065e5f934..e5daa8d789ba 100644 --- a/dev-python/pygame/pygame-2.5.2-r1.ebuild +++ b/dev-python/pygame/pygame-2.5.2-r2.ebuild @@ -27,7 +27,7 @@ IUSE="examples opengl test X" RESTRICT="!test? ( test )" RDEPEND=" - dev-python/numpy[${PYTHON_USEDEP}] + <dev-python/numpy-2[${PYTHON_USEDEP}] media-libs/freetype media-libs/libjpeg-turbo:= media-libs/libpng:= @@ -62,6 +62,8 @@ src_prepare() { local PATCHES=( # https://github.com/pygame/pygame/pull/4035 "${FILESDIR}/${P}-error.patch" + # https://github.com/pygame/pygame/pull/4236 + "${FILESDIR}/${P}-gcc-14.patch" ) # some numpy-related crash (not a regression) |
