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.
57 lines
1.1 KiB
57 lines
1.1 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
|
|
||
7 years ago
|
PYTHON_COMPAT=( python2_7 )
|
||
|
|
||
5 years ago
|
inherit desktop python-single-r1 xdg-utils
|
||
7 years ago
|
|
||
|
DESCRIPTION="A single-player game with a science-fiction theme"
|
||
5 years ago
|
HOMEPAGE="https://www.jwhitham.org/20kly/"
|
||
|
SRC_URI="https://www.jwhitham.org/20kly/${P}.tar.bz2"
|
||
7 years ago
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
5 years ago
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||
7 years ago
|
|
||
|
RDEPEND="${PYTHON_DEPS}
|
||
|
dev-python/pygame[${PYTHON_USEDEP}]
|
||
|
"
|
||
5 years ago
|
DEPEND="${RDEPEND}"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}/${P}"-gentoo.patch
|
||
|
)
|
||
7 years ago
|
|
||
|
src_prepare() {
|
||
|
default
|
||
5 years ago
|
|
||
7 years ago
|
sed -i \
|
||
|
-e "s:@GENTOO_LIBDIR@:/usr/$(get_libdir)/${PN}:" \
|
||
|
-e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
|
||
|
${PN} || die
|
||
5 years ago
|
|
||
7 years ago
|
python_fix_shebang .
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin ${PN}
|
||
|
|
||
|
insinto /usr/"$(get_libdir)/${PN}"
|
||
|
doins code/*.py
|
||
|
|
||
|
einstalldocs
|
||
|
|
||
|
insinto "/usr/share/${PN}"
|
||
|
doins -r audio data manual
|
||
|
|
||
|
python_optimize "${ED}/usr/$(get_libdir)/${PN}"
|
||
|
|
||
|
newicon data/32.png ${PN}.png
|
||
|
make_desktop_entry ${PN} "Light Years Into Space"
|
||
|
}
|
||
5 years ago
|
|
||
|
pkg_postinst() { xdg_icon_cache_update; }
|
||
|
pkg_postrm() { xdg_icon_cache_update; }
|