summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2015-11-26 05:07:07 -0500
committerMichael Sterrett <mr_bones_@gentoo.org>2015-11-26 05:08:11 -0500
commit86294ee659e859f0cbb32c87e0b2adfa293ff3a2 (patch)
tree1a5357812e57a598bbd6dbcfc958e6f3da94e4e2 /games-puzzle/numptyphysics
parentMerge remote-tracking branch 'github/pr/395'. (diff)
downloadgentoo-86294ee659e859f0cbb32c87e0b2adfa293ff3a2.tar.gz
gentoo-86294ee659e859f0cbb32c87e0b2adfa293ff3a2.tar.bz2
gentoo-86294ee659e859f0cbb32c87e0b2adfa293ff3a2.zip
initial commit with ebuild work from Samuel BAUER (bug #259181)
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'games-puzzle/numptyphysics')
-rw-r--r--games-puzzle/numptyphysics/Manifest21
-rw-r--r--games-puzzle/numptyphysics/files/numptyphysics-9999-gentoo.patch79
-rw-r--r--games-puzzle/numptyphysics/metadata.xml8
-rw-r--r--games-puzzle/numptyphysics/numptyphysics-9999.ebuild89
4 files changed, 197 insertions, 0 deletions
diff --git a/games-puzzle/numptyphysics/Manifest b/games-puzzle/numptyphysics/Manifest
new file mode 100644
index 00000000000..16b041e573a
--- /dev/null
+++ b/games-puzzle/numptyphysics/Manifest
@@ -0,0 +1,21 @@
+DIST butelo.npz 7209 SHA256 3c1984f135ed5fbf101ee05bbbbcf46f3aaeddf90b710192735aebd04ec2def0 SHA512 a1f6ce15c0a921969a0e6c96d2e354aa666e760275a86d45b85db833731273e16ac9cdb4975beca71c1abcfe5dd64a0181f74bbc3e3aba1c2bb541c3bbe80090 WHIRLPOOL a849dfbd5e0e983b64bd0a33d8b1526b202a4d376f7388e5767d787a477ae2d77760d8446493b3cb92ebc04ad6ca974b8a813e6a05f0cbfac98fd4f7d2080ce5
+DIST catalyst.npz 8778 SHA256 2278d331c354e9db0f89a0f3df1c6ac190a0f3b21f9ea12310d9e715fd5538f5 SHA512 ad2c02721e1b2ded3621a5a5217f78ed1022a86472f4de030c9b3d258f0b7b580e953fc2d017519477cea4df1b482e61fca565a3d98d511e894805e6683e6830 WHIRLPOOL 6abf8ecd88fcfa79f87268cbe9af85f4e9a8c227b8e59ab43b5438330d961c7e00546383957c38cc9143ef1c45f2880e6dda8615fa26a832268c1c79fe1af20f
+DIST christeck.npz 4868 SHA256 d265f1f6a0dfa1c8a6b4a20f919f0f4c3f57ccb25f15f895ba7a0932644486e3 SHA512 562ed1fe6caa026dcc897aa914c5cad648aa191127714c888f5d1fbf82bbac15477928e49e02a5ab8940a84a085afb6e282e04ac1478a0ace5449541137f89fc WHIRLPOOL c250266e6aaf3e9b52ed81ca8899af219d594451a7bc965ba8a1866b13f42aae1cadbb38a0ee49510739a57960673ce38456df5f99ec432a283d55660bfa9f30
+DIST dneary.npz 5041 SHA256 4966d1c5d453dee3a6cfd6135acb13d6e1e6cd572240224c38767ff510ad5276 SHA512 94bf7238bda8c9ba4133bd4bb8f6c978bb06f42432a6854ba570466d3a4b780a737a2138702072fbb9d6b913307a52734b3747a255d3f611df8e8753751d1c55 WHIRLPOOL c5237d9ea0793f6c25350823121aac6d87711a63dc0891388f0f7361f07fabdccafee3dc5b1c6041d26788ff462a4e5d51b2605ab69ca6f6efedc5f86c509abe
+DIST gnuton.npz 3734 SHA256 271df127e20358f8ca02785405ea5fc5a9d3dc9cf1fa4dd2a014795cd8c36634 SHA512 f3c910ac426b8044400ff882c0f8e193a19d35d1de2f6a8b5729acb9cc2fe383b116f79854897d3162c9ce223df92c76981a676ffc83268716fb20d8fecca13c WHIRLPOOL 2e95e234a46448b6cc5527e7eec1beeb0d3d3bb2c0cb92806bf3f2cca6c1c990c6a8e8d86793ea46394c199f76d02edf5374ed6883be19b366f9ca04702ae5e9
+DIST gudger.npz 7101 SHA256 f2417fb30bbbd0cf397cd21eabbc775492d7320a82056ab1abac9fb30f4537a8 SHA512 507536e83ef99a135d187b54369e12ea585a0aaa354ee4e8cf50540ffcd9b12798f11807940ee487d759617379794d447ab06bc185cb1021d06cca51908f35aa WHIRLPOOL 24882ecb0176c1c210c5a2bc6d998bc1b9b456fcf617336a5104df47f9b943bdc1a3c9b180faea4df0ef0f320d4314ff0a69482afbb4ad44337005464133f901
+DIST guile.npz 27182 SHA256 fdb0c4210909fa24b8c264638ca9620a4111a7a20b8106413c1a4ecd22b068eb SHA512 62a98d028335ce0a2a78cec86ef0e9164d10d057f0d99e5c27352f604ca06c6f0634617517ffb5d4c2609859f4316367ce805669d70002058168d332dee2f81e WHIRLPOOL 0ed910dac91d3a014f5364ff7701155fbfe831f809edb3458037c08ef2aacbf5785e22d7ca0ca25a8aa192b566fd74a155def33fca693e6789794a428423979d
+DIST hurd.npz 7819 SHA256 0fa386f6b1b86bdc34cf7a09e4bfc09866338cd8e472b7b78d2f61721eebba85 SHA512 5a7ce05af8c0cb8b63296a19827286bee46e41c876817cd4a190f8294be8c3c53fdfab63908c9d64b93c9e104d9b36f812fc3c3e05e47dcfdb7a47f9c0a15dab WHIRLPOOL 354b3eeddbd866c7fa2828d650beb7869c74028aac94f64c6a05e27f7f0e2bd6d34aadd23f7c3dda22c0ee359dd8159137805f08110a1b89d197f9660a03bfe8
+DIST ioan.npz 8672 SHA256 96a45a8f704d79edd80cde152a7548e304ffc4500c12264b70855a50b7852dc5 SHA512 aeb707ffa3a7fc64d1a401a9f1f2c59b5d031c4443e6b679cf534be0824493f54dc20e1ceb127352e7847ac403dc1971470b52369b0bb0933f0c8ade299961d4 WHIRLPOOL 93452fc4a17d8ab005cd8b14a8b84c861e7786f0f811763bc43e98408641285827523ca4c48174c7482b121f7c976d78919c08c1c670467fd078ae2d1f91de66
+DIST jhoff80.npz 4612 SHA256 357c638f227628ca778c701ffc5c7e15d81842d7c3e8dbaac34ba2957826a15f SHA512 4d060a35f18204509726db2f1cdfd8a69444bf10e784fcc32ce54a76aa541628903e5ce70d65a64b3ea079095cdc979475ff553e428bb321640d7a87e60f6384 WHIRLPOOL 3fc99ccf86afed4ea2297b700efb7139aa013cfdfd9b34365ff2c84475189e1bd8046eb016542b896c994829096952018048fc938be396301338f85d4eb8910d
+DIST leonet.npz 4885 SHA256 f1c51f0b75288c08188492cfc16fa7605cfa0d54ff56a6ddd261a2013eb81499 SHA512 789cdde6313b7cc9e8616c7969d86ed44866baa9ae88befa605d7066ca8134f167aac9490afa3918305929dbbc0acaf46708e02be4353f98ebeb3dbe3b0eefa1 WHIRLPOOL c21b464dda92167c5b3e1e09f8c254e1b2bb1e7dbc38d867d0dc48ada244b574f64ab28091b7032debe3cf19bb5d0bd248056cffce3c98b8c8017410316eb2db
+DIST melvin.npz 18147 SHA256 8d5310f0f434511c10f4fe89d513040ebc7242d3573e6f2629aa7f6c32238a18 SHA512 391a82b4c42cd2597dd06b299f15cf41302ec593658929d320b66caa69cd73e7cbe3128a18c811017c3b73c435a6f42b763c6e531c8fd193715bc41f85a6b5c2 WHIRLPOOL a8f547bed4c8a91ee3885ee692220359a2cbc5561920fc3409bdb1d6b6e2a0792d1477d03642c4f94a4c2ee7f142366df016229f90bcab90d4259a40fc494ce6
+DIST noodleman.npz 46574 SHA256 f392f24deb190eba36b1fcfe1fcc7801c60b9b4eee9bcd8046b3a04a17b35741 SHA512 a088c2c86303985e7d8beec34809f09fcf8e510f7c2af2530620774d1f6579ac1e5ac73989b8e423079c1171a79c92a0cb6e6e01dca950fc519007c91b86ea82 WHIRLPOOL b9581a8d1cc5969c0946d9985b5111f0e987354a580fd84c456621b44c56cbbd9a592cf81ac17c5b7deaf83da67ddd0a319f892e1b75699db43c5db009d47a8b
+DIST papky.npz 2075 SHA256 b12a342c652f16c33852d1429eae2b0cc8020bac5e36f37fa48ba930023e163b SHA512 69733167ef00f64c19e4f8805e1a881332698e26950f996fc5d41e9e5580f5578b2b9d3f9781bacc9293519e139b7d531891b91f36c45031ac06da6e8e78fbfa WHIRLPOOL b22a55208d4dd9dcd1809662aca04fb798c0ef0c921940c5fcd1318d2b4aea5d827c3fcd612e23a352e88cc270acd7c52ea5007f0ea0750602ca4739c74d8e25
+DIST perli.npz 15452 SHA256 23943313d53d16e7eda2000646f4c74ebe66ee254334dde97f8e5a886b262a56 SHA512 cee513ed0e728334f0e60571e38dc68e476681bad8a22497ac01f790c6975bbffba727ede054bfc6f594f289c9bf6346c3e9b3537145707c3ed6f4d6c21136c8 WHIRLPOOL 80be04c33917502dd94d2582a6d1be35b1b9f177a5f5e71792cb02dbcaed1ed5ffbc108f184c008484e673a51d3f7d417b834e0bf4a424721165bd161ce5528e
+DIST qole.npz 6533 SHA256 0b76d6790e787948cb70edd7d7aec6e791e97befee15925a61bfd23e7adae71f SHA512 dc624c5ffdcb0f9f18c20db7a08d7e9d9d4fa5314e3fabfa730e21bb0a27d4b415432ec66eab64d8252c7fe4793a2cff231e856ca06d85c61558a867bf2fb03b WHIRLPOOL 8d1a48f0c107e4aad3dc58d0e53cc631ed6bf22538175f7db70b16ffbe4d0ed9e7f80aa61727d77dabb89e0b20d31d08d5071112760f897500075eb107a12507
+DIST siminz.npz 187396 SHA256 e7ea601648b944c8540e9dfd7fa79cfc5b375c15e283555319653a48106a8904 SHA512 cedf3d90bc93adb2dac45ea69a8f87965002810527ce35122c5b1bcf1bf07fa1de9230f33bb84e542eeb0b4235216eb633d8a79cef1db34e24f8fff25f846758 WHIRLPOOL 9cd1d86dd08b1a8f2ef1b1f4c4c8b52dfcd251612ca9efbfc7678c2ef99994ad4e3f822052e3a6e5b3291d8180791b06dde982da2e010170d4457c956923b5c4
+DIST szymanowski.npz 2577 SHA256 2ab70473acc4b66a5946f6462ef9efc80fea5d8312edc432d32643100c5dfa57 SHA512 b87be9d66cb3025a6168855fa473377609268c7d5fd6dbe53df7fc6156bc58dbb2d35c7e7a5d6caf88bbd92eb08ae2ac5b5d06dce6da9858e1ff1fa3553d3228 WHIRLPOOL 11f6a732d2dec25887482239e07faafb4a06019b9ff36d8e4ecb961eec389f2509976b1cae561379d5828eab272ac65242e38cadc2228c00a766187827262abe
+DIST therealbubba.npz 6684 SHA256 fa23a79cbf373e88585c80dbea3bada09d6c0044278c53f8fc1bcb98738e91db SHA512 c71a84345f0c6e0cde87e76b3084d89b2222d33b512458efd98d91c099b54e817b8421ea70001de6e5556c0e28be1c9fc1c19ad1411dd1b2bf194f987cdbdec6 WHIRLPOOL 6e047cc423bd06b549558354e1de1b6c2a61c1b6d281091569cb5e89a46957b9b5f0c72643a5d18d4a9dee0e37bd24e1b22a2704bd55546a6bbe6b4bd5c4766d
+DIST werre.npz 7739 SHA256 8df9dbd75bdb1efd806dfac29e06ba18e94833eb6d82919d5c1fc0178c054bda SHA512 1caac7964cc51c6300648fa6be21f7ac3c0d585288ea2e18e725f5575a732b461b77bfd0ddf3118f5d4c922f16a30466e168bb38e81498291214597fd4442bcd WHIRLPOOL c5208f787ba5d59227c45a7bfaef4d7dd4d3efc392c8b315f7ffe563a24279cbc327eac27f36efea0362836939602825409508b5fcb68cceb86a4412053cdec7
+DIST zeez.npz 8633 SHA256 50dcdb465fa8c29c0e5ac93748212315220cbe25f03f10527ebcf839fef636d0 SHA512 8f1945d79dc43e0bc6e2b814640d1587fc38bf8ca19f6b949821d3095eb22e9837a3f82433e452ce851b97e29d90440045866dfc6a28f9f5b31ffcf35f467e41 WHIRLPOOL 4475e52033c2d6ef951ebdaf7ce7cd68223c2786a1e845e63d3f99925b1ac3ad5026160cc5b199ed647cd0ced4d5ec8a7888bf03396f8b724e36cb1f137c3b6e
diff --git a/games-puzzle/numptyphysics/files/numptyphysics-9999-gentoo.patch b/games-puzzle/numptyphysics/files/numptyphysics-9999-gentoo.patch
new file mode 100644
index 00000000000..25b4475d78b
--- /dev/null
+++ b/games-puzzle/numptyphysics/files/numptyphysics-9999-gentoo.patch
@@ -0,0 +1,79 @@
+diff -ru numptyphysics-9999.orig/external/Box2D/Source/Makefile numptyphysics-9999/external/Box2D/Source/Makefile
+--- numptyphysics-9999.orig/external/Box2D/Source/Makefile 2015-11-25 22:27:36.155865064 -0500
++++ numptyphysics-9999/external/Box2D/Source/Makefile 2015-11-25 22:28:12.924578877 -0500
+@@ -6,8 +6,6 @@
+ TARGETS += Gen/nds-float/lib/libbox2d.a Gen/nds-fixed/lib/libbox2d.a
+ endif
+
+-CXXFLAGS= -g -O2
+-
+ SOURCES = \
+ ./Dynamics/b2Body.cpp \
+ ./Dynamics/b2Island.cpp \
+diff -ru numptyphysics-9999.orig/external/glaserl/makefile numptyphysics-9999/external/glaserl/makefile
+--- numptyphysics-9999.orig/external/glaserl/makefile 2015-11-25 22:27:36.156865029 -0500
++++ numptyphysics-9999/external/glaserl/makefile 2015-11-25 22:28:12.924578877 -0500
+@@ -1,7 +1,5 @@
+ TARGET := libglaserl.a
+
+-CFLAGS += -g -O2
+-
+ SOURCES := $(wildcard *.c)
+ OBJECTS := $(SOURCES:.c=.o)
+
+diff -ru numptyphysics-9999.orig/makefile numptyphysics-9999/makefile
+--- numptyphysics-9999.orig/makefile 2015-11-25 22:27:36.167864644 -0500
++++ numptyphysics-9999/makefile 2015-11-25 22:28:12.925578842 -0500
+@@ -1,7 +1,6 @@
+ APP := numptyphysics
+
+ SOURCES := $(wildcard src/*.cpp)
+-CXXFLAGS += -std=c++11 -Isrc -Wall -Wno-sign-compare
+
+ all: app
+
+@@ -13,7 +12,7 @@
+
+ $(TARGET): $(OBJECTS) $(LOCAL_LIBS)
+ $(SILENTMSG) "\tLD\t$@"
+- $(SILENTCMD) $(CXX) -o $@ $^ $(LIBS)
++ $(SILENTCMD) $(CXX) -o $@ $^ $(LDFLAGS) $(LIBS)
+
+ clean: $(ADDITIONAL_CLEAN_TARGETS)
+ $(SILENTMSG) "\tCLEAN"
+diff -ru numptyphysics-9999.orig/mk/silent.mk numptyphysics-9999/mk/silent.mk
+--- numptyphysics-9999.orig/mk/silent.mk 2015-11-25 22:27:36.168864609 -0500
++++ numptyphysics-9999/mk/silent.mk 2015-11-25 22:28:12.925578842 -0500
+@@ -2,6 +2,6 @@
+ SILENTMSG := @true
+ SILENTCMD :=
+ else
+- SILENTMSG := @echo
++ SILENTMSG := @echo -e
+ SILENTCMD := @
+ endif
+diff -ru numptyphysics-9999.orig/platform/gl/gl.mk numptyphysics-9999/platform/gl/gl.mk
+--- numptyphysics-9999.orig/platform/gl/gl.mk 2015-11-25 22:27:36.172864469 -0500
++++ numptyphysics-9999/platform/gl/gl.mk 2015-11-25 22:28:12.925578842 -0500
+@@ -3,9 +3,9 @@
+ LIBS += -framework OpenGL
+ else
+ ifneq ($(wildcard $(patsubst %,%/libGL.so.1,/usr/lib /usr/lib64 /usr/lib/*)),)
+-add_pkgconfig(gl)
++$(eval $(call add_pkgconfig,gl))
+ else
+-add_pkgconfig(glesv2)
++$(eval $(call add_pkgconfig,glesv2))
+ CFLAGS += -DUSE_OPENGL_ES
+ CXXFLAGS += -DUSE_OPENGL_ES
+ endif
+diff -ru numptyphysics-9999.orig/src/Os.cpp numptyphysics-9999/src/Os.cpp
+--- numptyphysics-9999.orig/src/Os.cpp 2015-11-25 22:27:36.183864084 -0500
++++ numptyphysics-9999/src/Os.cpp 2015-11-25 22:29:17.177331313 -0500
+@@ -262,5 +262,5 @@
+ }
+
+ // System-wide installation
+- return thp::format("%s/../share/%s/data", g_appDir.c_str(), appName().c_str());
++ return "@GENTOO_DATADIR@";
+ }
diff --git a/games-puzzle/numptyphysics/metadata.xml b/games-puzzle/numptyphysics/metadata.xml
new file mode 100644
index 00000000000..f94d31263f6
--- /dev/null
+++ b/games-puzzle/numptyphysics/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <use>
+ <flag name="user-levels">Install some fun user-created levels</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-puzzle/numptyphysics/numptyphysics-9999.ebuild b/games-puzzle/numptyphysics/numptyphysics-9999.ebuild
new file mode 100644
index 00000000000..e9fa663d912
--- /dev/null
+++ b/games-puzzle/numptyphysics/numptyphysics-9999.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils gnome2-utils flag-o-matic git-r3 games
+
+DESCRIPTION="A drawing puzzle game in the spirit of Crayon Physics using the same excellent Box2D engine"
+HOMEPAGE="http://thp.io/2015/numptyphysics/"
+
+# This is only the SRC_URI for the user levels. The code is in git repo.
+SRC_URI="user-levels? (
+ 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
+)"
+
+EGIT_REPO_URI="https://github.com/thp/numptyphysics"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE="+user-levels"
+
+RDEPEND="media-libs/libsdl2[opengl,video]
+ media-libs/sdl2-image[png]
+ media-libs/sdl2-ttf
+ virtual/opengl
+ dev-libs/glib:2"
+DEPEND="${DEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ append-cxxflags -std=c++11 -Isrc
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ sed -i \
+ -e "s^@GENTOO_DATADIR@^${GAMES_DATADIR}/${PN}/data^" \
+ src/Os.cpp || die
+}
+
+src_install() {
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r data
+
+ if use user-levels ; then
+ local f
+
+ for f in ${A} ; do
+ [[ ${f} = ${f/.tar.gz/} ]] && doins "${DISTDIR}"/${f}
+ done
+ fi
+ make_desktop_entry ${PN} 'Numpty Physics'
+ doicon -s 256 platform/freedesktop/numptyphysics.png
+ doman platform/freedesktop/numptyphysics.6
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}