diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-04-23 20:26:07 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-04-23 21:17:08 +0200 |
commit | a726bced142e6d3440f4fb6d925f76717226d477 (patch) | |
tree | 9c0f2b818327cc5ccfa18db8b50dace7cb33c710 /games-arcade | |
parent | games-arcade/primateplunge: Drop old (diff) | |
download | gentoo-a726bced142e6d3440f4fb6d925f76717226d477.tar.gz gentoo-a726bced142e6d3440f4fb6d925f76717226d477.tar.bz2 gentoo-a726bced142e6d3440f4fb6d925f76717226d477.zip |
games-arcade/pycadia: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-arcade')
-rw-r--r-- | games-arcade/pycadia/pycadia-0.5.1-r1.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/games-arcade/pycadia/pycadia-0.5.1-r1.ebuild b/games-arcade/pycadia/pycadia-0.5.1-r1.ebuild new file mode 100644 index 000000000000..4ddccdf135a9 --- /dev/null +++ b/games-arcade/pycadia/pycadia-0.5.1-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit desktop + +DESCRIPTION="Pycadia. Home to vector gaming, python style" +HOMEPAGE="http://www.anti-particle.com/pycadia.shtml" +SRC_URI="http://www.anti-particle.com/downloads/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="" + +RDEPEND=" + >=dev-python/pygame-1.5.5 + dev-python/pygtk:2 +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}" + +src_unpack() { + unpack ${A} + { + echo "#!/bin/sh" + echo "cd /usr/share/${PN}" + echo "exec python2 ./pycadia.py \"\${@}\"" + } > "${T}/pycadia" +} + +src_install() { + dobin "${T}/pycadia" + + insinto "/usr/share/${PN}" + doins -r {glade,pixmaps,sounds} *.py pycadia.conf + + exeinto "/usr/share/${PN}" + doexe pycadia.py spacewarpy.py vektoroids.py + + newicon pixmaps/pysteroids.png ${PN}.png + make_desktop_entry ${PN} Pycadia + + dodoc doc/{TODO,CHANGELOG,README} +} |