games-puzzle/pipewalker: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Tue, 1 May 2018 13:51:19 +0000 (15:51 +0200)
committerPacho Ramos <pacho@gentoo.org>
Tue, 1 May 2018 19:34:00 +0000 (21:34 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

games-puzzle/pipewalker/pipewalker-0.9.4-r1.ebuild [new file with mode: 0644]

diff --git a/games-puzzle/pipewalker/pipewalker-0.9.4-r1.ebuild b/games-puzzle/pipewalker/pipewalker-0.9.4-r1.ebuild
new file mode 100644 (file)
index 0000000..bab059b
--- /dev/null
@@ -0,0 +1,32 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop flag-o-matic
+
+DESCRIPTION="Rotating pieces puzzle game"
+HOMEPAGE="http://pipewalker.sourceforge.net/"
+SRC_URI="mirror://sourceforge/pipewalker/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[opengl,video]
+       virtual/opengl
+       virtual/glu"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       append-flags $(sdl-config --cflags)
+       econf --datadir="/usr/share"
+}
+
+src_install() {
+       emake -C data DESTDIR="${D}" install
+       dobin src/${PN}
+       doicon extra/${PN}.xpm
+       make_desktop_entry ${PN} PipeWalker
+       einstalldocs
+}