commit: 0fdcedeb1cab9e52b8d02d77717b0f1a16767bec Author: Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name> AuthorDate: Fri Jun 2 14:10:20 2017 +0000 Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name> CommitDate: Fri Jun 2 14:10:20 2017 +0000 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=0fdcedeb
box2d: bump dev-libs/box2d/box2d-2.0.1.ebuild | 56 --------------------------------------- dev-libs/box2d/box2d-2.1.2.ebuild | 31 ---------------------- dev-libs/box2d/box2d-2.3.1.ebuild | 45 +++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 87 deletions(-) diff --git a/dev-libs/box2d/box2d-2.0.1.ebuild b/dev-libs/box2d/box2d-2.0.1.ebuild deleted file mode 100644 index 1114c8b..0000000 --- a/dev-libs/box2d/box2d-2.0.1.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -MY_PN=Box2D - -inherit eutils - -IUSE="" - -DESCRIPTION="Box2D is an open source physics engine written primarily for games." -HOMEPAGE="http://www.box2d.org" -SRC_URI="http://box2d.googlecode.com/files/${MY_PN}_v${PV}.zip" - -LICENSE="ZLIB" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="media-libs/freeglut - app-arch/unzip" -DEPEND="${RDEPEND}" - -S="${WORKDIR}"/${MY_PN}_v${PV}/${MY_PN}/Source - -src_prepare(){ - epatch "${FILESDIR}"/${P}-gcc4.patch - sed -i -e "s:../Source/::g" -i ../Include/Box2D.h || die sed failed -} - -src_compile() { - emake || die -} - -src_install() { - dodoc ../Readme.txt - - dolib.a Gen/float/lib${PN}.a - - insinto /usr/include/${MY_PN}/ - doins ../Include/${MY_PN}.h - insinto /usr/include/${MY_PN}/Collision/ - doins Collision/*.h - insinto /usr/include/${MY_PN}/Collision/Shapes/ - doins Collision/Shapes/*.h - insinto /usr/include/${MY_PN}/Common/ - doins Common/*.h - insinto /usr/include/${MY_PN}/Dynamics/ - doins Dynamics/*.h - insinto /usr/include/${MY_PN}/Dynamics/Contacts/ - doins Dynamics/Contacts/*.h - insinto /usr/include/${MY_PN}/Dynamics/Joints/ - doins Dynamics/Joints/*.h -} diff --git a/dev-libs/box2d/box2d-2.1.2.ebuild b/dev-libs/box2d/box2d-2.1.2.ebuild deleted file mode 100644 index 4f6402a..0000000 --- a/dev-libs/box2d/box2d-2.1.2.ebuild +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -MY_PN=Box2D - -CMAKE_MIN_VERSION=2.8 -inherit cmake-utils eutils - -DESCRIPTION="Box2D is an open source physics engine written primarily for games." -HOMEPAGE="http://www.box2d.org" -SRC_URI="http://box2d.googlecode.com/files/${MY_PN}_v${PV}.zip" - -LICENSE="ZLIB" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="media-libs/freeglut - app-arch/unzip" -DEPEND="${RDEPEND}" - -S="${WORKDIR}"/${MY_PN}_v${PV}/${MY_PN} - -src_configure() { - mycmakeargs="${mycmakeargs} -DBOX2D_BUILD_SHARED=ON" - - cmake-utils_src_configure -} diff --git a/dev-libs/box2d/box2d-2.3.1.ebuild b/dev-libs/box2d/box2d-2.3.1.ebuild new file mode 100644 index 0000000..1105a8a --- /dev/null +++ b/dev-libs/box2d/box2d-2.3.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PN=Box2D + +CMAKE_MIN_VERSION=2.8 +inherit cmake-utils eutils + +DESCRIPTION="Box2D is an open source physics engine written primarily for games." +HOMEPAGE="http://www.box2d.org" +SRC_URI="https://github.com/erincatto/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc static-libs examples" + +RDEPEND=" + media-libs/freeglut +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_PN}-${PV}/${MY_PN}" + +usx() { + usex "${1}" "ON" "OFF" +} +#nusx() { +# usex "${1}" "OFF" "ON" +#} + +src_configure() { + local mycmakeargs=( + -DBOX2D_BUILD_SHARED=ON # no-shared build? + -DBOX2D_BUILD_STATIC=$(usx static-libs) + -DBOX2D_INSTALL_DOC=$(usx doc) +# Broken: +# -DBOX2D_BUILD_EXAMPLES=$(usx examples) +# So: + -DBOX2D_BUILD_EXAMPLES=OFF + ) + cmake-utils_src_configure +}