www-apps/pmwiki - cookbook - totalcounter
[anomen-overlay.git] / games-rpg / eschalon1-demo / eschalon1-demo-1.0.ebuild
blob92ec7c8f5aa02ebb319cc8207d676365e18c8a91
1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-strategy/dominions2-demo/dominions2-demo-2.08.ebuild,v 1.2 2006/12/06 20:33:26 wolf31o2 Exp $
5 inherit games
7 DESCRIPTION="Eschalon Book I is an turn-based fantasy RPG game"
8 HOMEPAGE="http://www.basiliskgames.com/book1.htm"
9 SRC_URI="eschalon_book_1_demo.tar.gz"
11 LICENSE="as-is"
12 SLOT="0"
13 KEYWORDS="x86 amd64"
14 IUSE=""
15 RESTRICT="fetch strip"
17 RDEPEND="virtual/glu
18 virtual/opengl
19 x86? (
20 x11-libs/libX11
21 x11-libs/libXext
22 x11-libs/libXau
23 x11-libs/libXdmcp
24 x11-libs/libXxf86vm
26 amd64? ( app-emulation/emul-linux-x86-xlibs ) "
28 S="${WORKDIR}/eschalon_book_1_demo"
29 dir="${GAMES_PREFIX_OPT}/${PN}"
30 Ddir="${D}/${dir}"
32 pkg_nofetch() {
33 einfo "Please download ${At} from:"
34 einfo ${HOMEPAGE}
37 src_install() {
38 dodir "${dir}"
39 insinto "${dir}"
40 exeinto "${dir}"
42 dohtml "help.html"
43 dodoc "license.txt"
44 mv -f "Eschalon Players Manual.pdf" "${D}/usr/share/doc/${PF}/"
46 doins -r data music sound gfx.pak eschalon.cfg || die "cp failed"
47 doexe eschalon_book_1_demo
49 fperms 660 "${dir}"/eschalon.cfg
51 games_make_wrapper ${PN} ./eschalon_book_1_demo "${dir}" "${dir}"
53 newicon launch_icon.png ${PN}.png || die
55 make_desktop_entry ${PN} "Eschalon Book I (Demo)" ${PN}.png
57 prepgamesdirs