public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Vadim A. Misbakh-Soloviov" <mva@mva.name>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gamerlay:master commit in: dev-libs/box2d/
Date: Fri,  2 Jun 2017 14:38:48 +0000 (UTC)	[thread overview]
Message-ID: <1496412620.0fdcedeb1cab9e52b8d02d77717b0f1a16767bec.mva@gentoo> (raw)

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
+}


             reply	other threads:[~2017-06-02 14:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-02 14:38 Vadim A. Misbakh-Soloviov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-11-10 23:44 [gentoo-commits] proj/gamerlay:master commit in: dev-libs/box2d/ Azamat H. Hackimov
2012-11-08 14:03 Michael Palimaka
2011-07-14 18:10 Marcel Unbehaun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1496412620.0fdcedeb1cab9e52b8d02d77717b0f1a16767bec.mva@gentoo \
    --to=mva@mva.name \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox