diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-06-20 14:45:01 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-06-20 14:45:01 +0100 |
commit | 34dea8e38f88007799629d0a56b12dec480b1d21 (patch) | |
tree | 6790873994b58030360328cf5897d934b3b03d16 /sci-libs/fcl/fcl-0.6.1-r1.ebuild | |
parent | 7932d472a02d4c016ff7dff4b7a5479ab9d1883d (diff) |
gentoo resync : 20.06.2021
Diffstat (limited to 'sci-libs/fcl/fcl-0.6.1-r1.ebuild')
-rw-r--r-- | sci-libs/fcl/fcl-0.6.1-r1.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/sci-libs/fcl/fcl-0.6.1-r1.ebuild b/sci-libs/fcl/fcl-0.6.1-r1.ebuild new file mode 100644 index 000000000000..5302b1fe59d9 --- /dev/null +++ b/sci-libs/fcl/fcl-0.6.1-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +if [ "${PV}" = "9999" ]; then + EGIT_REPO_URI="https://github.com/flexible-collision-library/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/flexible-collision-library/fcl/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm" +fi + +DESCRIPTION="The Flexible Collision Library" +HOMEPAGE="http://gamma.cs.unc.edu/FCL/" + +LICENSE="BSD" +SLOT="0/6" +IUSE="cpu_flags_x86_sse doc +octomap profiling test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-cpp/eigen:3 + dev-libs/boost:=[threads(+)] + sci-libs/flann + sci-libs/libccd[double-precision] + octomap? ( sci-libs/octomap:= ) +" + +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + test? ( dev-cpp/gtest )" + +BDEPEND="${RDEPEND} + virtual/pkgconfig" + +src_configure() { + # Upstream issue: + # https://github.com/flexible-collision-library/fcl/issues/485 + rm "${S}"/test/narrowphase/detail/convexity_based_algorithm/test_gjk_libccd-inl_gjk_doSimplex2.cpp + sed -i -e 's/test_gjk_libccd-inl_gjk_doSimplex2.cpp//' "${S}"/test/narrowphase/detail/convexity_based_algorithm/CMakeLists.txt || die could not disable failing test + + sed -i -e "s/include(CompilerSettings)//" "${S}"/CMakeLists.txt || die "failed to remove compiler flags override" + + local mycmakeargs=( + -DBUILD_TESTING=$(usex test ON OFF) + -DFCL_COVERALLS=OFF + -DFCL_COVERALLS_UPLOAD=OFF + -DFCL_ENABLE_PROFILING=$(usex profiling ON OFF) + -DFCL_TREAT_WARNINGS_AS_ERRORS=OFF + -DFCL_USE_HOST_NATIVE_ARCH=OFF + -DFCL_USE_X64_SSE=$(usex cpu_flags_x86_sse ON OFF) + -DFCL_WITH_OCTOMAP=$(usex octomap ON OFF) + ) + local CMAKE_BUILD_TYPE="Release" + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + use doc && cmake_src_compile docs +} + +src_install() { + cmake_src_install + + use doc && HTML_DOCS=( "${S}"/doc/doxygen/html ) + einstalldocs +} |