summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2007-01-07 20:01:56 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2007-01-07 20:01:56 +0000
commit6fb91f9caf767fc480182b2552b27e7703844cd8 (patch)
treecb740cfa82ee9ab5fcfd7c68f96c4396ff9eca3c /games-strategy/x2
parentMarking amd64 stable (diff)
downloadgentoo-2-6fb91f9caf767fc480182b2552b27e7703844cd8.tar.gz
gentoo-2-6fb91f9caf767fc480182b2552b27e7703844cd8.tar.bz2
gentoo-2-6fb91f9caf767fc480182b2552b27e7703844cd8.zip
Version bump to 1.4.03 and closing bug #157433.
(Portage version: 2.1.2_rc2-r1)
Diffstat (limited to 'games-strategy/x2')
-rw-r--r--games-strategy/x2/ChangeLog9
-rw-r--r--games-strategy/x2/files/digest-x2-1.4.039
-rw-r--r--games-strategy/x2/x2-1.4.03.ebuild101
3 files changed, 117 insertions, 2 deletions
diff --git a/games-strategy/x2/ChangeLog b/games-strategy/x2/ChangeLog
index cb66dd90d29e..e8e9143fa992 100644
--- a/games-strategy/x2/ChangeLog
+++ b/games-strategy/x2/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for games-strategy/x2
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/x2/ChangeLog,v 1.1 2006/10/23 18:16:38 wolf31o2 Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/x2/ChangeLog,v 1.2 2007/01/07 20:01:56 wolf31o2 Exp $
+
+*x2-1.4.03 (07 Jan 2007)
+
+ 07 Jan 2007; Chris Gianelloni <wolf31o2@gentoo.org> +x2-1.4.03.ebuild:
+ Version bump to 1.4.03 and closing bug #157433.
*x2-1.4.01 (23 Oct 2006)
diff --git a/games-strategy/x2/files/digest-x2-1.4.03 b/games-strategy/x2/files/digest-x2-1.4.03
new file mode 100644
index 000000000000..cf06b818a2db
--- /dev/null
+++ b/games-strategy/x2/files/digest-x2-1.4.03
@@ -0,0 +1,9 @@
+MD5 f3a4d7746c972eb4b945f2867ca053cf x2-1.4-1.4.01-x86.run 1030707
+RMD160 e11975ec3703b780aa9a5a83e6832129b7ab3868 x2-1.4-1.4.01-x86.run 1030707
+SHA256 0700dee701a2c630615dac16960672a7ceb97ebf147848566383e6caefbd52cd x2-1.4-1.4.01-x86.run 1030707
+MD5 ae20cff75f84d65f116ab8fadab20eb8 x2-1.4.01-1.4.02-x86.run 1219653
+RMD160 154550af595008c8849e75014d02e34d150b5f6c x2-1.4.01-1.4.02-x86.run 1219653
+SHA256 65a087b67248f05ad0fa0b513b1c5c6d2dc77d915914315758ac7549b55dd926 x2-1.4.01-1.4.02-x86.run 1219653
+MD5 c7fd14680a51ea9acae111e790a2408a x2-1.4.02-1.4.03-x86.run 534472
+RMD160 6f921d3e8b8b4260333e385f7339f184127bfaf8 x2-1.4.02-1.4.03-x86.run 534472
+SHA256 04eded4d3aa5ed04d736a15f0f836fe0bfd4186bb27e2d44f11b2d73851cb316 x2-1.4.02-1.4.03-x86.run 534472
diff --git a/games-strategy/x2/x2-1.4.03.ebuild b/games-strategy/x2/x2-1.4.03.ebuild
new file mode 100644
index 000000000000..6b7514eff678
--- /dev/null
+++ b/games-strategy/x2/x2-1.4.03.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/x2/x2-1.4.03.ebuild,v 1.1 2007/01/07 20:01:56 wolf31o2 Exp $
+
+inherit eutils games
+
+MY_PV="1.4.02-${PV}"
+MY_UPD="http://updatefiles.linuxgamepublishing.com/${PN}"
+
+DESCRIPTION="Open-ended space opera with trading, building & fighting"
+HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=x2"
+SRC_URI="${MY_UPD}/${PN}-1.4-1.4.01-x86.run
+ ${MY_UPD}/${PN}-1.4.01-1.4.02-x86.run
+ ${MY_UPD}/${PN}-${MY_PV}-x86.run"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bonusscripts dynamic german langpacks modkit"
+RESTRICT="strip"
+
+RDEPEND="media-libs/alsa-lib
+ sys-libs/glibc
+ x86? (
+ media-libs/libsdl
+ media-libs/openal
+ sys-libs/zlib
+ x11-libs/gtk+
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXi )
+ amd64? (
+ app-emulation/emul-linux-x86-gtklibs
+ app-emulation/emul-linux-x86-sdl )"
+DEPEND=""
+
+S=${WORKDIR}
+
+src_unpack() {
+ cdrom_get_cds bin/Linux/x86/${PN}
+ ln -sfn "${CDROM_ROOT}"/data cd
+ local u
+ for u in data bonusscripts german langpacks modkit ; do
+ if ( [[ "${u}" = "data" ]] || use "${u}" ) ; then
+ unpack "./cd/${u}.tar.gz"
+ fi
+ done
+ rm -f cd
+
+ cp -rf "${CDROM_ROOT}"/bin/Linux/x86/* . || die "cp exes failed"
+ cp -f "${CDROM_ROOT}"/{READ*,icon*} . || die "cp READ* failed"
+
+ # Apply the patches
+ local p
+ for p in 1.4-1.4.01 1.4.01-1.4.02 "${MY_PV}" ; do
+ einfo "Applying patch ${p}"
+ mkdir patch
+ cd patch
+ unpack_makeself "${PN}-${p}-x86.run"
+ bin/Linux/x86/loki_patch patch.dat "${S}" \
+ || die "loki_patch ${p} failed"
+ cp -f README.txt "${S}/ChangeLog" || die "cp README.txt failed"
+ cd "${S}"
+ rm -rf patch
+ done
+
+ # These files do not get installed
+ [[ -e modkit ]] && rm -f modkit/x2*.debug
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+
+ # Whether to use static (default) or dynamic binaries
+ local dyn
+ use dynamic && dyn=".dynamic"
+
+ insinto "${dir}"
+ doins -r * || die "doins -r failed"
+ keepdir "${dir}"/Database
+
+ exeinto "${dir}"
+ doexe x2{,.dynamic} || die "doexe x2 failed"
+
+ if use modkit ; then
+ exeinto "${dir}"/modkit
+ doexe modkit/x2{build,tool}{,.dynamic} || die "doexe modkit failed"
+ local f
+ for f in build tool ; do
+ games_make_wrapper "x2${f}" "${dir}/modkit/x2${f}${dyn}"
+ done
+ fi
+
+ games_make_wrapper ${PN} "./${PN}${dyn}" "${dir}"
+ newicon "${CDROM_ROOT}"/icon.xpm ${PN}.xpm || die "newicon failed"
+ make_desktop_entry ${PN} "X2 - The Threat" ${PN}.xpm
+
+ prepgamesdirs
+}