/[gentoo-x86]/games-puzzle/ltris/ltris-1.0.11.ebuild
Gentoo

Contents of /games-puzzle/ltris/ltris-1.0.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Jun 26 03:21:45 2008 UTC (11 years, 7 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.4.4)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/ltris/ltris-1.0.11.ebuild,v 1.8 2008/03/07 19:16:33 wolf31o2 Exp $
4
5 WANT_AUTOCONF="latest"
6 WANT_AUTOMAKE="latest"
7 inherit autotools eutils games
8
9 DESCRIPTION="very polished Tetris clone"
10 HOMEPAGE="http://lgames.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/lgames/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc sparc x86"
16 IUSE="nls"
17
18 RDEPEND="media-libs/libsdl
19 media-libs/sdl-mixer
20 nls? ( virtual/libintl )"
21 DEPEND="${RDEPEND}
22 nls? ( sys-devel/gettext )"
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27 if use nls ; then
28 sed -i \
29 -e '/^localedir/s:$(datadir):/usr/share:' \
30 po/Makefile.in.in \
31 || die "sed failed"
32 sed -i \
33 -e '/^localedir/s:$datadir:/usr/share:' \
34 configure.in \
35 || die "sed failed"
36 AT_M4DIR=m4 eautoreconf
37 fi
38 }
39
40 src_compile() {
41 egamesconf \
42 --disable-dependency-tracking \
43 --with-highscore-path="${GAMES_STATEDIR}" \
44 $(use_enable nls) || die
45 emake || die "emake failed"
46 }
47
48 src_install() {
49 emake DESTDIR="${D}" install || die "emake install failed"
50 dodoc AUTHORS ChangeLog README TODO
51 newicon icons/ltris48.xpm ${PN}.xpm
52 make_desktop_entry ltris LTris ${PN}
53 prepgamesdirs
54 }

  ViewVC Help
Powered by ViewVC 1.1.20