diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2007-04-27 04:47:24 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2007-04-27 04:47:24 +0000 |
commit | f13354f2758995cc9cae18ab472a50cfb76ec968 (patch) | |
tree | b6072b81b1b590f1da05114bfa6b9a16dcf9eca1 /games-strategy/knights-demo/knights-demo-1.32.ebuild | |
parent | license for games-strategy/knights-demo (diff) | |
download | gentoo-2-f13354f2758995cc9cae18ab472a50cfb76ec968.tar.gz gentoo-2-f13354f2758995cc9cae18ab472a50cfb76ec968.tar.bz2 gentoo-2-f13354f2758995cc9cae18ab472a50cfb76ec968.zip |
initial commit - ebuild submitted by Paul Bredbury via bug #168505
(Portage version: 2.1.2.2)
Diffstat (limited to 'games-strategy/knights-demo/knights-demo-1.32.ebuild')
-rw-r--r-- | games-strategy/knights-demo/knights-demo-1.32.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/games-strategy/knights-demo/knights-demo-1.32.ebuild b/games-strategy/knights-demo/knights-demo-1.32.ebuild new file mode 100644 index 000000000000..fd9e08fac0b2 --- /dev/null +++ b/games-strategy/knights-demo/knights-demo-1.32.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/knights-demo/knights-demo-1.32.ebuild,v 1.1 2007/04/27 04:47:24 mr_bones_ Exp $ + +inherit eutils games + +DESCRIPTION="Anglo-Saxon medieval army battles and resource management" +HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=knights" +# Unversioned upstream filename +SRC_URI="mirror://gentoo/${P}.run" + +LICENSE="knights-demo" +SLOT="0" +KEYWORDS="x86" +IUSE="" +RESTRICT="strip" + +RDEPEND="sys-libs/glibc + x86? ( + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libXi ) + amd64? ( app-emulation/emul-linux-x86-xlibs )" + +S=${WORKDIR} + +src_unpack() { + unpack_makeself ${P}.run + mv -f data{,-temp} + unpack ./data-temp/data.tar.gz + rm -rf data-temp lgp_* setup* +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/${PN} + + exeinto "${dir}" + doexe bin/Linux/x86/${PN}{,.dynamic} || die "doexe failed" + + insinto "${dir}" + doins -r data || die "doins -r failed" + doins EULA icon.xpm README{,.licenses} || die "doins failed" + + # We don't support the dynamic version, even though we install it. + games_make_wrapper ${PN} ./${PN} "${dir}" "${dir}" + newicon icon.xpm ${PN}.xpm || die "newicon failed" + make_desktop_entry ${PN} "Knights and Merchants (Demo)" ${PN}.xpm + prepgamesdirs +} |