summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2008-03-12 01:15:24 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2008-03-12 01:15:24 +0000
commit6b823d6fcd54ca620a1dd4f4ce04e5ef229d8ab3 (patch)
tree860ce3b257f10cf2a93b42cd8617de79ab01d2b7 /games-strategy
parentMinor QA cleanup. (diff)
downloadwolf31o2-6b823d6fcd54ca620a1dd4f4ce04e5ef229d8ab3.tar.gz
wolf31o2-6b823d6fcd54ca620a1dd4f4ce04e5ef229d8ab3.tar.bz2
wolf31o2-6b823d6fcd54ca620a1dd4f4ce04e5ef229d8ab3.zip
Removing some older ebuilds that have been moved into the tree and adding marbleblast-demo for some development.
svn path=/; revision=148
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/x2-demo/ChangeLog22
-rw-r--r--games-strategy/x2-demo/Manifest6
-rw-r--r--games-strategy/x2-demo/metadata.xml5
-rw-r--r--games-strategy/x2-demo/x2-demo-1.4.03.ebuild66
-rw-r--r--games-strategy/x2-demo/x2-demo-1.4.05.ebuild66
-rw-r--r--games-strategy/x2/ChangeLog16
-rw-r--r--games-strategy/x2/Manifest10
-rw-r--r--games-strategy/x2/metadata.xml5
-rw-r--r--games-strategy/x2/x2-1.4.01.ebuild95
-rw-r--r--games-strategy/x2/x2-1.4.03.ebuild101
-rw-r--r--games-strategy/x2/x2-1.4.05.ebuild118
11 files changed, 0 insertions, 510 deletions
diff --git a/games-strategy/x2-demo/ChangeLog b/games-strategy/x2-demo/ChangeLog
deleted file mode 100644
index 975c581..0000000
--- a/games-strategy/x2-demo/ChangeLog
+++ /dev/null
@@ -1,22 +0,0 @@
-# ChangeLog for games-strategy/x2-demo
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/x2-demo/ChangeLog,v 1.3 2006/12/12 18:24:13 wolf31o2 Exp $
-
-*x2-demo-1.4.03 (12 Dec 2006)
-
- 12 Dec 2006; Chris Gianelloni <wolf31o2@gentoo.org>
- -x2-demo-1.4.01.ebuild, +x2-demo-1.4.03.ebuild:
- Version bump. Unfortunately, upstream sucks and doesn't bother putting
- versions in their packaging. Because of this, we aren't mirroring this on
- our mirrors. Closing bug #157294.
-
- 06 Dec 2006; Chris Gianelloni <wolf31o2@gentoo.org> x2-demo-1.4.01.ebuild:
- Remove old virtual/x11 dependency.
-
-*x2-demo-1.4.01 (18 May 2006)
-
- 18 May 2006; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
- +x2-demo-1.4.01.ebuild:
- Initial import. Ebuild by Paul Bredbury <brebs@sent.com> and modified by me.
- Closing bug #132286.
-
diff --git a/games-strategy/x2-demo/Manifest b/games-strategy/x2-demo/Manifest
deleted file mode 100644
index 77a3405..0000000
--- a/games-strategy/x2-demo/Manifest
+++ /dev/null
@@ -1,6 +0,0 @@
-DIST x2-demo.run 188281527 RMD160 30e1ca9938252bc42c05076e8c279da61fd7b139 SHA1 431a747992b47df5897c8fab40f5a7083d47b3ab SHA256 653e68bf366172cffb6b77c0b1c55143d5a7bad6a8c08d9243bb646e0188bd4b
-DIST x2_demo.run 188272758 RMD160 2aca85cdede12bbb7a75d61c93dcf447344913cf SHA1 0ff1986b98015c1c3baea2b23feff346dfa9adab SHA256 185590eb67c56e862d57f97761276e37a5f3bb2a312c8eb7ab17c094a93a0859
-EBUILD x2-demo-1.4.03.ebuild 1662 RMD160 356de9dfcdb81ba1c624eae0323e820c42f4b4f1 SHA1 ee46c42cfaf23f507e2eabf0f3862873f7f16db6 SHA256 111e146de0f18cfc0eb42f531de899712057bfafc88d5c7e8daa9b92af701ea0
-EBUILD x2-demo-1.4.05.ebuild 1492 RMD160 ee21d1fd7d74e13a6464f6c02cf065987af6489b SHA1 7f84821fc23370eabbfc5aff2e272e7567483d8c SHA256 cbd594e3fda7d4a7330381eebb844afd8e6ac783fc97b5983bee099ad182ddcb
-MISC ChangeLog 884 RMD160 209d69d08683b82c92b3ebc35ce02eef4653aa18 SHA1 fb854fb494d1e0c6095e31ea09889fae5e458152 SHA256 7f52653b6fbf1b5bce6a499de7edefd8dd10c2d07a5f7fa1b0b94ed9da3cc355
-MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
diff --git a/games-strategy/x2-demo/metadata.xml b/games-strategy/x2-demo/metadata.xml
deleted file mode 100644
index d3c2cc9..0000000
--- a/games-strategy/x2-demo/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>games</herd>
-</pkgmetadata>
diff --git a/games-strategy/x2-demo/x2-demo-1.4.03.ebuild b/games-strategy/x2-demo/x2-demo-1.4.03.ebuild
deleted file mode 100644
index ce1bb2d..0000000
--- a/games-strategy/x2-demo/x2-demo-1.4.03.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/x2-demo/x2-demo-1.4.03.ebuild,v 1.2 2007/02/24 10:01:16 nyhm Exp $
-
-inherit eutils games
-
-DESCRIPTION="Open-ended space opera with trading, building & fighting"
-HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=x2"
-
-# Patches are in http://updatefiles.linuxgamepublishing.com/x2-demo/
-# Unversioned filename, grrr (is pre-patched).
-SRC_URI="http://demofiles.linuxgamepublishing.com/x2/${PN}.run"
-
-LICENSE="as-is"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-RESTRICT="mirror 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 )"
-
-S=${WORKDIR}
-
-dir=${GAMES_PREFIX_OPT}/${PN}
-Ddir=${D}/${dir}
-
-src_unpack() {
- unpack_makeself ${PN}.run
- unpack ./data.tar.gz
- rm -rf data.tar.gz lgp_* setup*
-
- # Prevents e.g. "cp: omitting directory bin/OpenBSD" warnings
- rm -f bin/*{BSD,64} bin/Linux/*64
-}
-
-src_install() {
- exeinto "${dir}"
- doexe bin/Linux/x86/x2_demo{,.dynamic} || die "doexe x2"
-
- insinto "${dir}"
- doins -r * || die "doins -r failed"
-
- keepdir "${dir}"/database
- rm -rf "${Ddir}"/bin
-
- # We don't support the dynamic version, even though we install it.
- games_make_wrapper ${PN} ./x2_demo "${dir}" "${dir}"
- newicon icon.xpm ${PN}.xpm || die "newicon failed"
- make_desktop_entry ${PN} "X2 - The Threat (Demo)" ${PN}.xpm
-
- prepgamesdirs
-}
diff --git a/games-strategy/x2-demo/x2-demo-1.4.05.ebuild b/games-strategy/x2-demo/x2-demo-1.4.05.ebuild
deleted file mode 100644
index c61eecd..0000000
--- a/games-strategy/x2-demo/x2-demo-1.4.05.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit eutils games
-
-MY_PN=${PN/-/_}
-
-DESCRIPTION="Open-ended space opera with trading, building & fighting"
-HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=x2"
-
-# Patches are in http://updatefiles.linuxgamepublishing.com/x2-demo/
-# Unversioned filename, grrr (is pre-patched).
-SRC_URI="http://demofiles.linuxgamepublishing.com/x2/${MY_PN}.run"
-
-LICENSE="as-is"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-RESTRICT="mirror 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 )"
-
-S=${WORKDIR}
-
-dir=${GAMES_PREFIX_OPT}/${PN}
-Ddir=${D}/${dir}
-
-src_unpack() {
- unpack_makeself ${MY_PN}.run
- unpack ./data.tar.gz
- rm -rf data.tar.gz lgp_* setup*
-
- mv bin "${T}" || die "mv bin"
-}
-
-src_install() {
- exeinto "${dir}"
- doexe "${T}"/bin/Linux/x86/x2_demo{,.dynamic} || die "doexe x2"
-
- insinto "${dir}"
- doins -r * || die "doins -r"
-
- keepdir "${dir}"/database
-
- # We don't support the dynamic version, even though we install it.
- games_make_wrapper ${PN} ./x2_demo "${dir}" "${dir}"
- newicon icon.xpm ${PN}.xpm || die "newicon failed"
- make_desktop_entry ${PN} "X2 - The Threat (Demo)" ${PN}.xpm
-
- prepgamesdirs
-}
diff --git a/games-strategy/x2/ChangeLog b/games-strategy/x2/ChangeLog
deleted file mode 100644
index e8e9143..0000000
--- a/games-strategy/x2/ChangeLog
+++ /dev/null
@@ -1,16 +0,0 @@
-# ChangeLog for games-strategy/x2
-# 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)
-
- 23 Oct 2006; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
- +x2-1.4.01.ebuild:
- Initial import. Ebuild by Paul Bredbury <brebs@sent.com> and edited by me.
- Closing bug #150539.
-
diff --git a/games-strategy/x2/Manifest b/games-strategy/x2/Manifest
deleted file mode 100644
index da6646c..0000000
--- a/games-strategy/x2/Manifest
+++ /dev/null
@@ -1,10 +0,0 @@
-DIST x2-1.4-1.4.01-x86.run 1030707 RMD160 e11975ec3703b780aa9a5a83e6832129b7ab3868 SHA1 9820235fff55d2ea0babd587535853eee181706e SHA256 0700dee701a2c630615dac16960672a7ceb97ebf147848566383e6caefbd52cd
-DIST x2-1.4.01-1.4.02-x86.run 1219653 RMD160 154550af595008c8849e75014d02e34d150b5f6c SHA1 9c89661e4b9e4d9196468f6c1c0d2366cefd9c38 SHA256 65a087b67248f05ad0fa0b513b1c5c6d2dc77d915914315758ac7549b55dd926
-DIST x2-1.4.02-1.4.03-x86.run 534472 RMD160 6f921d3e8b8b4260333e385f7339f184127bfaf8 SHA1 91ca433fd7aec0c6a311392e1cb8e3dd410dc466 SHA256 04eded4d3aa5ed04d736a15f0f836fe0bfd4186bb27e2d44f11b2d73851cb316
-DIST x2-1.4.03-1.4.04-x86.run 995284 RMD160 f2134383b23bdf8e0b53bcc74c1bf9f5d59af925 SHA1 5e7780b64f2c9043246bdfb92f9c8b652ee17127 SHA256 8e2c8783e13d18cc8bef555a2953061058561a2f66f74efa1e57554c29a7a9c1
-DIST x2-1.4.04-1.4.05-x86.run 885752 RMD160 10c57dc8305058405a1dff0249aa2ac4e3b89e06 SHA1 ca42bdc2519848711f6e720a4c1b345e96622cbc SHA256 2b47203d0565919ebca7f023d6832525bf37e4d1e8ca13a9c92fd79d0c13b307
-EBUILD x2-1.4.01.ebuild 2456 RMD160 02b6f233bc86ccfe0e1328d0e89e07ce9c2a088a SHA1 bc3caf36f7c40a5bc07893a05c080d93d6be43cc SHA256 d3742d49a1d87be327789078abccf8fe8ebfc16cb6482633cb26a7a3daefa798
-EBUILD x2-1.4.03.ebuild 2560 RMD160 b2d3281d416b5007f5220d388d1b631ee47dc2a9 SHA1 d32e08fb438f231ef257b1c117fbeb7f011c8ecd SHA256 c67dc30d9aa648ebfa2ec2aa4c0a7a196a9b9e01bd4287b19c24bcc7dd3f8dc3
-EBUILD x2-1.4.05.ebuild 2775 RMD160 e3a776be8e255b905ac4712acae1135d538fa010 SHA1 d306fcd5e45cb562a9150d9e83e441a796e7ba9a SHA256 5e1de1b5530a172f68135b682baa856343a7d1acde35b00fdc2c8b16bfd496e3
-MISC ChangeLog 576 RMD160 66e6ec900f56e0549b4e6a6479e1b90190a2649c SHA1 d83989984841bed565a091eb927528d744934195 SHA256 d58ef37e2563a54edc3ff759196ee35c79dc05a914f6657557fcb55b925541c6
-MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
diff --git a/games-strategy/x2/metadata.xml b/games-strategy/x2/metadata.xml
deleted file mode 100644
index d3c2cc9..0000000
--- a/games-strategy/x2/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>games</herd>
-</pkgmetadata>
diff --git a/games-strategy/x2/x2-1.4.01.ebuild b/games-strategy/x2/x2-1.4.01.ebuild
deleted file mode 100644
index dfd89b6..0000000
--- a/games-strategy/x2/x2-1.4.01.ebuild
+++ /dev/null
@@ -1,95 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/x2/x2-1.4.01.ebuild,v 1.1 2006/10/23 18:16:38 wolf31o2 Exp $
-
-inherit eutils versionator games
-
-PV_MAJOR=$(get_version_component_range 1-2)
-MY_P=${PN}-${PV_MAJOR}-${PV}
-
-DESCRIPTION="Open-ended space opera with trading, building & fighting"
-HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=x2"
-SRC_URI="http://updatefiles.linuxgamepublishing.com/${PN}/${MY_P}-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-medialibs
- app-emulation/emul-linux-x86-sdl
- app-emulation/emul-linux-x86-xlibs )"
-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"
-
- mkdir patch
- cd patch
- unpack_makeself ${MY_P}-x86.run
- bin/Linux/x86/loki_patch patch.dat "${S}" || die "loki_patch failed"
- cp -f README.txt "${S}"/patch.txt || die "cp README.txt failed"
- cd "${S}"
- rm -rf patch
-
- # These files do not get installed
- [[ -e modkit ]] && rm -f modkit/x2*.debug
-}
-
-src_install() {
- 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
-}
diff --git a/games-strategy/x2/x2-1.4.03.ebuild b/games-strategy/x2/x2-1.4.03.ebuild
deleted file mode 100644
index 6b7514e..0000000
--- a/games-strategy/x2/x2-1.4.03.ebuild
+++ /dev/null
@@ -1,101 +0,0 @@
-# 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
-}
diff --git a/games-strategy/x2/x2-1.4.05.ebuild b/games-strategy/x2/x2-1.4.05.ebuild
deleted file mode 100644
index e24a5fb..0000000
--- a/games-strategy/x2/x2-1.4.05.ebuild
+++ /dev/null
@@ -1,118 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit eutils games
-
-MY_PV="1.4.04-${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"
-# Patches are in http://updatefiles.linuxgamepublishing.com/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}-1.4.02-1.4.03-x86.run
- ${MY_UPD}/${PN}-1.4.03-1.4.04-x86.run
- ${MY_UPD}/${PN}-${MY_PV}-x86.run"
-
-LICENSE="as-is"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="bonusscripts dynamic langpacks linguas_de 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}
-
-unpackit() {
- unpack "./cd/${1}.tar.gz"
-}
-
-src_unpack() {
- cdrom_get_cds bin/Linux/x86/${PN}
- ln -sfn "${CDROM_ROOT}"/data cd
-
- unpackit data
- use bonusscripts && unpackit bonusscripts
- use linguas_de && unpackit german
- use langpacks && unpackit langpacks
- use modkit && unpackit modkit
-
- rm -f cd
-
- cp -rf "${CDROM_ROOT}"/bin/Linux/x86/* . || die "cp exes"
- cp -f "${CDROM_ROOT}"/{READ*,icon*} . || die "cp READ*"
-
- # Apply the patches
- local p
- for p in 1.4-1.4.01 1.4.01-1.4.02 1.4.02-1.4.03 1.4.03-1.4.04 \
- "${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}"
- cp -f README.txt "${S}/ChangeLog" || die "cp README.txt"
- 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"
- keepdir "${dir}"/Database
-
- exeinto "${dir}"
- doexe x2{,.dynamic} || die "doexe x2"
-
- if use modkit ; then
- exeinto "${dir}"/modkit
- doexe modkit/x2{build,tool}{,.dynamic} || die "doexe modkit"
- 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"
- make_desktop_entry ${PN} "X2 - The Threat" ${PN}.xpm
-
- prepgamesdirs
-}
-
-pkg_postinst() {
- games_pkg_postinst
-
- if use dynamic ; then
- elog "Please try without the 'dynamic' USE flag, before reporting bugs."
- fi
-}