summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/sdformat/Manifest1
-rw-r--r--dev-libs/sdformat/sdformat-4.2.0.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-libs/sdformat/Manifest b/dev-libs/sdformat/Manifest
index ac8e6e02fb6..af09a9c651d 100644
--- a/dev-libs/sdformat/Manifest
+++ b/dev-libs/sdformat/Manifest
@@ -1 +1,2 @@
DIST sdformat-4.1.1.tar.bz2 443491 SHA256 e2656984ea0411f5132363c2722b1016524195853b05fdd99e9b7dd3fa4031b1 SHA512 c124d8d4cde4dddd289ce2a83708fe3c6db31df186697b9c8c9d7fbec136cbd8f0418576590897089288885688369dae3ecb0993d74a2228077c7928499bfb32 WHIRLPOOL 3f3ba54d5bda89da87d9d8ff254b153929dd900d7611f36d92e2c5ea930b96416ff7c41b303aa04fb43c464e21739ada48fbfa175ef6dacdb53dfb034ad5cd67
+DIST sdformat-4.2.0.tar.bz2 445091 SHA256 75e2d053f97ca33456109b4d7794e6b7d26deef59c778f0d9e25d1369b24b094 SHA512 f4f79a07b009ab09e700de76a1dcb4a6737f894bd30789baea8b99d1476ddb5d7242f783a4c3dda7490fc798b692c79941d30880661ed560eaaf8c16a4449ad1 WHIRLPOOL 6a6ebe3d9371ca2a79b62d8d563931f39a2045541fd7c161485ef51d1ecb2f8bb529bab07b289874a984f6934d147754d2097bd6cf48ee5749f93a1b1a27db87
diff --git a/dev-libs/sdformat/sdformat-4.2.0.ebuild b/dev-libs/sdformat/sdformat-4.2.0.ebuild
new file mode 100644
index 00000000000..66bc9be6c0f
--- /dev/null
+++ b/dev-libs/sdformat/sdformat-4.2.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Simulation Description Format (SDF) parser"
+HOMEPAGE="http://sdformat.org/"
+SRC_URI="http://osrf-distributions.s3.amazonaws.com/sdformat/releases/${P}.tar.bz2"
+
+LICENSE="Apache-2.0"
+# subslot = libsdformat major
+SLOT="0/4"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="
+ >=dev-libs/urdfdom-1:=
+ dev-libs/tinyxml
+ dev-libs/boost:=
+ sci-libs/ignition-math:2=
+"
+DEPEND="${RDEPEND}
+ dev-lang/ruby:*
+ virtual/pkgconfig
+"
+CMAKE_BUILD_TYPE=RelWithDebInfo
+PATCHES=( "${FILESDIR}/urdfdom1.patch" )
+
+src_configure() {
+ echo "set (CMAKE_C_FLAGS_ALL \"${CXXFLAGS} \${CMAKE_C_FLAGS_ALL}\")" > "${S}/cmake/HostCFlags.cmake"
+ sed -i -e "s/LINK_FLAGS_RELWITHDEBINFO \" \"/LINK_FLAGS_RELWITHDEBINFO \" ${LDFLAGS} \"/" cmake/DefaultCFlags.cmake || die
+ local mycmakeargs=(
+ "-DUSE_EXTERNAL_URDF=ON"
+ "-DUSE_EXTERNAL_TINYXML=ON"
+ )
+ cmake-utils_src_configure
+}