diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2021-07-16 19:33:57 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2021-07-17 03:58:47 -0400 |
commit | 4cd9668d2edded13bd33aef9d9a15c46385b9ed2 (patch) | |
tree | 728d88a44232fc2397ac9e92b960b78827881c76 /games-puzzle/numptyphysics/numptyphysics-0.3.8.ebuild | |
parent | games-puzzle/nightsky: EAPI 7->8, hopefully fix install (diff) | |
download | gentoo-4cd9668d2edded13bd33aef9d9a15c46385b9ed2.tar.gz gentoo-4cd9668d2edded13bd33aef9d9a15c46385b9ed2.tar.bz2 gentoo-4cd9668d2edded13bd33aef9d9a15c46385b9ed2.zip |
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 <ionen@gentoo.org>
Diffstat (limited to 'games-puzzle/numptyphysics/numptyphysics-0.3.8.ebuild')
-rw-r--r-- | games-puzzle/numptyphysics/numptyphysics-0.3.8.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
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 +} |