Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/orocos_kdl/
Date: Sat, 07 Apr 2018 14:08:35
Message-Id: 1523110096.6b89e025288ea1720b27da71e42d8224436f70c1.aballier@gentoo
1 commit: 6b89e025288ea1720b27da71e42d8224436f70c1
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 7 13:36:29 2018 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 7 14:08:16 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b89e025
7
8 sci-libs/orocos_kdl: bump to 1.4.0
9
10 Package-Manager: Portage-2.3.28, Repoman-2.3.9
11
12 sci-libs/orocos_kdl/Manifest | 1 +
13 sci-libs/orocos_kdl/orocos_kdl-1.4.0.ebuild | 71 +++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/sci-libs/orocos_kdl/Manifest b/sci-libs/orocos_kdl/Manifest
17 index 79956d17a9a..40912926d34 100644
18 --- a/sci-libs/orocos_kdl/Manifest
19 +++ b/sci-libs/orocos_kdl/Manifest
20 @@ -1 +1,2 @@
21 DIST orocos_kinematics_dynamics-1.3.1.tar.gz 202471 BLAKE2B 46b7bdb62c09e9077b84d914b4d780995f27d486d9c734ef2ee1f8b8c2219265cdba5e63830225e2435b5760b79f00d478670e95b71666959afa773f8bcfe5ce SHA512 93abd9dd5aef3710f784f9db8eea4738458bffa5295923993e2d77656c18f7354559412fb7eb5f1e9da7112de19aa36d3f0f68f149852f955bce960fd3b719e7
22 +DIST orocos_kinematics_dynamics-1.4.0.tar.gz 215004 BLAKE2B 02ca44195af2ae2bd5c2293869893c56846501e2055ca1cacef602ffdd44824fc618ed528d351ee2212b7c087ff5e69438ab87e9fb8813d8a4eb4c143fdbfd27 SHA512 7156465e2aff02f472933617512069355836a03a02d4587cfe03c1b1d667a9762a4e3ed6e055b2a44f1fce1b6746179203c7204389626a7b458dcab1b28930d8
23
24 diff --git a/sci-libs/orocos_kdl/orocos_kdl-1.4.0.ebuild b/sci-libs/orocos_kdl/orocos_kdl-1.4.0.ebuild
25 new file mode 100644
26 index 00000000000..7ea47c627d7
27 --- /dev/null
28 +++ b/sci-libs/orocos_kdl/orocos_kdl-1.4.0.ebuild
29 @@ -0,0 +1,71 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=5
34 +
35 +SCM=""
36 +if [ "${PV#9999}" != "${PV}" ] ; then
37 + SCM="git-r3"
38 + EGIT_REPO_URI="https://github.com/orocos/orocos_kinematics_dynamics"
39 +fi
40 +
41 +inherit ${SCM} cmake-utils
42 +
43 +if [ "${PV#9999}" != "${PV}" ] ; then
44 + KEYWORDS=""
45 + SRC_URI=""
46 +else
47 + KEYWORDS="~amd64 ~arm ~x86"
48 + SRC_URI="https://github.com/orocos/orocos_kinematics_dynamics/archive/v${PV}.tar.gz -> orocos_kinematics_dynamics-${PV}.tar.gz"
49 +fi
50 +
51 +DESCRIPTION="Kinematics and Dynamics Library (KDL)"
52 +HOMEPAGE="http://www.orocos.org/kdl"
53 +LICENSE="LGPL-2.1"
54 +SLOT="0"
55 +IUSE="doc test examples models"
56 +
57 +RDEPEND="dev-cpp/eigen:3"
58 +DEPEND="${RDEPEND}
59 + test? ( dev-util/cppunit )
60 + doc? ( app-doc/doxygen )"
61 +REQUIRED_USE="examples? ( models )"
62 +
63 +DOCS=( README )
64 +
65 +if [ "${PV#9999}" != "${PV}" ] ; then
66 + S=${WORKDIR}/${P}/orocos_kdl
67 +else
68 + S=${WORKDIR}/orocos_kinematics_dynamics-${PV}/orocos_kdl
69 +fi
70 +
71 +src_configure() {
72 + local mycmakeargs=(
73 + "$(cmake-utils_use_enable test TESTS)"
74 + "$(cmake-utils_use_enable examples EXAMPLES)"
75 + "-DBUILD_MODELS=$(usex models ON OFF)"
76 + )
77 + cmake-utils_src_configure
78 +}
79 +
80 +src_compile() {
81 + cmake-utils_src_compile
82 + cd "${BUILD_DIR}"
83 + use doc && emake docs
84 +}
85 +
86 +src_test() {
87 + cd "${BUILD_DIR}"
88 + emake check
89 +}
90 +
91 +src_install() {
92 + cmake-utils_src_install
93 + cd "${BUILD_DIR}"
94 + use doc && dohtml -r doc/api/html/*
95 + use examples && dobin "${BUILD_DIR}/examples/"{geometry,trajectory_example,chainiksolverpos_lma_demo}
96 +
97 + # Need to have package.xml in our custom gentoo path
98 + insinto /usr/share/ros_packages/${PN}
99 + doins "${ED}/usr/share/${PN}/package.xml"
100 +}