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