blob: 6abdd3c807f1a57247f841732a23b6b158151d06 (
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
44
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-kids/gtans/gtans-1.2.ebuild,v 1.2 2004/02/22 17:16:27 brad_mssw Exp $
inherit games
DESCRIPTION="The Tangram is a chinese puzzle. The object is to put seven geometric shapes together so as to form a given outline."
HOMEPAGE="http://gtans.sourceforge.net/"
SRC_URI="http://download.sourceforge.net/gtans/${P}.tar.gz"
KEYWORDS="x86 amd64"
LICENSE="GPL-2"
SLOT="0"
IUSE="nls"
DEPEND="virtual/x11
>=x11-libs/gtk+-1.2.1
dev-libs/glib
nls? ( sys-devel/gettext )
>=sys-apps/sed-4"
src_unpack() {
unpack ${A}
cd ${S}
if ! use nls ; then
sed -i \
-e "/\(TGTXT\| po\)/ s/^/#/" \
-e "/^CC/ s:=.*:= ${CC}:" \
-e "/misc/ s/PREFIX.*/install/" \
-e "/^CFLG[ ]*=/ s:=.*:= ${CFLAGS}:" makefile \
|| die "sed makefile failed"
fi
sed -i \
-e "s:/share::" \
-e "/^PREFIX/ s:usr:usr/share:" misc/Makefile \
|| die "sed misc/Makefile failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS HISTORY || die "dodoc failed"
prepgamesdirs
}
|