1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils gnome2-utils flag-o-matic git-r3
7 DESCRIPTION="Crayon Physics-like drawing puzzle game using the same excellent Box2D engine"
8 HOMEPAGE="http://thp.io/2015/numptyphysics/"
10 # This is only the SRC_URI for the user levels. The code is in git repo.
11 SRC_URI="user-levels? (
12 http://numptyphysics.garage.maemo.org/levels/butelo/butelo.npz
13 http://numptyphysics.garage.maemo.org/levels/catalyst/catalyst.npz
14 http://numptyphysics.garage.maemo.org/levels/christeck/christeck.npz
15 http://numptyphysics.garage.maemo.org/levels/dneary/dneary.npz
16 http://numptyphysics.garage.maemo.org/levels/gnuton/gnuton.npz
17 http://numptyphysics.garage.maemo.org/levels/gudger/gudger.npz
18 http://numptyphysics.garage.maemo.org/levels/guile/guile.npz
19 http://numptyphysics.garage.maemo.org/levels/hurd/hurd.npz
20 http://numptyphysics.garage.maemo.org/levels/ioan/ioan.npz
21 http://numptyphysics.garage.maemo.org/levels/jhoff80/jhoff80.npz
22 http://numptyphysics.garage.maemo.org/levels/leonet/leonet.npz
23 http://numptyphysics.garage.maemo.org/levels/melvin/melvin.npz
24 http://numptyphysics.garage.maemo.org/levels/noodleman/noodleman.npz
25 http://numptyphysics.garage.maemo.org/levels/papky/papky.npz
26 http://numptyphysics.garage.maemo.org/levels/perli/perli.npz
27 http://numptyphysics.garage.maemo.org/levels/qole/qole.npz
28 http://numptyphysics.garage.maemo.org/levels/siminz/siminz.npz
29 http://numptyphysics.garage.maemo.org/levels/szymanowski/szymanowski.npz
30 http://numptyphysics.garage.maemo.org/levels/therealbubba/therealbubba.npz
31 http://numptyphysics.garage.maemo.org/levels/werre/werre.npz
32 http://numptyphysics.garage.maemo.org/levels/zeez/zeez.npz
35 EGIT_REPO_URI="https://github.com/thp/numptyphysics"
42 RDEPEND="media-libs/libsdl2[opengl,video]
43 media-libs/sdl2-image[png]
55 append-cxxflags -std=c++11 -Isrc
56 sed -i '/-g -O2/d' external/Box2D/Source/Makefile \
57 external/glaserl/makefile || die
58 sed -i "/return thp::/s% thp::.*$%\"/usr/share/${PN}/data\";%" \
60 sed -e '/CXXFLAGS +=/s/\(CXXFLAGS +=\).*\( -DAPP=.*\)/\1\2/' \
61 -e '/SILENTCMD/s/$(LIBS)$/$(LDFLAGS) $(LIBS)/' \
71 gnome2_icon_cache_update
75 gnome2_icon_cache_update