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.
48 lines
1.1 KiB
48 lines
1.1 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
9 years ago
|
PYTHON_COMPAT=( python2_7 )
|
||
11 years ago
|
|
||
6 years ago
|
inherit desktop python-r1
|
||
|
|
||
|
DESCRIPTION="A little puzzle game, similar to the famous Bejeweled or Zookeeper"
|
||
11 years ago
|
HOMEPAGE="http://sam.zoy.org/projects/monsterz/"
|
||
|
SRC_URI="http://sam.zoy.org/projects/monsterz/${P}.tar.gz"
|
||
|
|
||
11 years ago
|
LICENSE="GPL-1+ LGPL-2+ WTFPL-2"
|
||
11 years ago
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~hppa ~x86"
|
||
6 years ago
|
|
||
11 years ago
|
IUSE=""
|
||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||
|
|
||
|
RDEPEND="${PYTHON_DEPS}
|
||
|
dev-python/pygame[${PYTHON_USEDEP}]
|
||
|
media-libs/sdl-image[png]
|
||
6 years ago
|
media-libs/sdl-mixer[mod]
|
||
|
"
|
||
11 years ago
|
DEPEND="${RDEPEND}"
|
||
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
|
eapply \
|
||
11 years ago
|
"${FILESDIR}"/${P}-gentoo.patch \
|
||
|
"${FILESDIR}"/${P}-64bit.patch \
|
||
|
"${FILESDIR}"/${P}-blit.patch
|
||
|
sed -i \
|
||
6 years ago
|
-e "s:GENTOO_DATADIR:/usr/share/${PN}:" \
|
||
11 years ago
|
monsterz.py || die "sed failed"
|
||
|
rm Makefile || die
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
6 years ago
|
insinto /usr/share/${PN}
|
||
11 years ago
|
doins -r graphics sound
|
||
6 years ago
|
newbin monsterz.py ${PN}
|
||
11 years ago
|
newicon graphics/icon.png ${PN}.png
|
||
|
make_desktop_entry ${PN} Monsterz
|
||
6 years ago
|
einstalldocs
|
||
|
python_replicate_script "${ED%/}"/usr/bin/monsterz
|
||
11 years ago
|
}
|