diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-05-18 11:59:20 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-05-18 11:59:20 +0000 |
commit | ab0664b6da300bca0a9792004e4ec3e2820e192f (patch) | |
tree | a2f2ec06b5f3758b7540c7ab6f926711e813f8a5 /games-strategy/x2-demo/x2-demo-1.4.01.ebuild | |
parent | Sync with 2006.0 (diff) | |
download | gentoo-2-ab0664b6da300bca0a9792004e4ec3e2820e192f.tar.gz gentoo-2-ab0664b6da300bca0a9792004e4ec3e2820e192f.tar.bz2 gentoo-2-ab0664b6da300bca0a9792004e4ec3e2820e192f.zip |
Initial import. Ebuild by Paul Bredbury <brebs@sent.com> and modified by me. Closing bug #132286.
(Portage version: 2.1_rc1-r2)
Diffstat (limited to 'games-strategy/x2-demo/x2-demo-1.4.01.ebuild')
-rw-r--r-- | games-strategy/x2-demo/x2-demo-1.4.01.ebuild | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/games-strategy/x2-demo/x2-demo-1.4.01.ebuild b/games-strategy/x2-demo/x2-demo-1.4.01.ebuild new file mode 100644 index 000000000000..6e359e22724f --- /dev/null +++ b/games-strategy/x2-demo/x2-demo-1.4.01.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2006 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.01.ebuild,v 1.1 2006/05/18 11:59:20 wolf31o2 Exp $ + +# The comments are in this ebuild in case upstream ever decides to make another +# patch, we already have all the code. Blame Paul Bredbury <brebs@sent.com> for +# writing it all. *grin* + +#inherit eutils versionator games +inherit eutils 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" + +# Patches are in http://updatefiles.linuxgamepublishing.com/x2-demo/ +SRC_URI="http://demofiles.linuxgamepublishing.com/x2/${PN}.run" +# http://updatefiles.linuxgamepublishing.com/${PN}/${MY_P}-x86.run" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="primaryuri 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 ) + virtual/x11 ) ) + amd64? ( + app-emulation/emul-linux-x86-baselibs + app-emulation/emul-linux-x86-xlibs + app-emulation/emul-linux-x86-soundlibs + app-emulation/emul-linux-x86-sdl + app-emulation/emul-linux-x86-gtklibs )" + +S=${WORKDIR} + +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} + +src_unpack() { + unpack_makeself ${PN}.run +# unpack_makeself ${MY_P}-x86.run + unpack ./data.tar.gz + rm -r data.tar.gz lgp_* setup* +} + +src_install() { + exeinto "${dir}" + doexe bin/Linux/x86/x2* || die "doins exes" + + insinto "${dir}" + doins -r * || die "doins -r failed" + +# bin/Linux/x86/loki_patch patch.dat ${Ddir} || die "loki_patch failed" +# loki_patch patch.dat ${Ddir} || die "loki_patch failed" + + keepdir "${dir}"/database + rm -f "${Ddir}"/bin + + # x2_demo.dynamic continually moans about "SIGABRT caught", + # so let's use the static binary instead. + games_make_wrapper ${PN} ./x2_demo "${dir}" "${dir}" + newicon icon.xpm ${PN}.xpm + make_desktop_entry ${PN} "X2 - The Threat (Demo)" ${PN}.xpm + + prepgamesdirs +} |