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.2 KiB
57 lines
1.2 KiB
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
4 years ago
|
PYTHON_COMPAT=( python3_{6,7,8} )
|
||
6 years ago
|
|
||
|
inherit desktop python-single-r1
|
||
10 years ago
|
|
||
|
DESCRIPTION="Angry, Drunken Dwarves, a falling blocks game similar to Puzzle Fighter"
|
||
7 years ago
|
HOMEPAGE="https://www.sacredchao.net/~piman/angrydd/"
|
||
4 years ago
|
SRC_URI="
|
||
|
https://www.sacredchao.net/~piman/angrydd/${P/_p*}.tar.gz
|
||
|
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-${PV/*_p}.debian.tar.xz
|
||
|
"
|
||
10 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
10 years ago
|
|
||
6 years ago
|
IUSE=""
|
||
10 years ago
|
REQUIRED_USE=${PYTHON_REQUIRED_USE}
|
||
|
|
||
6 years ago
|
RDEPEND="${PYTHON_DEPS}
|
||
4 years ago
|
$(python_gen_cond_dep '
|
||
|
dev-python/pygame[${PYTHON_MULTI_USEDEP}]
|
||
|
')
|
||
6 years ago
|
"
|
||
|
DEPEND="${RDEPEND}"
|
||
4 years ago
|
BDEPEND=""
|
||
|
|
||
|
S="${WORKDIR}/${P/_p*}"
|
||
10 years ago
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
4 years ago
|
eapply -p1 "${WORKDIR}"/debian/patches/*.patch
|
||
10 years ago
|
python_fix_shebang .
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake \
|
||
|
DESTDIR="${D}" \
|
||
6 years ago
|
PREFIX="/usr/share/" \
|
||
10 years ago
|
TO="${PN}" \
|
||
|
install
|
||
6 years ago
|
rm -rf "${ED}/usr/share/games" "${ED}/usr/share/share" || die
|
||
10 years ago
|
|
||
6 years ago
|
python_optimize "${ED}/usr/share/${PN}"
|
||
10 years ago
|
|
||
6 years ago
|
dodir /usr/bin
|
||
5 years ago
|
dosym "../share/${PN}/angrydd.py" "/usr/bin/${PN}"
|
||
10 years ago
|
doman angrydd.6
|
||
|
dodoc README TODO HACKING
|
||
|
|
||
|
doicon angrydd.png
|
||
|
make_desktop_entry angrydd "Angry, Drunken Dwarves"
|
||
|
}
|