summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2020-08-17 19:18:05 +0200
committerPacho Ramos <pacho@gentoo.org>2020-08-17 19:18:05 +0200
commit7ae3f36f6311c433ca73eaabd6bc7eed3f188c0f (patch)
tree6089e622bb6d2e40dfc97528818d5bf00cbfe2ed /games-puzzle/pingus
parentdev-lang/python: stable 3.8.5 for hppa, bug #736854 (diff)
downloadgentoo-7ae3f36f6311c433ca73eaabd6bc7eed3f188c0f.tar.gz
gentoo-7ae3f36f6311c433ca73eaabd6bc7eed3f188c0f.tar.bz2
gentoo-7ae3f36f6311c433ca73eaabd6bc7eed3f188c0f.zip
games-puzzle/pingus: Use python3 scons
Closes: https://bugs.gentoo.org/735538 Package-Manager: Portage-3.0.2, Repoman-2.3.23 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'games-puzzle/pingus')
-rw-r--r--games-puzzle/pingus/files/pingus-0.7.6-python3.patch19
-rw-r--r--games-puzzle/pingus/pingus-0.7.6-r3.ebuild60
2 files changed, 79 insertions, 0 deletions
diff --git a/games-puzzle/pingus/files/pingus-0.7.6-python3.patch b/games-puzzle/pingus/files/pingus-0.7.6-python3.patch
new file mode 100644
index 000000000000..7df3bc9e983d
--- /dev/null
+++ b/games-puzzle/pingus/files/pingus-0.7.6-python3.patch
@@ -0,0 +1,19 @@
+--- a/SConscript.bak 2019-08-01 12:45:16.937878393 -0500
++++ b/SConscript 2019-08-01 12:46:13.648803035 -0500
+@@ -126,12 +126,12 @@
+ def configure_end(self):
+ self.env = self.conf.Finish()
+
+- print "Reports:"
+- print self.reports
++ print("Reports:")
++ print(self.reports)
+
+ if not self.fatal_error == "":
+- print "Fatal Errors:"
+- print self.fatal_error
++ print("Fatal Errors:")
++ print(self.fatal_error)
+ Exit(1)
+
+ def configure_gxx(self):
diff --git a/games-puzzle/pingus/pingus-0.7.6-r3.ebuild b/games-puzzle/pingus/pingus-0.7.6-r3.ebuild
new file mode 100644
index 000000000000..466c772c3579
--- /dev/null
+++ b/games-puzzle/pingus/pingus-0.7.6-r3.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6..9} )
+
+inherit desktop flag-o-matic python-any-r1 scons-utils toolchain-funcs xdg
+
+DESCRIPTION="Free Lemmings clone"
+HOMEPAGE="https://pingus.gitlab.io/"
+SRC_URI="https://pingus.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="opengl music"
+
+RDEPEND="
+ media-libs/libsdl[joystick,opengl?,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer
+ music? ( media-libs/sdl-mixer[mod] )
+ opengl? ( virtual/opengl )
+ media-libs/libpng:0=
+ dev-libs/boost:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-noopengl.patch
+ "${FILESDIR}"/${P}-gcc47.patch
+ "${FILESDIR}"/${P}-echo-e.patch
+ "${FILESDIR}"/${P}-gcc7.patch
+ "${FILESDIR}"/${P}-boost_signals2.patch
+ "${FILESDIR}"/${P}-python3.patch
+)
+
+src_prepare() {
+ xdg_src_prepare
+ strip-flags
+}
+
+src_compile() {
+ escons \
+ CXX="$(tc-getCXX)" \
+ CCFLAGS="${CXXFLAGS}" \
+ LINKFLAGS="${LDFLAGS}" \
+ with_opengl=$(usex opengl 1 0)
+}
+
+src_install() {
+ emake install-exec install-data \
+ DESTDIR="${D}" \
+ PREFIX="/usr"
+ doman doc/man/pingus.6
+ doicon data/images/icons/pingus.svg
+ make_desktop_entry ${PN} Pingus
+ einstalldocs
+}