diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2009-07-11 00:36:40 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2009-07-11 00:36:40 +0000 |
commit | 9ab37bb85bc56a90ee4eecf111a9d9a635d2c73b (patch) | |
tree | 872e04743fe0106a3da6fbc0cd1cc7044b3a3a64 /games-strategy/glest/glest-3.2.2.ebuild | |
parent | Marked stable on AMD64 for bug #277103; tested on a dual Opteron 2354. (diff) | |
download | gentoo-2-9ab37bb85bc56a90ee4eecf111a9d9a635d2c73b.tar.gz gentoo-2-9ab37bb85bc56a90ee4eecf111a9d9a635d2c73b.tar.bz2 gentoo-2-9ab37bb85bc56a90ee4eecf111a9d9a635d2c73b.zip |
version bump (bug #259701 with submissions from yury fedorchenko); clean old
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'games-strategy/glest/glest-3.2.2.ebuild')
-rw-r--r-- | games-strategy/glest/glest-3.2.2.ebuild | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/games-strategy/glest/glest-3.2.2.ebuild b/games-strategy/glest/glest-3.2.2.ebuild new file mode 100644 index 000000000000..e9f6680e85c1 --- /dev/null +++ b/games-strategy/glest/glest-3.2.2.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/glest/glest-3.2.2.ebuild,v 1.1 2009/07/11 00:36:39 mr_bones_ Exp $ + +EAPI=2 +inherit eutils games + +DESCRIPTION="Cross-platform 3D realtime strategy game" +HOMEPAGE="http://www.glest.org/" +SRC_URI="http://www.titusgames.de/${PN}-source-${PV}.tar.bz2 + mirror://sourceforge/glest/${PN}_data_3.2.1.zip" + +LICENSE="GPL-2 glest-data" +SLOT="0" +KEYWORDS="~amd64 -ppc ~x86" # ppc: bug #145478 +IUSE="editor" + +RDEPEND="media-libs/libsdl[joystick,video] + media-libs/libogg + media-libs/libvorbis + media-libs/openal + || ( >=dev-libs/xerces-c-3[icu] >=dev-libs/xerces-c-3[-icu,-iconv] ) + virtual/opengl + virtual/glu + dev-lang/lua + x11-libs/libX11 + editor? ( x11-libs/wxGTK )" +DEPEND="${RDEPEND} + app-arch/unzip + dev-util/ftjam" + +S=${WORKDIR}/${PN}-source-${PV} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-{gentoo,xerces-c}.patch + + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + glest_game/main/main.cpp \ + || die "sed failed" + + sed -i \ + -e '/Lang/s:\.lng::' \ + glest.ini \ + || die "sed failed" + + sed -i \ + -e 's:-O3 -DNDEBUG:-DNDEBUG:' \ + Jamrules \ + || die "sed failed" +} + +src_configure() { + use editor || NOWX="--with-wx-config=disabled_wx" + egamesconf \ + --with-vorbis=/usr \ + --with-ogg=/usr \ + ${NOWX} +} + +src_compile() { + local jamopts=$(echo "${MAKEOPTS}" | sed -ne "/-j/ { s/.*\(-j[0-9]\+\).*/\1/; p }") + jam -dx -q ${jamopts} || die "jam failed" +} + +src_install() { + dogamesbin glest || die "dogamesbin glest failed" + if use editor ; then + dogamesbin glest_editor || die "dogamesbin glest_editor failed" + fi + + insinto "${GAMES_DATADIR}"/${PN} + doins glest.ini || die "doins glest.ini failed" + + cd "${WORKDIR}"/glest_game + doins -r servers.ini \ + data maps scenarios techs tilesets || die "doins data failed" + dodoc docs/readme.txt || die "dodoc docs/readme.txt failed" + + newicon techs/magitech/factions/magic/units/archmage/images/archmage.bmp \ + ${PN}.bmp || die "newicon failed" + make_desktop_entry glest Glest /usr/share/pixmaps/${PN}.bmp + prepgamesdirs +} |