X-Git-Url: https://git.sthu.org/?p=shuber-gentoo-overlay.git;a=blobdiff_plain;f=dev-libs%2Fsdformat%2Fsdformat-6.2.0-r1.ebuild;fp=dev-libs%2Fsdformat%2Fsdformat-6.2.0-r1.ebuild;h=20a36e980be52f20d7325512badf2c178fa78d53;hp=0000000000000000000000000000000000000000;hb=19552872cebbb3bc56f8efddd532dd1c1bfde637;hpb=97718897d3ddb28b6472c8b10263a1dd7bb43a12 diff --git a/dev-libs/sdformat/sdformat-6.2.0-r1.ebuild b/dev-libs/sdformat/sdformat-6.2.0-r1.ebuild new file mode 100644 index 0000000..20a36e9 --- /dev/null +++ b/dev-libs/sdformat/sdformat-6.2.0-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +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/6" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=" + >=dev-libs/urdfdom-1:= + dev-libs/tinyxml + dev-libs/boost:= + sci-libs/ignition-math:4= +" +DEPEND="${RDEPEND} + dev-lang/ruby:* + virtual/pkgconfig +" +CMAKE_BUILD_TYPE=RelWithDebInfo + +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_TINYXML=ON" + ) + cmake-utils_src_configure +}