Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/catkin/
Date: Fri, 07 Oct 2016 15:55:26
Message-Id: 1475855715.2bb2794e7a3c0b1a5c06a02324b69587f422e525.aballier@gentoo
1 commit: 2bb2794e7a3c0b1a5c06a02324b69587f422e525
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 7 15:51:50 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 7 15:55:15 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bb2794e
7
8 dev-util/catkin: bump to 0.7.2
9
10 Package-Manager: portage-2.3.1
11
12 dev-util/catkin/Manifest | 1 +
13 dev-util/catkin/catkin-0.7.2.ebuild | 110 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 111 insertions(+)
15
16 diff --git a/dev-util/catkin/Manifest b/dev-util/catkin/Manifest
17 index 9cd305c..0bedc36 100644
18 --- a/dev-util/catkin/Manifest
19 +++ b/dev-util/catkin/Manifest
20 @@ -1 +1,2 @@
21 DIST catkin-0.7.1.tar.gz 200307 SHA256 232cc85807daee31329ba4509fb1e5697ddb0a17f9442ac886a5883da687d9ab SHA512 e1ab220dc04e9522059c073c328c7da9d957266d2030e07a4ae03829c5666abf8ff5008e8208b5ca4b9a0153cb201337879e3c8f987d84fe5a4b66000d60ae03 WHIRLPOOL f47fb5a51869f49fc238eeb05ae76284081d8ac522283232b182197d7fc8e0255f34e99fd7f08abc79427f63e554e0cefdf5bee81a96a64d9ef489c45151af52
22 +DIST catkin-0.7.2.tar.gz 201049 SHA256 e8c23823b8cc6ea19b5e15af93c2790395cae72b82797c8f1ce2569e0c036e2f SHA512 23587533d531f6ef2fdc4c109a7954a771af60b95261057061aca50bf6d041e31307f4429d6dc9021ecc9e21d723806278b186a037b7ac26b751d83cb842ea37 WHIRLPOOL f91c4164ace4a354fcb9541ddd54f310b3bd5e3f481b0bf9c02cf594531485b079ec026ce6ce388cabf54a7bbc91230ddc71aa07a567a23d1b3384b7e0a313f0
23
24 diff --git a/dev-util/catkin/catkin-0.7.2.ebuild b/dev-util/catkin/catkin-0.7.2.ebuild
25 new file mode 100644
26 index 00000000..02c18e9
27 --- /dev/null
28 +++ b/dev-util/catkin/catkin-0.7.2.ebuild
29 @@ -0,0 +1,110 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +SCM=""
37 +if [ "${PV#9999}" != "${PV}" ] ; then
38 + SCM="git-r3"
39 + EGIT_REPO_URI="https://github.com/ros/catkin"
40 +fi
41 +
42 +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
43 +
44 +inherit ${SCM} cmake-utils python-r1 python-utils-r1
45 +
46 +DESCRIPTION="Cmake macros and associated python code used to build some parts of ROS"
47 +HOMEPAGE="http://wiki.ros.org/catkin"
48 +if [ "${PV#9999}" != "${PV}" ] ; then
49 + SRC_URI=""
50 + KEYWORDS=""
51 +else
52 + SRC_URI="https://github.com/ros/catkin/archive/${PV}.tar.gz -> ${P}.tar.gz"
53 + KEYWORDS="~amd64 ~arm"
54 +fi
55 +
56 +LICENSE="BSD"
57 +SLOT="0"
58 +IUSE="test"
59 +
60 +RDEPEND="
61 + dev-python/catkin_pkg[${PYTHON_USEDEP}]
62 + dev-python/empy[${PYTHON_USEDEP}]
63 +"
64 +DEPEND="${RDEPEND}
65 + test? ( dev-python/nose[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] )"
66 +
67 +PATCHES=(
68 + "${FILESDIR}/tests.patch"
69 + "${FILESDIR}/distutils.patch"
70 + "${FILESDIR}/catkin_prefix_path.patch"
71 + "${FILESDIR}/gnuinstalldirs.patch"
72 + "${FILESDIR}/catkin_prefix_path_util_py.patch"
73 + "${FILESDIR}/package_xml.patch"
74 +)
75 +
76 +src_prepare() {
77 + # fix libdir
78 + sed -i \
79 + -e 's:LIBEXEC_DESTINATION lib:LIBEXEC_DESTINATION libexec:' \
80 + -e 's:}/lib:}/${CMAKE_INSTALL_LIBDIR}:' \
81 + -e 's:DESTINATION lib):DESTINATION ${CMAKE_INSTALL_LIBDIR}):' \
82 + -e 's:DESTINATION lib/:DESTINATION ${CMAKE_INSTALL_LIBDIR}/:' \
83 + -e 's:PYTHON_INSTALL_DIR lib:PYTHON_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}:' \
84 + cmake/*.cmake || die
85 + cmake-utils_src_prepare
86 +}
87 +
88 +catkin_src_configure_internal() {
89 + mycmakeargs+=( -DPYTHON_EXECUTABLE="${PYTHON}" )
90 + python_export PYTHON_SCRIPTDIR
91 + cmake-utils_src_configure
92 +}
93 +
94 +src_configure() {
95 + local mycmakeargs=(
96 + "$(cmake-utils_use test CATKIN_ENABLE_TESTING)"
97 + "-DCATKIN_BUILD_BINARY_PACKAGE=ON"
98 + )
99 + python_foreach_impl catkin_src_configure_internal
100 +}
101 +
102 +src_compile() {
103 + python_foreach_impl cmake-utils_src_compile
104 +}
105 +
106 +src_test() {
107 + unset PYTHON_SCRIPTDIR
108 + python_foreach_impl cmake-utils_src_test
109 +}
110 +
111 +catkin_src_install_internal() {
112 + python_export PYTHON_SCRIPTDIR
113 + cmake-utils_src_install
114 + if [ ! -f "${T}/.catkin_python_symlinks_generated" ]; then
115 + dodir /usr/bin
116 + for i in "${D}/${PYTHON_SCRIPTDIR}"/* ; do
117 + dosym ../lib/python-exec/python-exec2 "/usr/bin/${i##*/}" || die
118 + done
119 + touch "${T}/.catkin_python_symlinks_generated"
120 + fi
121 +}
122 +
123 +src_install() {
124 + python_foreach_impl catkin_src_install_internal
125 +
126 + doenvd "${FILESDIR}/40catkin"
127 +
128 + # needed to be considered as a workspace
129 + touch "${ED}/usr/.catkin"
130 +}
131 +
132 +pkg_postinst() {
133 + ewarn "Starting from version 0.7.1-r2, dev-util/catkin changed the"
134 + ewarn "installation path for package.xml files on Gentoo."
135 + ewarn "In order for ROS to work properly, you will need to reinstall ROS"
136 + ewarn "packages that have it installed in the old location:"
137 + ewarn " emerge -1O /usr/share/*/package.xml"
138 + ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=595004 for more details."
139 +}