summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/pgzero/Manifest1
-rw-r--r--dev-python/pgzero/metadata.xml12
-rw-r--r--dev-python/pgzero/pgzero-1.2.1.ebuild33
3 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/pgzero/Manifest b/dev-python/pgzero/Manifest
new file mode 100644
index 000000000000..32ceddb74fd3
--- /dev/null
+++ b/dev-python/pgzero/Manifest
@@ -0,0 +1 @@
+DIST pgzero-1.2.1.tar.gz 2503205 BLAKE2B 616129da20cc5db67bfe826816bd454a76016d80a155296bbbe8e6febbb48aa2070fac1701b22ce7a522597f85b2e272151828f9dfbac367e33e3e0b35e9d260 SHA512 7988d114f6c037fe5ef4690ded878c63f73589e56fb7f79fa3604a7b4bc8433d75aabb80229159921a3dd6af4e3fe6740520a33f2a6b29aba034a63e6e154c33
diff --git a/dev-python/pgzero/metadata.xml b/dev-python/pgzero/metadata.xml
new file mode 100644
index 000000000000..a02d5ebaadc5
--- /dev/null
+++ b/dev-python/pgzero/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chewi@gentoo.org</email>
+ <name>James Le Cuirot</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">lordmauve/pgzero</remote-id>
+ <remote-id type="pypi">pgzero</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pgzero/pgzero-1.2.1.ebuild b/dev-python/pgzero/pgzero-1.2.1.ebuild
new file mode 100644
index 000000000000..be6e923f66d1
--- /dev/null
+++ b/dev-python/pgzero/pgzero-1.2.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8,9} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+
+inherit distutils-r1
+distutils_enable_tests unittest
+
+MY_PV="${PV/_p/.post}"
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="A zero-boilerplate games programming framework based on Pygame"
+HOMEPAGE="https://pygame-zero.readthedocs.io/"
+SRC_URI="https://github.com/lordmauve/${PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pygame[${PYTHON_USEDEP}]
+"
+
+DEPEND="
+ ${RDEPEND}
+"
+
+S="${WORKDIR}/${MY_P}"
+
+# Allow the tests to pass without real audio or video.
+export SDL_AUDIODRIVER=dummy SDL_VIDEODRIVER=dummy