/[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.3 - (hide annotations) (download)
Wed Jun 15 18:59:56 2005 UTC (14 years, 8 months ago) by wolf31o2
Branch: MAIN
Changes since 1.2: +2 -2 lines
Removed INSTALL file.
(Portage version: 2.0.51.22-r1)

1 mr_bones_ 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 wolf31o2 1.3 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/enigma/enigma-0.91.ebuild,v 1.2 2005/05/30 18:56:19 mr_bones_ Exp $
4 mr_bones_ 1.1
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 mr_bones_ 1.2 -e "/^datadir/s:=.*:= /usr/share:" \
32     po/Makefile.in.in \
33     src/Makefile.am \
34 mr_bones_ 1.1 || die "sed failed"
35     fi
36    
37     # thanks, we'll handle the doc install ourselves.
38     sed -i \
39     -e 's/: install-docDATA/:/' \
40     -e '/^SUBDIRS/s/doc//' Makefile.in \
41     || die "sed failed"
42     }
43    
44     src_compile() {
45     egamesconf \
46     --disable-dependency-tracking \
47     --enable-optimize \
48     $(use_enable nls) \
49     || die
50     emake || die "emake failed"
51     }
52    
53     src_install() {
54     make DESTDIR="${D}" install || die "make install failed"
55     mv "${D}/${GAMES_PREFIX}/share/"* "${D}/usr/share/"
56     rm -r "${D}/${GAMES_PREFIX}/share"
57 wolf31o2 1.3 dodoc NEWS README AUTHORS ChangeLog \
58 mr_bones_ 1.1 doc/{TODO,CREATING-LEVELS,HACKING}
59     dohtml -r doc/*
60     doman doc/enigma.6
61     prepgamesdirs
62     }

  ViewVC Help
Powered by ViewVC 1.1.20