summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-05-01 13:45:57 +0200
committerPacho Ramos <pacho@gentoo.org>2018-05-01 21:32:40 +0200
commitef4976f2aa759a890d0a0794155a04f48f1ddc80 (patch)
tree80fd8b286ebd0d19198c6658740aba04877c8a7a /games-puzzle/gemdropx
parentgames-puzzle/galaxis: Drop old (diff)
downloadgentoo-ef4976f2aa759a890d0a0794155a04f48f1ddc80.tar.gz
gentoo-ef4976f2aa759a890d0a0794155a04f48f1ddc80.tar.bz2
gentoo-ef4976f2aa759a890d0a0794155a04f48f1ddc80.zip
games-puzzle/gemdropx: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle/gemdropx')
-rw-r--r--games-puzzle/gemdropx/gemdropx-0.9-r2.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/games-puzzle/gemdropx/gemdropx-0.9-r2.ebuild b/games-puzzle/gemdropx/gemdropx-0.9-r2.ebuild
new file mode 100644
index 00000000000..30766306574
--- /dev/null
+++ b/games-puzzle/gemdropx/gemdropx-0.9-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop
+
+DESCRIPTION="A puzzle game where it's your job to clear the screen of gems"
+HOMEPAGE="http://www.newbreedsoftware.com/gemdropx/"
+SRC_URI="ftp://ftp.sonic.net/pub/users/nbs/unix/x/gemdropx/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=media-libs/libsdl-1.2.3-r1[joystick,video]
+ >=media-libs/sdl-mixer-1.2.1[mod]
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+ sed -i \
+ -e '/^CC/d' \
+ -e '/^CXX/d' \
+ -e 's/CXX/CC/' \
+ -e 's/-o/$(LDFLAGS) -o/' \
+ Makefile || die
+
+ find data/ -type d -name .xvpics -exec rm -rf \{\} +
+}
+
+src_compile() {
+ emake \
+ DATA_PREFIX="/usr/share/${PN}" \
+ XTRA_FLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin gemdropx
+ dodir "/usr/share/${PN}"
+ cp -r data/* "${ED}/usr/share/${PN}/" || die
+ dodoc AUTHORS.txt CHANGES.txt ICON.txt README.txt TODO.txt
+ newicon data/images/gemdropx-icon.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Gem Drop X" /usr/share/pixmaps/${PN}.xpm
+}