Skip to content

Commit

Permalink
games-puzzle/numptyphysics: sync live
Browse files Browse the repository at this point in the history
Signed-off-by: Ionen Wolkens <[email protected]>
  • Loading branch information
ionenwks committed Jul 17, 2021
1 parent 4cd9668 commit fd23825
Showing 1 changed file with 15 additions and 44 deletions.
59 changes: 15 additions & 44 deletions games-puzzle/numptyphysics/numptyphysics-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,67 +3,38 @@

EAPI=7

inherit git-r3 gnome2-utils toolchain-funcs
inherit toolchain-funcs xdg

DESCRIPTION="Crayon Physics-like drawing puzzle game using the same excellent Box2D engine"
HOMEPAGE="https://github.com/thp/numptyphysics"
EGIT_REPO_URI="https://github.com/thp/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
)"

LICENSE="GPL-3+"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/thp/numptyphysics.git"
else
SRC_URI="https://github.com/thp/numptyphysics/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi

LICENSE="BSD GPL-3+ ZLIB"
SLOT="0"
IUSE="+user-levels"

RDEPEND="
dev-libs/glib:2
media-libs/libsdl2[opengl,video]
media-libs/sdl2-image[png]
media-libs/sdl2-ttf
virtual/opengl
"
virtual/opengl"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

PATCHES=(
"${FILESDIR}"/${PN}-0.3.5-gentoo.patch
"${FILESDIR}"/${PN}-0.3.8-empty-tr.patch
"${FILESDIR}"/${PN}-0.3.8-respect-flags.patch
)

src_compile() {
tc-export CC CXX
emake
}

pkg_preinst() {
gnome2_icon_savelist
}

pkg_postinst() {
gnome2_icon_cache_update
}
tc-export AR CC CXX PKG_CONFIG RANLIB

pkg_postrm() {
gnome2_icon_cache_update
emake V=1
}

0 comments on commit fd23825

Please sign in to comment.