games-arcade/gish-demo: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Mon, 16 Apr 2018 20:05:58 +0000 (22:05 +0200)
committerPacho Ramos <pacho@gentoo.org>
Mon, 16 Apr 2018 20:26:36 +0000 (22:26 +0200)
Package-Manager: Portage-2.3.28, Repoman-2.3.9

games-arcade/gish-demo/gish-demo-1.6-r1.ebuild [new file with mode: 0644]

diff --git a/games-arcade/gish-demo/gish-demo-1.6-r1.ebuild b/games-arcade/gish-demo/gish-demo-1.6-r1.ebuild
new file mode 100644 (file)
index 0000000..1116e16
--- /dev/null
@@ -0,0 +1,40 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Play as an amorphous ball of tar that rolls and squishes around"
+HOMEPAGE="http://www.chroniclogic.com/gish.htm"
+SRC_URI="http://www.chroniclogic.com/demos/gishdemo.tar.gz -> ${P}.tar.gz"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror bindist strip"
+QA_PREBUILT="${GAMES_PREFIX_OPT:1}/${PN}/gish"
+
+RDEPEND="
+       media-libs/libsdl
+       media-libs/libvorbis
+       virtual/opengl
+       x11-libs/libX11
+       >=media-libs/openal-1.6.372
+"
+DEPEND=""
+
+S="${WORKDIR}/gishdemo"
+
+src_install() {
+       local dir=/opt/${PN}
+       local gishbin=gishdemo
+       use amd64 && gishbin=gishdemo_64
+
+       insinto "${dir}"
+       doins -r *
+       fperms +x "${dir}"/${gishbin}
+       make_wrapper gish ./${gishbin} "${dir}"
+
+       einstalldocs
+}