/[gentoo-x86]/games-puzzle/enigma/enigma-0.91.ebuild
Gentoo

Contents of /games-puzzle/enigma/enigma-0.91.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon May 2 23:20:06 2005 UTC (14 years, 10 months ago) by mr_bones_
Branch: MAIN
version bump (bug #91090)
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/enigma/enigma-0.81.ebuild,v 1.16 2004/12/28 15:39:58 josejx Exp $
4
5 inherit eutils games
6
7 DESCRIPTION="puzzle game similar to Oxyd"
8 HOMEPAGE="http://www.nongnu.org/enigma/"
9 SRC_URI="http://savannah.nongnu.org/download/enigma/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ppc ~sparc x86"
14 IUSE="nls"
15
16 DEPEND="sys-libs/zlib
17 media-libs/sdl-ttf
18 >=media-libs/libsdl-1.2.0
19 >=media-libs/sdl-mixer-1.2.4
20 >=media-libs/sdl-image-1.2.0
21 >=dev-lang/lua-4.0
22 nls? ( sys-devel/gettext )"
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27
28 # fix up the locale install location
29 if use nls ; then
30 sed -i \
31 -e "/^datadir/s:=.*:= /usr/share:" po/Makefile.in.in \
32 || die "sed failed"
33 fi
34
35 # thanks, we'll handle the doc install ourselves.
36 sed -i \
37 -e 's/: install-docDATA/:/' \
38 -e '/^SUBDIRS/s/doc//' Makefile.in \
39 || die "sed failed"
40 }
41
42 src_compile() {
43 egamesconf \
44 --disable-dependency-tracking \
45 --enable-optimize \
46 $(use_enable nls) \
47 || die
48 emake || die "emake failed"
49 }
50
51 src_install() {
52 make DESTDIR="${D}" install || die "make install failed"
53 mv "${D}/${GAMES_PREFIX}/share/"* "${D}/usr/share/"
54 rm -r "${D}/${GAMES_PREFIX}/share"
55 dodoc NEWS README AUTHORS INSTALL ChangeLog \
56 doc/{TODO,CREATING-LEVELS,HACKING}
57 dohtml -r doc/*
58 doman doc/enigma.6
59 prepgamesdirs
60 }

  ViewVC Help
Powered by ViewVC 1.1.20