/[gentoo-x86]/games-strategy/majesty-demo/majesty-demo-1.0.0.ebuild
Gentoo

Contents of /games-strategy/majesty-demo/majesty-demo-1.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Wed Feb 8 21:33:05 2012 UTC (2 years, 10 months ago) by vapier
Branch: MAIN
Changes since 1.11: +3 -7 lines
Move to new unpacker eclass for unpack_makeself.

(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-strategy/majesty-demo/majesty-demo-1.0.0.ebuild,v 1.11 2008/02/29 19:44:40 carlo Exp $
4
5 inherit eutils unpacker games
6
7 DESCRIPTION="Control your own kingdom in this simulation."
8 HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=8&"
9 SRC_URI="http://demos.linuxgamepublishing.com/majesty/majesty_demo.run"
10
11 LICENSE="as-is"
12 SLOT="0"
13 KEYWORDS="amd64 ppc x86"
14 RESTRICT="strip"
15 IUSE=""
16
17 RDEPEND="sys-libs/glibc
18 x86? (
19 x11-libs/libX11
20 x11-libs/libXext
21 x11-libs/libXau
22 x11-libs/libXdmcp )
23 ppc? (
24 x11-libs/libX11
25 x11-libs/libXext
26 x11-libs/libXau
27 x11-libs/libXdmcp )
28 amd64? (
29 app-emulation/emul-linux-x86-baselibs
30 app-emulation/emul-linux-x86-xlibs )"
31
32 S=${WORKDIR}
33
34 dir=${GAMES_PREFIX_OPT}/${PN}
35 Ddir=${D}/${dir}
36
37 src_install() {
38 dodoc README* || die "dodoc"
39 insinto "${dir}"
40 exeinto "${dir}"
41 doins -r data quests || die "doins data"
42 doins majesty.{bmp,xpm} majestysite.url || die "doins"
43 cp "${S}"/majesty.xpm "${S}"/majesty-demo.xpm || die "copy icon"
44 doicon majesty-demo.xpm || die "doicon"
45 # I am only installing the static version for now
46 if use x86 || use amd64; then
47 doexe bin/Linux/x86/glibc-2.1/maj_demo || die "doexe"
48 elif use ppc; then
49 doexe bin/Linux/ppc/glibc-2.1/maj_demo || die "doexe"
50 fi
51 games_make_wrapper maj_demo ./maj_demo "${dir}" "${dir}"
52 prepgamesdirs
53 make_desktop_entry maj_demo "Majesty (Demo)" ${PN}
54 }

  ViewVC Help
Powered by ViewVC 1.1.20