Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 175978 | Differences between
and this patch

Collapse All | Expand All

(-)quackle-0.95.ebuild.orig (-7 / +7 lines)
Lines 10-16 Link Here
10
10
11
LICENSE="GPL-2"
11
LICENSE="GPL-2"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="~amd64"
13
KEYWORDS="~amd64 ~x86"
14
IUSE=""
14
IUSE=""
15
15
16
DEPEND="dev-util/scons
16
DEPEND="dev-util/scons
Lines 18-36 Link Here
18
RDEPEND="$DEPEND"
18
RDEPEND="$DEPEND"
19
19
20
src_unpack() {
20
src_unpack() {
21
        unpack ${A}
21
		unpack ${A}
22
        cd ${S}
22
		cd ${S}
23
23
24
	#includes header to make C++ assert calls work
24
	#includes header to make C++ assert calls work
25
	epatch ${FILESDIR}/0.95-gentoo-assert.patch
25
	epatch ${FILESDIR}/0.95-gentoo-assert.patch
26
26
27
	#changes path to data files
27
	#changes path to data files
28
	einfo "Removing hard-coded paths to data files"
28
	einfo "Removing hard-coded paths to data files"
29
        replace \"data\" \"${GAMES_DATADIR}/${PN}\" -- quackletest.cpp quacker/settings.cpp
29
	sed -is "s?\"data\"?\"${GAMES_DATADIR}/${PN}\"?" quackletest.cpp quacker/settings.cpp
30
	replace ../data ${GAMES_DATADIR}/${PN} -- quacker/settings.cpp encodeleaves/encodeleaves.cpp makeminidawg/makeminidawg.cpp
30
	sed -is "s?../data?${GAMES_DATADIR}/${PN}?" quacker/settings.cpp encodeleaves/encodeleaves.cpp makeminidawg/makeminidawg.cpp
31
31
32
	#need to clean up distfile first
32
	#need to clean up distfile first
33
        scons -c || die "couldn't clean up cruft in distfiles"
33
		scons -c || die "couldn't clean up cruft in distfiles"
34
}
34
}
35
35
36
src_compile() {
36
src_compile() {
Lines 45-51 Link Here
45
	dogamesbin ${S}/quacker/quacker || "installing quacker failed"
45
	dogamesbin ${S}/quacker/quacker || "installing quacker failed"
46
46
47
	insinto ${GAMES_DATADIR}/${PN}
47
	insinto ${GAMES_DATADIR}/${PN}
48
        doins -r data/* || die "installing quacker data files failed"
48
		doins -r data/* || die "installing quacker data files failed"
49
49
50
	doicon "${FILESDIR}"/quackle.png
50
	doicon "${FILESDIR}"/quackle.png
51
	make_desktop_entry quacker "Quackle" quackle "Game;BoardGame"
51
	make_desktop_entry quacker "Quackle" quackle "Game;BoardGame"

Return to bug 175978