blob: 01e05708917e2be804bd730a62d1bce96f2703c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils gnome2-utils flag-o-matic git-r3
DESCRIPTION="Crayon Physics-like drawing puzzle game 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_unpack() {
git-r3_src_unpack
}
src_prepare() {
append-cxxflags -std=c++11 -Isrc
sed -i '/-g -O2/d' external/Box2D/Source/Makefile \
external/glaserl/makefile || die
sed -i "/return thp::/s% thp::.*$%\"/usr/share/${PN}/data\";%" \
src/Os.cpp || die
sed -e '/CXXFLAGS +=/s/\(CXXFLAGS +=\).*\( -DAPP=.*\)/\1\2/' \
-e '/SILENTCMD/s/$(LIBS)$/$(LDFLAGS) $(LIBS)/' \
-i makefile || die
eapply_user
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
|