summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2011-08-16 20:34:37 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2011-08-16 20:34:37 +0000
commit3df8879fc5d450e99dc20882c1a138190c9f5634 (patch)
treef2869ef98d56baed9bf88afdb3a6790224f05633 /games-strategy
parentManifest fix (diff)
downloadgentoo-2-3df8879fc5d450e99dc20882c1a138190c9f5634.tar.gz
gentoo-2-3df8879fc5d450e99dc20882c1a138190c9f5634.tar.bz2
gentoo-2-3df8879fc5d450e99dc20882c1a138190c9f5634.zip
version bump
(Portage version: 2.1.10.3/cvs/Linux i686)
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/lgeneral/ChangeLog7
-rw-r--r--games-strategy/lgeneral/lgeneral-1.2.2.ebuild91
2 files changed, 97 insertions, 1 deletions
diff --git a/games-strategy/lgeneral/ChangeLog b/games-strategy/lgeneral/ChangeLog
index 33bec626d91c..a49507af4d39 100644
--- a/games-strategy/lgeneral/ChangeLog
+++ b/games-strategy/lgeneral/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for games-strategy/lgeneral
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/lgeneral/ChangeLog,v 1.34 2011/07/20 16:36:57 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/lgeneral/ChangeLog,v 1.35 2011/08/16 20:34:37 mr_bones_ Exp $
+
+*lgeneral-1.2.2 (16 Aug 2011)
+
+ 16 Aug 2011; Michael Sterrett <mr_bones_@gentoo.org> +lgeneral-1.2.2.ebuild:
+ version bump
*lgeneral-1.2.1 (20 Jul 2011)
diff --git a/games-strategy/lgeneral/lgeneral-1.2.2.ebuild b/games-strategy/lgeneral/lgeneral-1.2.2.ebuild
new file mode 100644
index 000000000000..a561df7ae0e9
--- /dev/null
+++ b/games-strategy/lgeneral/lgeneral-1.2.2.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/lgeneral/lgeneral-1.2.2.ebuild,v 1.1 2011/08/16 20:34:37 mr_bones_ Exp $
+
+EAPI=2
+inherit eutils autotools games
+
+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/${PN}/${MY_P}.tar.gz
+ mirror://sourceforge/${PN}/pg-data.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND="media-libs/libsdl[audio,video]
+ media-libs/sdl-mixer
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -i \
+ -e '/desktop_DATA/d' \
+ -e '/icon_DATA/d' \
+ Makefile.am || die
+
+ cp /usr/share/gettext/config.rpath .
+ rm -f missing
+ eautoreconf
+
+ # Build a temporary lgc-pg that knows about ${WORKDIR}:
+ cp -pPR "${S}" "${WORKDIR}"/tmp-build || die "cp failed"
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}:" \
+ -e "s:@D@::" \
+ {lgc-pg,src}/misc.c \
+ || die "sed failed"
+
+ cd "${WORKDIR}"/tmp-build
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}:" \
+ -e "s:@D@:${D}:" \
+ {lgc-pg,src}/misc.c \
+ || die "sed failed (tmp)"
+}
+
+src_configure() {
+ egamesconf \
+ --disable-dependency-tracking \
+ $(use_enable nls) \
+ || die
+
+ # Build the temporary lgc-pg:
+ cd "${WORKDIR}"/tmp-build
+ egamesconf \
+ --disable-dependency-tracking \
+ --disable-nls \
+ --datadir="${D}/${GAMES_DATADIR}" \
+ || die
+}
+
+src_compile() {
+ emake || die "emake failed"
+
+ # Build the temporary lgc-pg:
+ cd "${WORKDIR}"/tmp-build
+ emake || die "emake failed (tmp)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ keepdir "${GAMES_DATADIR}"/${PN}/{ai_modules,music,terrain}
+
+ # Generate scenario data:
+ SDL_VIDEODRIVER=dummy "${WORKDIR}"/tmp-build/lgc-pg/lgc-pg \
+ -s "${WORKDIR}"/pg-data \
+ -d "${D}/${GAMES_DATADIR}"/${PN} \
+ || die "Failed to generate scenario data"
+
+ dodoc AUTHORS ChangeLog README.lgeneral README.lgc-pg TODO
+ newicon lgeneral48.png ${PN}.png
+ make_desktop_entry ${PN} LGeneral
+ prepgamesdirs
+}