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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Dec 19 13:25:27 2009 UTC (10 years, 2 months ago) by pacho
Branch: MAIN
Changes since 1.2: +2 -2 lines
stable amd64, bug 296121
(Portage version: 2.1.7.15/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20