diff options
author | 2016-07-05 13:10:20 -0500 | |
---|---|---|
committer | 2016-07-05 13:45:55 -0500 | |
commit | 3c4fd333c7f34e4b9247d26fa92026c3664dfe43 (patch) | |
tree | a9d874bb4d7d3d07c4b4b05ed86f6f9d9cd8f0e4 /games-action | |
parent | games-action/abuse: remove deprecated games eclass (diff) | |
download | gentoo-3c4fd333c7f34e4b9247d26fa92026c3664dfe43.tar.gz gentoo-3c4fd333c7f34e4b9247d26fa92026c3664dfe43.tar.bz2 gentoo-3c4fd333c7f34e4b9247d26fa92026c3664dfe43.zip |
games-action/accelerator3d: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: portage-2.2.28
Diffstat (limited to 'games-action')
3 files changed, 50 insertions, 4 deletions
diff --git a/games-action/accelerator3d/accelerator3d-0.1.1-r3.ebuild b/games-action/accelerator3d/accelerator3d-0.1.1-r3.ebuild new file mode 100644 index 000000000000..f9eb33b64a54 --- /dev/null +++ b/games-action/accelerator3d/accelerator3d-0.1.1-r3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-r1 + +DESCRIPTION="Fast-paced, 3D, first-person shoot/dodge-'em-up, in the vain of Tempest or n2o" +HOMEPAGE="http://accelerator3d.sourceforge.net/" +SRC_URI="mirror://sourceforge/accelerator3d/accelerator-${PV}.tar.bz2" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="" +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + dev-python/pygame[${PYTHON_USEDEP}] + dev-python/pyode[${PYTHON_USEDEP}] + dev-python/pyopengl[${PYTHON_USEDEP}]" + +S=${WORKDIR}/${PN} + +PATCHES=( + "${FILESDIR}"/${P}-gentoo-paths.patch + "${FILESDIR}"/${P}-gllightmodel.patch +) + +src_prepare() { + default + + sed -i \ + -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \ + accelerator.py || die +} + +src_install() { + python_foreach_impl python_newscript accelerator.py accelerator + insinto "/usr/share/${PN}" + doins gfx/* snd/* + dodoc CHANGELOG README + make_desktop_entry accelerator +} diff --git a/games-action/accelerator3d/files/accelerator3d-0.1.1-gentoo-paths.patch b/games-action/accelerator3d/files/accelerator3d-0.1.1-gentoo-paths.patch index ab8637f24f28..526fa678fdbc 100644 --- a/games-action/accelerator3d/files/accelerator3d-0.1.1-gentoo-paths.patch +++ b/games-action/accelerator3d/files/accelerator3d-0.1.1-gentoo-paths.patch @@ -1,5 +1,5 @@ ---- accelerator.py.old 2006-04-18 21:51:28.000000000 +0200 -+++ accelerator.py 2006-04-18 22:07:28.000000000 +0200 +--- a/accelerator.py 2006-04-18 21:51:28.000000000 +0200 ++++ b/accelerator.py 2006-04-18 22:07:28.000000000 +0200 @@ -72,7 +72,7 @@ # default parameters on it (min/mag filters, wrapping). def __init__(self,texfile,mipmap = False): diff --git a/games-action/accelerator3d/files/accelerator3d-0.1.1-gllightmodel.patch b/games-action/accelerator3d/files/accelerator3d-0.1.1-gllightmodel.patch index b850ccfa5bab..31d0a8b5b4c5 100644 --- a/games-action/accelerator3d/files/accelerator3d-0.1.1-gllightmodel.patch +++ b/games-action/accelerator3d/files/accelerator3d-0.1.1-gllightmodel.patch @@ -1,5 +1,5 @@ ---- accelerator.py -+++ accelerator.py +--- a/accelerator.py ++++ b/accelerator.py @@ -274,7 +274,7 @@ glColorMaterial(GL_FRONT,GL_AMBIENT_AND_DIFFUSE) glMaterialfv(GL_FRONT,GL_SHININESS,128) |