games-arcade/funnyboat: Lots of fixes from Debian, python3 support too
authorPacho Ramos <pacho@gentoo.org>
Wed, 25 Dec 2019 16:47:16 +0000 (17:47 +0100)
committerPacho Ramos <pacho@gentoo.org>
Wed, 25 Dec 2019 16:57:16 +0000 (17:57 +0100)
And use higher resolution icon

Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
games-arcade/funnyboat/Manifest
games-arcade/funnyboat/funnyboat-1.5_p11.ebuild [new file with mode: 0644]

index 6c34560e4a0eaaca06bf74d633f75964b42e36a5..c95cc716393d33a6439dcdf892d0330ec8eb8b33 100644 (file)
@@ -1 +1,2 @@
 DIST funnyboat-1.5-src.zip 3839990 BLAKE2B 30576f2bb20a236d518a5aca1b173d0e6f876a8411eef87d85950059536b3c6f1801b6f5a498d854ce6f390911ecc3a604f3c9bd438692943721b064f9c6d708 SHA512 7d38070e73825602d6f0a82e810fe8937fe919ce12f6e802ee25147ca1a2333c2b90821d92e20b8e071070505099bf9ec562e8c7b8cd8d241c3021b840e707cc
+DIST funnyboat_1.5-11.debian.tar.xz 12572 BLAKE2B 691a547cdc2ad07515268fe3e5c828d557f691746e9a9f136dc2634b9130210330ebd68b89fdc783373e5b660ddfe1caf2b74465e6d473b8e7c66a602b3a3f10 SHA512 9dd117e71715ec0a421061c1b71447ac9413b0d80f0337ab4cecc941324f6b9b2466981ed39a9670fa0c56075e60499eeb619ec0bfd8c7c010469d56d3ed66ec
diff --git a/games-arcade/funnyboat/funnyboat-1.5_p11.ebuild b/games-arcade/funnyboat/funnyboat-1.5_p11.ebuild
new file mode 100644 (file)
index 0000000..3851d78
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit desktop eutils gnome2-utils python-single-r1 xdg
+
+DESCRIPTION="A side scrolling shooter game starring a steamboat on the sea"
+HOMEPAGE="http://funnyboat.sourceforge.net/"
+SRC_URI="
+       mirror://sourceforge/${PN}/${P/_p*}-src.zip
+       mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-${PV/*_p}.debian.tar.xz
+"
+
+LICENSE="GPL-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+       >=dev-python/pygame-1.6.2[${PYTHON_USEDEP}]
+"
+DEPEND="${DEPEND}"
+BDEPEND="app-arch/unzip"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+       # Drop Debian specific patch
+       rm "${WORKDIR}"/debian/patches/use_debian_vera_ttf.patch || die
+       eapply -p1 "${WORKDIR}"/debian/patches/*.patch
+
+       xdg_src_prepare
+}
+
+src_install() {
+       insinto /usr/share/${PN}
+       doins -r data *.py
+       python_optimize "${ED%/}"/usr/share/${PN}
+
+       dodoc *.txt
+
+       make_wrapper ${PN} "${EPYTHON} main.py" /usr/share/${PN}
+
+       newicon data/titanic.png ${PN}.png
+       make_desktop_entry ${PN} "Trip on the Funny Boat"
+}