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

(-)file_not_specified_in_diff (-4 / +21 lines)
Line  Link Here
0
-- singularity-0.30c.ebuild.orig
0
++ singularity-0.30c.ebuild
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
	games_pkg_setup
28
}
29
24
src_prepare() {
30
src_prepare() {
25
	rm -f code/{,*}/*.pyc data/*.html # Remove unecessary files
31
	rm -f code/{,*}/*.pyc data/*.html # Remove unecessary files
26
}
32
}
Lines 31-37 Link Here
31
	if use music ; then
37
	if use music ; then
32
		doins -r ../${MUSIC}/music || die "doins failed"
38
		doins -r ../${MUSIC}/music || die "doins failed"
33
	fi
39
	fi
34
	games_make_wrapper ${PN} "python ${PN}.py" "${GAMES_DATADIR}/${PN}"
40
	games_make_wrapper ${PN} "python2 ${PN}.py" "${GAMES_DATADIR}/${PN}"
35
	dodoc README.txt TODO Changelog AUTHORS
41
	dodoc README.txt TODO Changelog AUTHORS
36
	prepgamesdirs
42
	prepgamesdirs
37
}
43
}
44
45
pkg_postinst() {
46
	python_mod_optimize "${GAMES_DATADIR}/${PN}"/code
47
	gamesowners -R "${GAMES_DATADIR}/${PN}"/code
48
	gamesperms -R "${GAMES_DATADIR}/${PN}"/code
49
	games_pkg_postinst
50
}
51
52
pkg_postrm() {
53
	python_mod_cleanup "${GAMES_DATADIR}/${PN}"/code
54
}

Return to bug 381809