summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-05-01 14:41:17 +0200
committerPacho Ramos <pacho@gentoo.org>2018-05-01 21:33:27 +0200
commitb7cd1dd66a44f7474a98c2611b6173040aa5304d (patch)
tree9d42d612641c03e10ada6c66b2c876675a5ea077 /games-puzzle/meandmyshadow
parentgames-puzzle/magiccube4d: Drop old (diff)
downloadgentoo-b7cd1dd66a44f7474a98c2611b6173040aa5304d.tar.gz
gentoo-b7cd1dd66a44f7474a98c2611b6173040aa5304d.tar.bz2
gentoo-b7cd1dd66a44f7474a98c2611b6173040aa5304d.zip
games-puzzle/meandmyshadow: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle/meandmyshadow')
-rw-r--r--games-puzzle/meandmyshadow/meandmyshadow-0.4-r1.ebuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/games-puzzle/meandmyshadow/meandmyshadow-0.4-r1.ebuild b/games-puzzle/meandmyshadow/meandmyshadow-0.4-r1.ebuild
new file mode 100644
index 000000000000..c7d403f40c4d
--- /dev/null
+++ b/games-puzzle/meandmyshadow/meandmyshadow-0.4-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="A puzzle/platform game with a player and its shadow"
+HOMEPAGE="http://meandmyshadow.sourceforge.net/"
+SRC_URI="mirror://sourceforge/meandmyshadow/${PV}/${P}-src.tar.gz"
+
+LICENSE="GPL-3 OFL-1.1 CC-BY-SA-2.5"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="opengl"
+
+DEPEND="media-libs/libsdl[sound,video,X]
+ media-libs/sdl-gfx
+ media-libs/sdl-ttf
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-image[png]
+ dev-libs/openssl:0=
+ net-misc/curl
+ app-arch/libarchive
+ x11-libs/libX11
+ opengl? ( virtual/opengl )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-cmake.patch )
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_VERBOSE_MAKEFILE=TRUE
+ -DCMAKE_INSTALL_PREFIX="/usr"
+ -DBINDIR="/usr/bin"
+ -DDATAROOTDIR="/usr/share"
+ -DICONDIR=/usr/share/icons
+ -DDESKTOPDIR=/usr/share/applications
+ $(cmake-utils_use opengl HARDWARE_ACCELERATION)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc AUTHORS ChangeLog README docs/{Controls,ThemeDescription}.txt
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}