From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 98FBD13835A for ; Sun, 4 Apr 2021 21:38:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E62A6E0870; Sun, 4 Apr 2021 21:38:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C6405E0870 for ; Sun, 4 Apr 2021 21:38:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A35F733DE47 for ; Sun, 4 Apr 2021 21:38:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 229C763E for ; Sun, 4 Apr 2021 21:38:41 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1617571855.9a2f8cc2f18966c6b60fd8c978724643e34a137d.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/orocos_kdl/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/orocos_kdl/orocos_kdl-9999.ebuild X-VCS-Directories: sci-libs/orocos_kdl/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 9a2f8cc2f18966c6b60fd8c978724643e34a137d X-VCS-Branch: master Date: Sun, 4 Apr 2021 21:38:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cf5d3040-ee7b-4339-872e-b7555880c7f1 X-Archives-Hash: b521c13cb40ad3d99b5788d9a318c6f8 commit: 9a2f8cc2f18966c6b60fd8c978724643e34a137d Author: Bernd Waibel posteo net> AuthorDate: Sat Apr 3 17:44:48 2021 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Apr 4 21:30:55 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a2f8cc2 sci-libs/orocos_kdl: port 1.4.0 changes to live Backport changes from 1.4.0-r1 and update ebuild: - bump to EAPI 7 - port to cmake.eclass using ninja Bugday 2021-04-03 Closes: https://bugs.gentoo.org/770595 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Bernd Waibel posteo.net> Signed-off-by: Andreas Sturmlechner gentoo.org> sci-libs/orocos_kdl/orocos_kdl-9999.ebuild | 82 ++++++++++++++++-------------- 1 file changed, 45 insertions(+), 37 deletions(-) diff --git a/sci-libs/orocos_kdl/orocos_kdl-9999.ebuild b/sci-libs/orocos_kdl/orocos_kdl-9999.ebuild index da34c196985..d50c631a39c 100644 --- a/sci-libs/orocos_kdl/orocos_kdl-9999.ebuild +++ b/sci-libs/orocos_kdl/orocos_kdl-9999.ebuild @@ -1,71 +1,79 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 -SCM="" -if [ "${PV#9999}" != "${PV}" ] ; then - SCM="git-r3" - EGIT_REPO_URI="https://github.com/orocos/orocos_kinematics_dynamics" -fi +inherit cmake -inherit ${SCM} cmake-utils +DESCRIPTION="Kinematics and Dynamics Library (KDL)" +HOMEPAGE="https://www.orocos.org/kdl" -if [ "${PV#9999}" != "${PV}" ] ; then - SRC_URI="" +if [[ ${PV} = *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/orocos/orocos_kinematics_dynamics" + S="${WORKDIR}/${P}/${PN}" else - KEYWORDS="~amd64 ~arm ~x86" 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 -DESCRIPTION="Kinematics and Dynamics Library (KDL)" -HOMEPAGE="https://www.orocos.org/kdl" LICENSE="LGPL-2.1" SLOT="0/14" -IUSE="doc test examples models" +IUSE="doc examples models test" +REQUIRED_USE="examples? ( models )" RESTRICT="!test? ( test )" RDEPEND="dev-cpp/eigen:3" -DEPEND="${RDEPEND} +DEPEND="${RDEPEND}" +BDEPEND=" + doc? ( app-doc/doxygen[dot] ) test? ( dev-util/cppunit ) - doc? ( app-doc/doxygen )" -REQUIRED_USE="examples? ( models )" +" -DOCS=( README ) - -if [ "${PV#9999}" != "${PV}" ] ; then - S=${WORKDIR}/${P}/orocos_kdl -else - S=${WORKDIR}/orocos_kinematics_dynamics-${PV}/orocos_kdl -fi +PATCHES=( + "${FILESDIR}"/${PN}-1.4.0-0001-don-t-install-kdl.tag-file.patch +) src_configure() { local mycmakeargs=( - "$(cmake-utils_use_enable test TESTS)" - "$(cmake-utils_use_enable examples EXAMPLES)" - "-DBUILD_MODELS=$(usex models ON OFF)" + -DBUILD_MODELS=$(usex models ON OFF) + -DENABLE_EXAMPLES=$(usex examples) + -DENABLE_TESTS=$(usex test) ) - cmake-utils_src_configure + if use examples; then + mycmakeargs+=( + -DBUILD_MODELS_DEMO=ON + ) + fi + cmake_src_configure } src_compile() { - cmake-utils_src_compile - cd "${BUILD_DIR}" - use doc && emake docs + cmake_src_compile + if use doc; then + cmake_build docs + rm "${BUILD_DIR}/doc/kdl.tag" || die + fi } src_test() { - cd "${BUILD_DIR}" - emake check + pushd "${BUILD_DIR}" > /dev/null || die + eninja check + popd > /dev/null || die } src_install() { - cmake-utils_src_install - cd "${BUILD_DIR}" - use doc && dohtml -r doc/api/html/* - use examples && dobin "${BUILD_DIR}/examples/"{geometry,trajectory_example,chainiksolverpos_lma_demo} + 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" + doins "${S}/package.xml" }