forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qct-0.7-r1.ebuild
49 lines (37 loc) · 1.07 KB
/
qct-0.7-r1.ebuild
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
45
46
47
48
49
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit eutils python-single-r1 games
DESCRIPTION="Quiet Console Town puts you in the place of the mayor of a budding new console RPG city"
HOMEPAGE="https://packages.gentoo.org/package/games-simulation/qct"
SRC_URI="http://www.sourcefiles.org/Games/Role_Play/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
DEPEND=">=dev-python/pygame-1.5.5[${PYTHON_USEDEP}]"
RDEPEND=${RDEPEND}
REQUIRED_USE=${PYTHON_REQUIRED_USE}
S=${WORKDIR}/${PN}
src_prepare() {
epatch "${FILESDIR}"/${P}-constant.patch
python_fix_shebang .
}
src_install() {
# Ug. Someone fix this to install in $(games_get_libdir)/${PN} instead
local destdir="${GAMES_DATADIR}/${PN}"
insinto "${destdir}"
exeinto "${destdir}"
dodoc README
doins *.py *.png
doexe qct.py
python_optimize "${D}${GAMES_DATADIR}/${PN}"
games_make_wrapper qct "./qct.py" "${destdir}"
prepgamesdirs
}
pkg_setup() {
python-single-r1_pkg_setup
games_pkg_setup
}