diff options
Diffstat (limited to 'dev-libs/sdformat/sdformat-9.10.0.ebuild')
-rw-r--r-- | dev-libs/sdformat/sdformat-9.10.0.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-libs/sdformat/sdformat-9.10.0.ebuild b/dev-libs/sdformat/sdformat-9.10.0.ebuild new file mode 100644 index 000000000000..210757ba03de --- /dev/null +++ b/dev-libs/sdformat/sdformat-9.10.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +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/9" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-libs/urdfdom-1:= + dev-libs/tinyxml + dev-libs/boost:= + sci-libs/ignition-math:6= +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-lang/ruby:* + virtual/pkgconfig +" +PATCHES=( "${FILESDIR}/ruby.patch" ) + +src_prepare() { + cmake_src_prepare + + # get rid of default flags + sed -i -e '/_FLAGS_RELWITHDEBINFO/d' cmake/DefaultCFlags.cmake || die +} + +src_configure() { + local mycmakeargs=( + -DUSE_INTERNAL_URDF=OFF + -DUSE_EXTERNAL_TINYXML=ON + ) + cmake_src_configure +} |