summaryrefslogtreecommitdiff
blob: 4d060a7fedb2714808e144fbb9f70314ffe234dc (plain)
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
50
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{7,8} )
inherit desktop python-r1 wrapper

DESCRIPTION="Action/arcade recreation of SolarFox"
HOMEPAGE="http://www.pygame.org/shredwheat/solarwolf/"
SRC_URI="
	http://www.pygame.org/shredwheat/solarwolf/${P}.tar.gz
	mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}+dfsg1-1.debian.tar.xz
"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~x86"

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

RDEPEND="
	${PYTHON_DEPS}
	>=dev-python/pygame-1.5.6[${PYTHON_USEDEP}]
	media-libs/sdl-mixer[mod,vorbis]
"
DEPEND="${RDEPEND}"

src_prepare() {
	default

	eapply -p1 "${WORKDIR}"/debian/patches/*.patch

	find . -name .xvpics -print0 | xargs -0 rm -fr || die
	# bug #619948
	gunzip dist/${PN}.6.gz || die
}

src_install() {
	insinto /usr/share/${PN}
	doins -r code data *py

	make_wrapper ${PN} "python3 ./solarwolf.py" /usr/share/${PN}

	newicon data/ship-big.png ${PN}.png
	make_desktop_entry ${PN} SolarWolf

	einstalldocs
	doman dist/${PN}.6
}