blob: 53f196342b8fcfd4080fa546f60a143acd2b868f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/amoebax/amoebax-0.2.0.ebuild,v 1.7 2010/01/09 18:59:58 tupone Exp $
EAPI=2
inherit autotools eutils games
DESCRIPTION="a cute and addictive action-puzzle game, similar to tetris"
HOMEPAGE="http://www.emma-soft.com/games/amoebax/"
SRC_URI="http://www.emma-soft.com/games/amoebax/download/${P}.tar.bz2"
LICENSE="FreeArt GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="media-libs/libsdl
media-libs/sdl-image
media-libs/sdl-mixer"
DEPEND="${RDEPEND}"
src_prepare() {
epatch \
"${FILESDIR}"/${P}-gcc43.patch \
"${FILESDIR}"/${P}-glibc2.10.patch \
"${FILESDIR}"/${P}-aclocal.patch
sed -i \
-e "/^SUBDIRS/s:doc ::" \
Makefile.am \
|| die "sed failed"
sed -i \
-e "/^iconsdir/s:=.*:=/usr/share/pixmaps:" \
-e "/^desktopdir/s:=.*:=/usr/share/applications:" \
data/Makefile.am \
|| die "sed failed"
AT_M4DIR=m4 eautoreconf
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS NEWS README TODO
prepgamesdirs
}
|