diff options
author | David Seifert <soap@gentoo.org> | 2022-02-27 11:32:46 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-02-27 11:32:46 +0100 |
commit | 3d21f57ec261288666ae8f1b6c4dfb5256e2edbc (patch) | |
tree | e2271d0ef7fc17161ccb83c16fa4817da257e9c1 /dev-libs/sdformat | |
parent | net-im/biboumi: enable src_test (diff) | |
download | gentoo-3d21f57ec261288666ae8f1b6c4dfb5256e2edbc.tar.gz gentoo-3d21f57ec261288666ae8f1b6c4dfb5256e2edbc.tar.bz2 gentoo-3d21f57ec261288666ae8f1b6c4dfb5256e2edbc.zip |
dev-libs/sdformat: [QA] port to cmake.eclass
Bug: https://bugs.gentoo.org/811951
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-libs/sdformat')
-rw-r--r-- | dev-libs/sdformat/sdformat-9.7.0.ebuild | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/dev-libs/sdformat/sdformat-9.7.0.ebuild b/dev-libs/sdformat/sdformat-9.7.0.ebuild index 7e9289e7fc28..4a78444096c6 100644 --- a/dev-libs/sdformat/sdformat-9.7.0.ebuild +++ b/dev-libs/sdformat/sdformat-9.7.0.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit cmake-utils +inherit cmake DESCRIPTION="Simulation Description Format (SDF) parser" HOMEPAGE="http://sdformat.org/" @@ -13,7 +13,6 @@ LICENSE="Apache-2.0" # subslot = libsdformat major SLOT="0/9" KEYWORDS="~amd64" -IUSE="" RDEPEND=" >=dev-libs/urdfdom-1:= @@ -26,14 +25,18 @@ BDEPEND=" dev-lang/ruby:* virtual/pkgconfig " -CMAKE_BUILD_TYPE=RelWithDebInfo + +src_prepare() { + cmake_src_prepare + + # get rid of default flags + sed -i -e '/_FLAGS_RELWITHDEBINFO/d' cmake/DefaultCFlags.cmake || die +} 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_INTERNAL_URDF=OFF" - "-DUSE_EXTERNAL_TINYXML=ON" + -DUSE_INTERNAL_URDF=OFF + -DUSE_EXTERNAL_TINYXML=ON ) - cmake-utils_src_configure + cmake_src_configure } |