You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-simulation/qct/qct-0.7-r1.ebuild

50 lines
1.2 KiB

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-simulation/qct/qct-0.7-r1.ebuild,v 1.1 2015/01/01 01:49:51 mr_bones_ Exp $
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="http://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
}