From 4cd9668d2edded13bd33aef9d9a15c46385b9ed2 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Fri, 16 Jul 2021 19:33:57 -0400 Subject: games-puzzle/numptyphysics: add 0.3.8 ebuild fixes: * -user-levels was broken due to main SRC_URI being behind user-levels? * +user-levels was pointless due to main tarball already including them in the required new format -- and downloaded levels weren't being installed either way * tc-export AR RANLIB also needed, and new patch adds PKG_CONFIG * fix icon cache (gnome2_icon_cache_update called in EAPI-7) Signed-off-by: Ionen Wolkens --- .../numptyphysics/numptyphysics-0.3.8.ebuild | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 games-puzzle/numptyphysics/numptyphysics-0.3.8.ebuild (limited to 'games-puzzle/numptyphysics/numptyphysics-0.3.8.ebuild') diff --git a/games-puzzle/numptyphysics/numptyphysics-0.3.8.ebuild b/games-puzzle/numptyphysics/numptyphysics-0.3.8.ebuild new file mode 100644 index 000000000000..9ff5318033cc --- /dev/null +++ b/games-puzzle/numptyphysics/numptyphysics-0.3.8.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs xdg + +DESCRIPTION="Crayon Physics-like drawing puzzle game using the same excellent Box2D engine" +HOMEPAGE="https://github.com/thp/numptyphysics" + +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" + +RDEPEND=" + dev-libs/glib:2 + media-libs/libsdl2[opengl,video] + media-libs/sdl2-image[png] + media-libs/sdl2-ttf + virtual/opengl" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-empty-tr.patch + "${FILESDIR}"/${P}-respect-flags.patch +) + +src_compile() { + tc-export AR CC CXX PKG_CONFIG RANLIB + + emake V=1 +} -- cgit v1.2.3-65-gdbad