summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-05-01 14:25:40 +0200
committerPacho Ramos <pacho@gentoo.org>2018-05-01 21:33:14 +0200
commit0fbeab75437abe7c91e756d7daff92adf51621c9 (patch)
treecd78f1b2d0e59db88db90d916495af291ee2c222 /games-puzzle/jools
parentgames-puzzle/icebreaker: Drop old (diff)
downloadgentoo-0fbeab75437abe7c91e756d7daff92adf51621c9.tar.gz
gentoo-0fbeab75437abe7c91e756d7daff92adf51621c9.tar.bz2
gentoo-0fbeab75437abe7c91e756d7daff92adf51621c9.zip
games-puzzle/jools: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle/jools')
-rw-r--r--games-puzzle/jools/jools-0.20-r3.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/games-puzzle/jools/jools-0.20-r3.ebuild b/games-puzzle/jools/jools-0.20-r3.ebuild
new file mode 100644
index 000000000000..e70ad0267d87
--- /dev/null
+++ b/games-puzzle/jools/jools-0.20-r3.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1
+
+MUS_P="${PN}-musicpack-1.0"
+DESCRIPTION="clone of Bejeweled, a popular pattern-matching game"
+HOMEPAGE="http://pessimization.com/software/jools/"
+SRC_URI="http://pessimization.com/software/jools/${P}.tar.gz
+ http://pessimization.com/software/jools/${MUS_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/pygame[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${P}/jools"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd "${S}"/music
+ unpack ${MUS_P}.tar.gz
+}
+
+src_prepare() {
+ default
+ echo "MEDIAROOT = \"/usr/share/${PN}\"" > config.py
+ python_fix_shebang .
+}
+
+src_install() {
+ make_wrapper ${PN} "${EPYTHON} ./__init__.py" /usr/"$(get_libdir)"/${PN}
+ insinto /usr/"$(get_libdir)"/${PN}
+ doins *.py
+ python_optimize "${ED}/usr/$(get_libdir)/${PN}"
+
+ insinto /usr/share/${PN}
+ doins -r fonts images music sounds
+
+ newicon images/ruby/0001.png ${PN}.png
+ make_desktop_entry ${PN} Jools
+
+ dodoc ../{ChangeLog,doc/{POINTS,TODO}}
+ HTML_DOCS="../doc/manual.html" einstalldocs
+}