diff options
author | Alexis Ballier <aballier@gentoo.org> | 2021-04-06 10:15:48 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2021-04-06 11:30:44 +0200 |
commit | 9cab8657528e52a88b32158878ae2ad248d2fa56 (patch) | |
tree | 0dfc0060f94505d4c835dae543ee2133714b8450 /sci-libs/orocos_kdl/orocos_kdl-1.4.0-r2.ebuild | |
parent | games-engines/devilutionx: Removed old (diff) | |
download | gentoo-9cab8657528e52a88b32158878ae2ad248d2fa56.tar.gz gentoo-9cab8657528e52a88b32158878ae2ad248d2fa56.tar.bz2 gentoo-9cab8657528e52a88b32158878ae2ad248d2fa56.zip |
sci-libs/orocos_kdl: keep package.xml in the standard path too
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'sci-libs/orocos_kdl/orocos_kdl-1.4.0-r2.ebuild')
-rw-r--r-- | sci-libs/orocos_kdl/orocos_kdl-1.4.0-r2.ebuild | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/sci-libs/orocos_kdl/orocos_kdl-1.4.0-r2.ebuild b/sci-libs/orocos_kdl/orocos_kdl-1.4.0-r2.ebuild new file mode 100644 index 000000000000..175baf488d17 --- /dev/null +++ b/sci-libs/orocos_kdl/orocos_kdl-1.4.0-r2.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Kinematics and Dynamics Library (KDL)" +HOMEPAGE="https://www.orocos.org/kdl" + +if [[ ${PV} = *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/orocos/orocos_kinematics_dynamics" + S="${WORKDIR}/${P}/${PN}" +else + SRC_URI="https://github.com/orocos/orocos_kinematics_dynamics/archive/v${PV}.tar.gz -> orocos_kinematics_dynamics-${PV}.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" + S="${WORKDIR}/orocos_kinematics_dynamics-${PV}/${PN}" +fi + +LICENSE="LGPL-2.1" +SLOT="0/14" +IUSE="doc examples models test" +REQUIRED_USE="examples? ( models )" +RESTRICT="!test? ( test )" + +RDEPEND="dev-cpp/eigen:3" +DEPEND="${RDEPEND}" +BDEPEND=" + doc? ( app-doc/doxygen[dot] ) + test? ( dev-util/cppunit ) +" + +PATCHES=( + "${FILESDIR}"/${P}-0001-don-t-install-kdl.tag-file.patch + "${FILESDIR}"/${P}-0002-add-LIB_SUFFIX-in-pkg-config-file.patch +) + +src_configure() { + local mycmakeargs=( + -DBUILD_MODELS=$(usex models ON OFF) + -DENABLE_EXAMPLES=$(usex examples) + -DENABLE_TESTS=$(usex test) + ) + if use examples; then + mycmakeargs+=( + -DBUILD_MODELS_DEMO=ON + ) + fi + cmake_src_configure +} + +src_compile() { + cmake_src_compile + if use doc; then + cmake_build docs + rm "${BUILD_DIR}/doc/kdl.tag" || die + fi +} + +src_test() { + pushd "${BUILD_DIR}" > /dev/null || die + eninja check + popd > /dev/null || die +} + +src_install() { + use doc && local HTML_DOCS=( "${BUILD_DIR}/doc/api/html/." ) + cmake_src_install + + if use examples; then + docompress -x /usr/share/doc/${PF}/examples + docinto examples + dodoc -r "${S}"/examples/. + fi + + # Need to have package.xml in our custom gentoo path + insinto /usr/share/ros_packages/${PN} + doins "${ED}/usr/share/${PN}/package.xml" +} |