summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-strategy/wargus/wargus-2.2.3.ebuild')
-rw-r--r--games-strategy/wargus/wargus-2.2.3.ebuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/games-strategy/wargus/wargus-2.2.3.ebuild b/games-strategy/wargus/wargus-2.2.3.ebuild
new file mode 100644
index 000000000000..7d90070a12c9
--- /dev/null
+++ b/games-strategy/wargus/wargus-2.2.3.ebuild
@@ -0,0 +1,38 @@
+# Copyright 2004-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/wargus/wargus-2.2.3.ebuild,v 1.1 2007/03/05 07:19:03 mr_bones_ Exp $
+
+inherit eutils games
+
+DESCRIPTION="Warcraft II for the Stratagus game engine (Needs WC2 DOS CD)"
+HOMEPAGE="http://wargus.sf.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz
+ mirror://gentoo/wargus.png
+ http://dev.gentoo.org/~genstef/files/wargus.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libpng
+ sys-libs/zlib"
+RDEPEND="=games-engines/stratagus-2.2.3*"
+
+src_unpack() {
+ cdrom_get_cds data/rezdat.war
+ unpack ${A/wargus.png}
+}
+
+src_install() {
+ local dir="${GAMES_DATADIR}/stratagus/${PN}"
+
+ dodir "${dir}"
+ ./build.sh -p "${CDROM_ROOT}" -o "${D}/${dir}" -v \
+ || die "Failed to extract data"
+ games_make_wrapper wargus "./stratagus -d \"${dir}\"" "${GAMES_BINDIR}"
+ prepgamesdirs
+
+ doicon "${DISTDIR}"/wargus.png
+ make_desktop_entry wargus Wargus
+}