summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2016-01-15 17:43:35 -0500
committerMichael Sterrett <mr_bones_@gentoo.org>2016-01-15 18:27:31 -0500
commit9e73d6066791cfe9fdf35ac6dfc10e3ddd3ebe11 (patch)
tree08bb9ec572003c527b4d3c601f2c76ebb48c1c75 /games-strategy/wargus/wargus-2.3.0.ebuild
parentversion bump (diff)
downloadgentoo-9e73d6066791cfe9fdf35ac6dfc10e3ddd3ebe11.tar.gz
gentoo-9e73d6066791cfe9fdf35ac6dfc10e3ddd3ebe11.tar.bz2
gentoo-9e73d6066791cfe9fdf35ac6dfc10e3ddd3ebe11.zip
games-strategy/wargus: version bump (bug #565670)
Package-Manager: portage-2.2.26
Diffstat (limited to 'games-strategy/wargus/wargus-2.3.0.ebuild')
-rw-r--r--games-strategy/wargus/wargus-2.3.0.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/games-strategy/wargus/wargus-2.3.0.ebuild b/games-strategy/wargus/wargus-2.3.0.ebuild
new file mode 100644
index 00000000000..25d3b5cc187
--- /dev/null
+++ b/games-strategy/wargus/wargus-2.3.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils cmake-utils gnome2-utils games
+
+DESCRIPTION="Warcraft II for the Stratagus game engine"
+HOMEPAGE="http://wargus.sourceforge.net/"
+SRC_URI="https://launchpad.net/${PN}/trunk/2.3/+download/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="=games-engines/stratagus-${PV}*[theora]
+ media-libs/libpng:0
+ sys-libs/zlib
+ x11-libs/gtk+:2
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+PDEPEND="games-strategy/wargus-data"
+
+S=${WORKDIR}/${PN}_${PV}.orig
+
+src_configure() {
+ local mycmakeargs=(
+ -DGAMEDIR="${GAMES_BINDIR}"
+ -DBINDIR="${GAMES_BINDIR}"
+ -DSTRATAGUS="${GAMES_BINDIR}"/stratagus
+ -DICONDIR=/usr/share/icons/hicolor/64x64/apps
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ elog "Enabling OpenGL in-game seems to cause segfaults/crashes."
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}