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

Collapse All | Expand All

(-)singularity-0.30c.ebuild.orig (-3 / +16 lines)
Lines 2-9 Link Here
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-simulation/singularity/singularity-0.30c.ebuild,v 1.3 2011/08/07 03:11:59 phajdan.jr Exp $
3
# $Header: /var/cvsroot/gentoo-x86/games-simulation/singularity/singularity-0.30c.ebuild,v 1.3 2011/08/07 03:11:59 phajdan.jr Exp $
4
4
5
EAPI=2
5
EAPI=3
6
inherit eutils games
6
PYTHON_DEPEND="2:2.4"
7
inherit eutils games python
7
8
8
MUSIC=endgame-${PN}-music-006
9
MUSIC=endgame-${PN}-music-006
9
DESCRIPTION="A simulation of a true AI. Go from computer to computer, pursued by the entire world"
10
DESCRIPTION="A simulation of a true AI. Go from computer to computer, pursued by the entire world"
Lines 21-26 Link Here
21
DEPEND="${RDEPEND}
22
DEPEND="${RDEPEND}
22
	app-arch/unzip"
23
	app-arch/unzip"
23
24
25
pkg_setup() {
26
	python_set_active_version 2
27
}
28
24
src_prepare() {
29
src_prepare() {
25
	rm -f code/{,*}/*.pyc data/*.html # Remove unecessary files
30
	rm -f code/{,*}/*.pyc data/*.html # Remove unecessary files
26
}
31
}
Lines 31-37 Link Here
31
	if use music ; then
36
	if use music ; then
32
		doins -r ../${MUSIC}/music || die "doins failed"
37
		doins -r ../${MUSIC}/music || die "doins failed"
33
	fi
38
	fi
34
	games_make_wrapper ${PN} "python ${PN}.py" "${GAMES_DATADIR}/${PN}"
39
	games_make_wrapper ${PN} "python2 ${PN}.py" "${GAMES_DATADIR}/${PN}"
35
	dodoc README.txt TODO Changelog AUTHORS
40
	dodoc README.txt TODO Changelog AUTHORS
36
	prepgamesdirs
41
	prepgamesdirs
37
}
42
}
43
44
pkg_postinst() {
45
	python_mod_optimize "${GAMES_DATADIR}/${PN}"/code
46
}
47
48
pkg_postrm() {
49
	python_mod_cleanup "${GAMES_DATADIR}/${PN}"/code
50
}

Return to bug 381809