summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-strategy/lgeneral/lgeneral-1.2_beta9.ebuild')
-rw-r--r--games-strategy/lgeneral/lgeneral-1.2_beta9.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/games-strategy/lgeneral/lgeneral-1.2_beta9.ebuild b/games-strategy/lgeneral/lgeneral-1.2_beta9.ebuild
new file mode 100644
index 000000000000..1990ea4af662
--- /dev/null
+++ b/games-strategy/lgeneral/lgeneral-1.2_beta9.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/lgeneral/lgeneral-1.2_beta9.ebuild,v 1.1 2005/11/07 07:48:21 mr_bones_ Exp $
+
+inherit eutils games
+
+DATA=pg-data
+MY_P="${P/_/}"
+MY_P="${MY_P/beta/beta-}"
+DESCRIPTION="A Panzer General clone written in SDL"
+HOMEPAGE="http://lgames.sourceforge.net/index.php?project=LGeneral"
+SRC_URI="mirror://sourceforge/lgeneral/${MY_P}.tar.gz
+ mirror://sourceforge/lgeneral/${DATA}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.2.4
+ >=media-libs/sdl-mixer-1.2.3"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ # Build a temporary lgc-pg that knows about /var/tmp/portage in work/lgc-pg:
+ cp -pPR "${S}" "${WORKDIR}/lgc-pg" || die "cp failed."
+}
+
+src_compile() {
+ egamesconf \
+ --disable-dependency-tracking \
+ --datadir="${GAMES_DATADIR}/../" || die
+ emake || die "emake failed"
+
+ # Build the temporary lgc-pg:
+ cd "${WORKDIR}/lgc-pg"
+ egamesconf --datadir="${D}/${GAMES_DATADIR_BASE}" || die
+ cd lgc-pg
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed."
+ keepdir "${GAMES_DATADIR}/${PN}/"{ai_modules,music,terrain}
+
+ # Generate scenario data:
+ "${WORKDIR}/lgc-pg/lgc-pg/lgc-pg" \
+ -s "${WORKDIR}/${DATA}" \
+ -d "${D}/${GAMES_DATADIR}/lgeneral" \
+ || die "Failed to generate scenario data."
+
+ dodoc AUTHORS ChangeLog README.lgeneral README.lgc-pg TODO
+ newicon lgeneral48.png ${PN}.png
+ make_desktop_entry lgeneral LGeneral
+ prepgamesdirs
+}