summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-27 15:03:08 +0000
committerSam James <sam@gentoo.org>2021-03-27 15:34:44 +0000
commit0009f1ea54cb94fc7240a7b63f6dfa56a23eb6f8 (patch)
tree25d5a97751e7dce65b6d8f122fd46a18f758c4b0 /games-puzzle/numptyphysics
parentapp-admin/authbind: fix build, *FLAGS patch (diff)
downloadgentoo-0009f1ea54cb94fc7240a7b63f6dfa56a23eb6f8.tar.gz
gentoo-0009f1ea54cb94fc7240a7b63f6dfa56a23eb6f8.tar.bz2
gentoo-0009f1ea54cb94fc7240a7b63f6dfa56a23eb6f8.zip
games-puzzle/numptyphysics: add 0.3.5
I couldn't reproduce the source directory issue with 0.3.4 but we're going to have to clean it up anyway due to the include bug (no point patching it - new version is here!) Closes: https://bugs.gentoo.org/728920 Closes: https://bugs.gentoo.org/723260 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-puzzle/numptyphysics')
-rw-r--r--games-puzzle/numptyphysics/Manifest1
-rw-r--r--games-puzzle/numptyphysics/files/numptyphysics-0.3.5-gentoo.patch13
-rw-r--r--games-puzzle/numptyphysics/numptyphysics-0.3.5.ebuild71
3 files changed, 85 insertions, 0 deletions
diff --git a/games-puzzle/numptyphysics/Manifest b/games-puzzle/numptyphysics/Manifest
index b8b327c51d46..8ecdd66972d8 100644
--- a/games-puzzle/numptyphysics/Manifest
+++ b/games-puzzle/numptyphysics/Manifest
@@ -12,6 +12,7 @@ DIST leonet.npz 4885 BLAKE2B 94355b22e995ba91c2c57afa6572d5a669f600d7a21b890a111
DIST melvin.npz 18147 BLAKE2B 285580aa6561e4842aee385f349c77fc8bc05ffb645f623a3fd586ad9737e6248c6a742835c2d17eca4a467f3933b16fc9278315f4d04e98f07b0532762016bf SHA512 391a82b4c42cd2597dd06b299f15cf41302ec593658929d320b66caa69cd73e7cbe3128a18c811017c3b73c435a6f42b763c6e531c8fd193715bc41f85a6b5c2
DIST noodleman.npz 46574 BLAKE2B 408ec52adc0b65965858e54c9b281e418cdfce46fd125d30736719fd181fc0a2543f5bb486868b949db740c4a08d07b3f8abf7f3525daff2348e2eb0d24d7080 SHA512 a088c2c86303985e7d8beec34809f09fcf8e510f7c2af2530620774d1f6579ac1e5ac73989b8e423079c1171a79c92a0cb6e6e01dca950fc519007c91b86ea82
DIST numptyphysics-0.3.4.tar.gz 1646818 BLAKE2B a78b68437bf446036b227dd9e37bcc3b7e3098f9998aa4a6172e68736b5b840db153538c063a20a02b3a1e7e2d5b0c9b3e976f5ffa8b631a44b8544e9c34bb24 SHA512 2934303737309c058f64ba9dc24a292553e065c7604c8f0964365a9ca2ef68356a68515df5d71b2d3a0f59d115ebcc8b052a17f66ca2cfd5ffa80b68a38ca407
+DIST numptyphysics-0.3.5.tar.gz 1647220 BLAKE2B 90a82f05b7a725a88ddf40b7369341319ce999f6a167a1c817e53614a9cc57bbd15d4ea6a251e5d389c4e9516d319ccee046bbb5a78606be4263ffd5223372e6 SHA512 d80eb929fc5af7b4a241169e833858f1436ec86818f6c6d8d9280254a4c5f113ec9123adda319b22410a4ac259732e95ca1af057b542bc3e9d6b784668435fd0
DIST papky.npz 2075 BLAKE2B f638dfae861027a7c89fdfdb305b273cc07aef26ae16e1e2b11bac467d0b13a663d700ca0c6aa1c3630c0b20eb453c27c87b700182e701754f25b0be3b3c16e5 SHA512 69733167ef00f64c19e4f8805e1a881332698e26950f996fc5d41e9e5580f5578b2b9d3f9781bacc9293519e139b7d531891b91f36c45031ac06da6e8e78fbfa
DIST perli.npz 15452 BLAKE2B 9c57af22a31eead27a3e48605c362a4018a3bc9e6227ac1e9e813a9ca2f8c3e2f771d6bbfc7fe1f7415989a14852105802ea054d12ddb5c6ce2697b47dadec03 SHA512 cee513ed0e728334f0e60571e38dc68e476681bad8a22497ac01f790c6975bbffba727ede054bfc6f594f289c9bf6346c3e9b3537145707c3ed6f4d6c21136c8
DIST qole.npz 6533 BLAKE2B 35b24ea2a5462c079099ed511abbca8abf6e7362646574726027187166cac817509ff6c1bce3ef0e57d5e086adf9585edf9e00421a0a4954e755a8b056f718da SHA512 dc624c5ffdcb0f9f18c20db7a08d7e9d9d4fa5314e3fabfa730e21bb0a27d4b415432ec66eab64d8252c7fe4793a2cff231e856ca06d85c61558a867bf2fb03b
diff --git a/games-puzzle/numptyphysics/files/numptyphysics-0.3.5-gentoo.patch b/games-puzzle/numptyphysics/files/numptyphysics-0.3.5-gentoo.patch
new file mode 100644
index 000000000000..9a739ed5227c
--- /dev/null
+++ b/games-puzzle/numptyphysics/files/numptyphysics-0.3.5-gentoo.patch
@@ -0,0 +1,13 @@
+diff --git a/makefile b/makefile
+index 8125a48..0ee4942 100644
+--- a/makefile
++++ b/makefile
+@@ -37,7 +37,7 @@ $(OBJECTS): $(GENERATED_HEADERS)
+
+ $(TARGET): $(OBJECTS) $(LOCAL_LIBS)
+ $(SILENTMSG) "\tLD\t$@\n"
+- $(SILENTCMD) $(CXX) -o $@ $^ $(LIBS)
++ $(SILENTCMD) $(CXX) -o $@ $^ $(LDFLAGS) $(LIBS)
+
+ clean: $(ADDITIONAL_CLEAN_TARGETS)
+ $(SILENTMSG) "\tCLEAN\n"
diff --git a/games-puzzle/numptyphysics/numptyphysics-0.3.5.ebuild b/games-puzzle/numptyphysics/numptyphysics-0.3.5.ebuild
new file mode 100644
index 000000000000..30d75e17bd4a
--- /dev/null
+++ b/games-puzzle/numptyphysics/numptyphysics-0.3.5.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic gnome2-utils toolchain-funcs
+
+DESCRIPTION="Crayon Physics-like drawing puzzle game using the same excellent Box2D engine"
+HOMEPAGE="https://thp.io/2015/numptyphysics/"
+
+# This is only the SRC_URI for the user levels. The code is in git repo.
+SRC_URI="user-levels? (
+ https://github.com/thp/numptyphysics/archive/${PV}.tar.gz -> ${P}.tar.gz
+ http://numptyphysics.garage.maemo.org/levels/butelo/butelo.npz
+ http://numptyphysics.garage.maemo.org/levels/catalyst/catalyst.npz
+ http://numptyphysics.garage.maemo.org/levels/christeck/christeck.npz
+ http://numptyphysics.garage.maemo.org/levels/dneary/dneary.npz
+ http://numptyphysics.garage.maemo.org/levels/gnuton/gnuton.npz
+ http://numptyphysics.garage.maemo.org/levels/gudger/gudger.npz
+ http://numptyphysics.garage.maemo.org/levels/guile/guile.npz
+ http://numptyphysics.garage.maemo.org/levels/hurd/hurd.npz
+ http://numptyphysics.garage.maemo.org/levels/ioan/ioan.npz
+ http://numptyphysics.garage.maemo.org/levels/jhoff80/jhoff80.npz
+ http://numptyphysics.garage.maemo.org/levels/leonet/leonet.npz
+ http://numptyphysics.garage.maemo.org/levels/melvin/melvin.npz
+ http://numptyphysics.garage.maemo.org/levels/noodleman/noodleman.npz
+ http://numptyphysics.garage.maemo.org/levels/papky/papky.npz
+ http://numptyphysics.garage.maemo.org/levels/perli/perli.npz
+ http://numptyphysics.garage.maemo.org/levels/qole/qole.npz
+ http://numptyphysics.garage.maemo.org/levels/siminz/siminz.npz
+ http://numptyphysics.garage.maemo.org/levels/szymanowski/szymanowski.npz
+ http://numptyphysics.garage.maemo.org/levels/therealbubba/therealbubba.npz
+ http://numptyphysics.garage.maemo.org/levels/werre/werre.npz
+ http://numptyphysics.garage.maemo.org/levels/zeez/zeez.npz
+)"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+user-levels"
+
+RDEPEND="
+ dev-libs/glib:2
+ media-libs/libsdl2[opengl,video]
+ media-libs/sdl2-image[png]
+ media-libs/sdl2-ttf
+ virtual/opengl
+"
+DEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.3.5-gentoo.patch
+)
+
+src_compile() {
+ tc-export CC CXX
+ emake
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}