Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 218390
Collapse All | Expand All

(-)grundhog.old/files/1.4-gcc3.patch (-1 lines)
Lines 1-39 Link Here
1
diff -ur src.orig/game.cc src/game.cc
(-)grundhog.old/files/groundhog-1.4-gcc41.patch
Lines 1-11 Link Here
(-)grundhog.old/groundhog-1.4.ebuild (-7 / +33 lines)
Line 0 Link Here
1
--- groundhog-1.4.orig/src/dialog.cc	2008-04-19 00:09:24.000000000 +0200
Line 0 Link Here
1
--- missing.old	1999-06-07 22:06:34.000000000 +0200
Line 0 Link Here
1
--- groundhog-1.4.orig/README	2008-04-19 00:09:24.000000000 +0200
Line 0 Link Here
1
--- groundhog-1.4.orig/configure.in	2008-04-19 00:09:24.000000000 +0200
Lines 1-16 Link Here
1
# Copyright 1999-2006 Gentoo Foundation
1
# Copyright 1999-2006 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/groundhog/groundhog-1.4.ebuild,v 1.18 2006/10/04 21:12:52 nyhm Exp $
3
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/groundhog/groundhog-1.4.ebuild,v 1.18 2006/10/04 21:12:52 nyhm Exp $
4
4
5
inherit eutils games
5
inherit eutils autotools games
6
6
7
DESCRIPTION="Put the balls in the pockets of the same color by manipulating a maze of tubes"
7
DESCRIPTION="Put the balls in the pockets of the same color by manipulating a maze of tubes"
8
HOMEPAGE="http://home-2.consunet.nl/~cb007736/groundhog.html"
8
HOMEPAGE="http://home-2.consunet.nl/~cb007736/groundhog.html"
9
SRC_URI="http://home-2.consunet.nl/~cb007736/${P}.tar.gz"
9
SRC_URI="http://home-2.consunet.nl/~cb007736/${P}.tar.gz"
10
10
11
LICENSE="GPL-2"
11
LICENSE="BSD-2 GPL-2"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="amd64 ppc x86"
13
KEYWORDS="amd64 ppc x86"
14
IUSE="nls"
14
IUSE="nls"
15
15
16
RDEPEND="=x11-libs/gtk+-2*
16
RDEPEND="=x11-libs/gtk+-2*
Lines 18-40 Link Here
18
DEPEND="${RDEPEND}
18
DEPEND="${RDEPEND}
19
	nls? ( sys-devel/gettext )"
19
	nls? ( sys-devel/gettext )"
20
20
21
src_unpack() {
21
src_unpack() {
22
	unpack ${A}
22
	unpack ${A}
23
23
	cd "${S}"
24
	cd "${S}"
24
	epatch "${FILESDIR}"/${PV}-gcc3.patch \
25
25
		"${FILESDIR}/${P}"-gcc41.patch
26
	local patch
26
	sed -i 's:$(localedir):/usr/share/locale:' \
27
	local patches="gcc-fixup swedish readme missing"
27
		$(find . -name 'Makefile.in*') \
28
	for patch in ${patches}; do
28
		|| die "sed failed"
29
		epatch "${FILESDIR}/${P}-${patch}.patch"
30
	done
31
32
	if use nls; then
33
		gettext_modify
34
35
		ebegin Running gettextize --force --intl --po-dir=./po
36
		"${T}"/gettextize --force --intl --po-dir=./po &> /dev/null
37
		local greturn="${?}"
38
		eend ${greturn}
39
40
		eautoreconf
41
	fi
29
}
42
}
30
43
31
src_compile() {
44
src_compile() {
32
	egamesconf $(use_enable nls) || die
45
	egamesconf $(use_enable nls) || die
33
	emake CXXFLAGS="${CXXFLAGS}" || die "emake failed"
46
	emake CXXFLAGS="${CXXFLAGS}" || die "emake failed"
34
}
47
}
35
48
36
src_install() {
49
src_install() {
37
	emake DESTDIR="${D}" install || die "emake install failed"
50
	emake DESTDIR="${D}" install || die "emake install failed"
38
	dodoc README NEWS AUTHORS TODO
51
	dodoc README NEWS AUTHORS TODO
52
	make_desktop_entry "groundhog" "Groundhog"
39
	prepgamesdirs
53
	prepgamesdirs
40
}
54
}
55
56
#Snatched from enlightenment.eclass
57
gettext_modify() {
58
	cp $(type -P gettextize) "${T}"/ || die "could not copy gettextize"
59
	sed -i \
60
		-e 's:read dummy < /dev/tty::' \
61
		"${T}"/gettextize
62
}

Return to bug 218390