summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2009-09-16 13:56:03 +0000
committerTristan Heaven <nyhm@gentoo.org>2009-09-16 13:56:03 +0000
commit7507ef8d0a26fa3c5c4c64eb2c3a64fb3144ac43 (patch)
tree152ed5199a50a15460940df9274166ab7418c5d8
parentadd for games-strategy/savage2-bin (diff)
downloadgentoo-2-7507ef8d0a26fa3c5c4c64eb2c3a64fb3144ac43.tar.gz
gentoo-2-7507ef8d0a26fa3c5c4c64eb2c3a64fb3144ac43.tar.bz2
gentoo-2-7507ef8d0a26fa3c5c4c64eb2c3a64fb3144ac43.zip
Remove bundled libs (except libpng), bug #284884
(Portage version: 2.2_rc40/cvs/Linux x86_64)
-rw-r--r--games-strategy/savage2-bin/ChangeLog8
-rw-r--r--games-strategy/savage2-bin/savage2-bin-2.1.0.1-r1.ebuild93
2 files changed, 100 insertions, 1 deletions
diff --git a/games-strategy/savage2-bin/ChangeLog b/games-strategy/savage2-bin/ChangeLog
index 581b222978ff..dd6a1bdca87b 100644
--- a/games-strategy/savage2-bin/ChangeLog
+++ b/games-strategy/savage2-bin/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-strategy/savage2-bin
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/savage2-bin/ChangeLog,v 1.2 2009/09/14 02:05:39 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/savage2-bin/ChangeLog,v 1.3 2009/09/16 13:56:03 nyhm Exp $
+
+*savage2-bin-2.1.0.1-r1 (16 Sep 2009)
+
+ 16 Sep 2009; Tristan Heaven <nyhm@gentoo.org>
+ +savage2-bin-2.1.0.1-r1.ebuild:
+ Remove bundled libs (except libpng), bug #284884
*savage2-bin-2.1.0.1 (14 Sep 2009)
diff --git a/games-strategy/savage2-bin/savage2-bin-2.1.0.1-r1.ebuild b/games-strategy/savage2-bin/savage2-bin-2.1.0.1-r1.ebuild
new file mode 100644
index 000000000000..ed808e18feb6
--- /dev/null
+++ b/games-strategy/savage2-bin/savage2-bin-2.1.0.1-r1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/savage2-bin/savage2-bin-2.1.0.1-r1.ebuild,v 1.1 2009/09/16 13:56:03 nyhm Exp $
+
+EAPI=2
+inherit eutils games
+
+DESCRIPTION="Unique mix of strategy and FPS"
+HOMEPAGE="http://savage2.s2games.com/"
+SRC_URI="x86? ( http://www.savage2.com/en/downloads/installers/Savage2Install-${PV}-i686.bin )
+ amd64? ( http://www.savage2.com/en/downloads/installers/Savage2Install-${PV}-x86_64.bin )"
+
+LICENSE="savage2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror strip"
+PROPERTIES="interactive"
+QA_TEXTRELS_x86="
+ ${GAMES_PREFIX_OPT:1}/savage2/vid_gl2.so
+ ${GAMES_PREFIX_OPT:1}/savage2/editor/cgame.so
+ ${GAMES_PREFIX_OPT:1}/savage2/game/libgame_shared.so
+ ${GAMES_PREFIX_OPT:1}/savage2/game/game.so
+ ${GAMES_PREFIX_OPT:1}/savage2/game/cgame.so
+ ${GAMES_PREFIX_OPT:1}/savage2/modelviewer/cgame.so
+ ${GAMES_PREFIX_OPT:1}/savage2/libk2.so"
+QA_EXECSTACK_x86="
+ ${GAMES_PREFIX_OPT:1}/savage2/savage2.bin
+ ${GAMES_PREFIX_OPT:1}/savage2/savage2_update.bin"
+QA_EXECSTACK_amd64="
+ ${GAMES_PREFIX_OPT:1}/savage2/savage2.bin
+ ${GAMES_PREFIX_OPT:1}/savage2/savage2_update.bin"
+
+RDEPEND="virtual/opengl
+ virtual/glu
+ dev-libs/libxml2
+ net-misc/curl
+ x11-libs/libX11
+ x11-libs/libXrandr
+ media-libs/alsa-lib
+ media-libs/speex
+ media-libs/freetype:2
+ media-libs/fmod:1
+ sys-libs/glibc
+ x86? ( || ( media-libs/jpeg-compat <media-libs/jpeg-7 ) )"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/data
+
+GAMES_CHECK_LICENSE="yes"
+
+src_unpack() {
+ if use x86 ; then
+ unzip "${DISTDIR}"/Savage2Install-${PV}-i686.bin
+ elif use amd64 ; then
+ unzip "${DISTDIR}"/Savage2Install-${PV}-x86_64.bin
+ else
+ die "Unsupported arch"
+ fi
+}
+
+src_prepare() {
+ rm -f dedicated_server.sh editor.sh modelviewer.sh
+ mv -f libs/libpng12.so.0 . || die
+ rm -rf libs
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/savage2
+
+ insinto "${dir}"
+ doins -r * || die "doins failed"
+ fperms g+x "${dir}"/savage2{,_update}.bin || die "fperms failed"
+ newicon s2icon.png ${PN}.png
+
+ games_make_wrapper savage2 "./savage2.bin" "${dir}" "${dir}:${dir}/game"
+ make_desktop_entry savage2 "Savage 2: A Tortured Soul"
+
+ games_make_wrapper savage2-editor \
+ "./savage2.bin \"PushMod editor; Set host_autoExec StartClient\"" \
+ "${dir}" "${dir}"
+ make_desktop_entry savage2-editor "Savage 2: Editor"
+
+ games_make_wrapper savage2-modelviewer \
+ "./savage2.bin \"PushMod modelviewer; Set host_autoExec StartClient\"" \
+ "${dir}" "${dir}"
+ make_desktop_entry savage2-modelviewer "Savage 2: Model Viewer"
+
+ games_make_wrapper savage2-ded \
+ "./savage2.bin \"Set host_dedicatedServer true\"" "${dir}" "${dir}"
+
+ prepgamesdirs
+}