logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: ad7c4bee037ef48fc915dddc96068c49dc2c2c08
parent 99e06b77f66b0bd97829e4715b057945c3fa4b67
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 11 Jun 2022 18:20:01 +0200

dev-python/pygame_sdl2: initial import

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>

Diffstat:

Adev-python/pygame_sdl2/Manifest1+
Adev-python/pygame_sdl2/metadata.xml8++++++++
Adev-python/pygame_sdl2/pygame_sdl2-8.0.0.ebuild39+++++++++++++++++++++++++++++++++++++++
3 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/dev-python/pygame_sdl2/Manifest b/dev-python/pygame_sdl2/Manifest @@ -0,0 +1 @@ +DIST pygame_sdl2-2.1.0-for-renpy-8.0.0.tar.gz 4056797 BLAKE2B 00c30be57372ed1c517c365c05372d5ae4e29c5cbdb2b55f3daafe8c545cfdbeb9763048f72ade0c2bd00f5fce37302b79f7ddc41029cba7683b66e129837ec7 SHA512 3b9598369a45635b28357593e8964544dc607c3b13952130e1b352a3d0b12d92850aa147687ce383890f76f4424ec2fb5948e40c865d9fd5f27b92880841d06a diff --git a/dev-python/pygame_sdl2/metadata.xml b/dev-python/pygame_sdl2/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <remote-id type="github">renpy/pygame_sdl2</remote-id> + <remote-id type="pypi">pygame_sdl2</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pygame_sdl2/pygame_sdl2-8.0.0.ebuild b/dev-python/pygame_sdl2/pygame_sdl2-8.0.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) +inherit distutils-r1 + +PYSDL="${PN}-2.1.0" + +DESCRIPTION="Reimplementation of portions of the pygame API using SDL2" +HOMEPAGE="https://github.com/renpy/pygame_sdl2" +SRC_URI="https://www.renpy.org/dl/${PV}/${PYSDL}-for-renpy-${PV}.tar.gz" + +LICENSE="LGPL-2.1 ZLIB" +SLOT="0" +KEYWORDS="" +IUSE="" + +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}]" +DEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + media-libs/libpng:0= + media-libs/libsdl2:=[video] + media-libs/sdl2-image:=[png,jpeg] + >=media-libs/sdl2-mixer-2.0.2:= + media-libs/sdl2-ttf:= + virtual/jpeg:0" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${PYSDL}-for-renpy-${PV} + +# PyGame distribution for this version has some pregenerated files; +# we need to remove them +python_prepare_all() { + rm -r gen{,3} || die + distutils-r1_python_prepare_all +}