summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/mars-game/mars-game-0.7.6.ebuild')
-rw-r--r--games-arcade/mars-game/mars-game-0.7.6.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/games-arcade/mars-game/mars-game-0.7.6.ebuild b/games-arcade/mars-game/mars-game-0.7.6.ebuild
new file mode 100644
index 0000000..5e2944c
--- /dev/null
+++ b/games-arcade/mars-game/mars-game-0.7.6.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils gnome2-utils prefix
+
+MY_PN="marsshooter"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="M.A.R.S. a ridiculous shooter"
+HOMEPAGE="http://mars-game.sourceforge.net"
+SRC_URI="https://github.com/jwrdegoede/M.A.R.S./archive/${MY_P}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+DEPEND="
+ dev-libs/fribidi
+ media-libs/libsfml
+ media-libs/taglib
+ virtual/opengl
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/M.A.R.S.-${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}"-{GNUInstallDirs,glib}.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+ hprefixify src/System/settings.cpp
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -Dmars_DATA_DEST_DIR="${EPREFIX}/usr/share/${MY_PN}"
+ -Dmars_EXE_DEST_DIR="${EPREFIX}/usr/bin"
+ -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
+ )
+
+ cmake-utils_src_configure
+}
+
+pkg_preinst() { gnome2_icon_savelist; }
+pkg_postinst() { gnome2_icon_cache_update; }
+pkg_postrm() { gnome2_icon_cache_update; }