summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2012-04-21 13:28:13 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2012-04-21 13:28:13 +0000
commit79b4cd62de72b6092be73333a41ae3e42e60924b (patch)
treeb98d272bc12f8e242b7a471de14b5db224d91d09 /games-strategy
parentInitial commit from bumblebee overlay, this fixes bug #384083. Thanks a lot t... (diff)
downloadgentoo-2-79b4cd62de72b6092be73333a41ae3e42e60924b.tar.gz
gentoo-2-79b4cd62de72b6092be73333a41ae3e42e60924b.tar.bz2
gentoo-2-79b4cd62de72b6092be73333a41ae3e42e60924b.zip
version bump
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/lgeneral/ChangeLog7
-rw-r--r--games-strategy/lgeneral/lgeneral-1.2.3.ebuild91
2 files changed, 97 insertions, 1 deletions
diff --git a/games-strategy/lgeneral/ChangeLog b/games-strategy/lgeneral/ChangeLog
index 7bb8eec8371b..f302318e565f 100644
--- a/games-strategy/lgeneral/ChangeLog
+++ b/games-strategy/lgeneral/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for games-strategy/lgeneral
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/lgeneral/ChangeLog,v 1.38 2012/03/06 14:52:50 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/lgeneral/ChangeLog,v 1.39 2012/04/21 13:28:13 mr_bones_ Exp $
+
+*lgeneral-1.2.3 (21 Apr 2012)
+
+ 21 Apr 2012; Michael Sterrett <mr_bones_@gentoo.org> +lgeneral-1.2.3.ebuild:
+ version bump
06 Mar 2012; Michael Sterrett <mr_bones_@gentoo.org>
-files/lgeneral-1.2-as-needed.patch, -files/lgeneral-1.2-build.patch,
diff --git a/games-strategy/lgeneral/lgeneral-1.2.3.ebuild b/games-strategy/lgeneral/lgeneral-1.2.3.ebuild
new file mode 100644
index 000000000000..62d0cb4d058e
--- /dev/null
+++ b/games-strategy/lgeneral/lgeneral-1.2.3.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/lgeneral/lgeneral-1.2.3.ebuild,v 1.1 2012/04/21 13:28:13 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
+}