diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-08 01:07:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-08 01:07:24 +0100 |
commit | e3cf2c86fca1750343c1885311f857f185ee4f2d (patch) | |
tree | d9d1fbc20509d4c90f57fb2d9e1459bc8034c831 /games-engines/box2d/box2d-2.3.1.ebuild | |
parent | f1af93971b7490792d8541bc790e0d8c6d787059 (diff) |
gentoo resync : 08.09.2019
Diffstat (limited to 'games-engines/box2d/box2d-2.3.1.ebuild')
-rw-r--r-- | games-engines/box2d/box2d-2.3.1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/games-engines/box2d/box2d-2.3.1.ebuild b/games-engines/box2d/box2d-2.3.1.ebuild new file mode 100644 index 000000000000..9a083d4ffb02 --- /dev/null +++ b/games-engines/box2d/box2d-2.3.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson multilib + +MY_PN="Box2D" +DESCRIPTION="A C++ engine for simulating rigid bodies in 2D games" +HOMEPAGE="https://box2d.org/" +SRC_URI="https://github.com/erincatto/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="ZLIB" +SLOT="$(ver_cut 1-2).0" +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}/${MY_PN}-${PV}/${MY_PN}" + +src_prepare() { + # This version supports CMake but upstream has dropped it since this + # release. They now use Premake but this Meson file is actually + # simpler! Installation is manual but that's true for Premake too. + cat > meson.build <<EOF || die +project('${MY_PN}', 'cpp') +shared_library( + '${MY_PN}', + $(find ${MY_PN} -name "*.cpp" -printf "'%p', ") + soversion: '${SLOT}', install : true +) +EOF + + default +} + +src_install() { + dodoc {Changes,Readme}.txt + dolib.so "${BUILD_DIR}"/lib${MY_PN}$(get_libname ${SLOT}) + + local FILE + for FILE in $(find ${MY_PN} -name *.h); do + insinto "/usr/include/${MY_PN}-${SLOT}/${FILE%/*}" + doins "${FILE}" + done +} |