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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Jan 25 01:59:14 2010 UTC (9 years, 11 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.6.13/cvs/Linux i686)

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

  ViewVC Help
Powered by ViewVC 1.1.20