summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2021-04-24 10:40:06 +0100
committerJames Le Cuirot <chewi@gentoo.org>2021-04-24 10:40:47 +0100
commit40245a6c06ac52d5fa937e2a009d9f4a8a212641 (patch)
treeea0e8e7f99d5d819fa86ab0a80c49f78c566e597 /dev-python/pgzero
parentwww-client/vivaldi: Fix 3.7.2218.58 amd64 manifest entry (diff)
downloadgentoo-40245a6c06ac52d5fa937e2a009d9f4a8a212641.tar.gz
gentoo-40245a6c06ac52d5fa937e2a009d9f4a8a212641.tar.bz2
gentoo-40245a6c06ac52d5fa937e2a009d9f4a8a212641.zip
dev-python/pgzero: New package
Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'dev-python/pgzero')
-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