diff options
Diffstat (limited to 'games-arcade/solarwolf/solarwolf-1.5_p3.ebuild')
-rw-r--r-- | games-arcade/solarwolf/solarwolf-1.5_p3.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/games-arcade/solarwolf/solarwolf-1.5_p3.ebuild b/games-arcade/solarwolf/solarwolf-1.5_p3.ebuild new file mode 100644 index 000000000000..93c392620e1a --- /dev/null +++ b/games-arcade/solarwolf/solarwolf-1.5_p3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..9} ) +inherit desktop python-single-r1 + +MY_P="${PN}-$(ver_cut 1-2)" + +DESCRIPTION="Action/arcade recreation of SolarFox" +HOMEPAGE="https://www.pygame.org/shredwheat/solarwolf/index.shtml" +SRC_URI=" + http://www.pygame.org/shredwheat/solarwolf/${MY_P}.tar.gz + mirror://debian/pool/main/s/solarwolf/${MY_P/-/_}+dfsg1-${PV/*_p}.debian.tar.xz" +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + $(python_gen_cond_dep 'dev-python/pygame[${PYTHON_USEDEP}]') + media-libs/sdl2-image[gif,png] + media-libs/sdl2-mixer[mod,vorbis]" +BDEPEND="${PYTHON_DEPS}" + +PATCHES=( + "${WORKDIR}"/debian/patches +) + +src_prepare() { + default + + sed -e "/CODEDIR = \"/s|= .*|= \"${EPREFIX}/usr/share/${PN}/code\"|" \ + -e "/DATADIR = \"/s|= .*|= \"${EPREFIX}/usr/share/${PN}\"|" \ + -i ${PN}.py || die + python_fix_shebang ${PN}.py + + # default to windowed given it forces resolution and menus can be invisible + sed -i '/^display = 1/s/1/0/' code/game.py || die + + rm -r data/.xvpics || die + gzip -d dist/${PN}.6.gz || die +} + +src_install() { + newbin ${PN}.py ${PN} + doman dist/${PN}.6 + + insinto /usr/share/${PN} + doins -r code data + + dodoc readme.txt + + newicon data/ship-big.png ${PN}.png + make_desktop_entry ${PN} SolarWolf +} |