1 |
commit: 58e6135bc25b04a414e56a79b5d711a56c047ebf |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 16 04:20:20 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 16 04:31:43 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58e6135b |
7 |
|
8 |
dev-util/catkin: Bump to 0.7.5. |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-util/catkin/Manifest | 1 + |
13 |
dev-util/catkin/catkin-0.7.5.ebuild | 115 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 116 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/catkin/Manifest b/dev-util/catkin/Manifest |
17 |
index 0491695b6d..9f9d2edbbb 100644 |
18 |
--- a/dev-util/catkin/Manifest |
19 |
+++ b/dev-util/catkin/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST catkin-0.7.4.tar.gz 201140 SHA256 e113577697cd58432111c187b3faaa0df365f7694fe81ff71f9d29b65d467e48 SHA512 89bd38e8fbe4eba481404295f83a77974a2af14a038d326b294029d84789356290480588d7824e4e9849a9974a8ca08be13115c459aa6e00a8e36ce861f46a83 WHIRLPOOL 66b738d02609d9cfe891f7e159ec8ff980acb18208b635d25e9c66895e85ebd6024082ff117d3c1e0a26ebe529d7079aea2f8ecdfa541dc449b0ea768e033dd0 |
22 |
+DIST catkin-0.7.5.tar.gz 202852 SHA256 a9042a1e0f7eb28241c5b3a934bbf285772604f3b030f474da85c7349fde4639 SHA512 96429cb0e18847d007b8861ebc62e200a529840ea5f5d79514998a8297028aa8c0902441bbba295d7f69b9c182d910bf7ed9cbeb6d5d61a67c715141661a7780 WHIRLPOOL 1f91f27aebd628846d444289867340dc6166e45dde5565965e8ca1bca371c2798e1d0b115d71b811e4d591f1d60df0b13c30be86c92cfbc7d52b4f1ba792d5b2 |
23 |
|
24 |
diff --git a/dev-util/catkin/catkin-0.7.5.ebuild b/dev-util/catkin/catkin-0.7.5.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000000..6dda0014e8 |
27 |
--- /dev/null |
28 |
+++ b/dev-util/catkin/catkin-0.7.5.ebuild |
29 |
@@ -0,0 +1,115 @@ |
30 |
+# Copyright 1999-2017 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_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 |
+ "${FILESDIR}/etc.patch" |
75 |
+) |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ # fix libdir |
79 |
+ sed -i \ |
80 |
+ -e 's:LIBEXEC_DESTINATION lib:LIBEXEC_DESTINATION libexec:' \ |
81 |
+ -e 's:}/lib:}/${CMAKE_INSTALL_LIBDIR}:' \ |
82 |
+ -e 's:DESTINATION lib):DESTINATION ${CMAKE_INSTALL_LIBDIR}):' \ |
83 |
+ -e 's:DESTINATION lib/:DESTINATION ${CMAKE_INSTALL_LIBDIR}/:' \ |
84 |
+ -e 's:PYTHON_INSTALL_DIR lib:PYTHON_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}:' \ |
85 |
+ cmake/*.cmake || die |
86 |
+ cmake-utils_src_prepare |
87 |
+} |
88 |
+ |
89 |
+catkin_src_configure_internal() { |
90 |
+ local sitedir="$(python_get_sitedir)" |
91 |
+ mycmakeargs+=( |
92 |
+ -DPYTHON_EXECUTABLE="${PYTHON}" |
93 |
+ -DPYTHON_INSTALL_DIR="${sitedir#${EPREFIX}/usr/}" |
94 |
+ ) |
95 |
+ python_export PYTHON_SCRIPTDIR |
96 |
+ cmake-utils_src_configure |
97 |
+} |
98 |
+ |
99 |
+src_configure() { |
100 |
+ local mycmakeargs=( |
101 |
+ "$(cmake-utils_use test CATKIN_ENABLE_TESTING)" |
102 |
+ "-DCATKIN_BUILD_BINARY_PACKAGE=ON" |
103 |
+ ) |
104 |
+ python_foreach_impl catkin_src_configure_internal |
105 |
+} |
106 |
+ |
107 |
+src_compile() { |
108 |
+ python_foreach_impl cmake-utils_src_compile |
109 |
+} |
110 |
+ |
111 |
+src_test() { |
112 |
+ unset PYTHON_SCRIPTDIR |
113 |
+ python_foreach_impl cmake-utils_src_test |
114 |
+} |
115 |
+ |
116 |
+catkin_src_install_internal() { |
117 |
+ python_export PYTHON_SCRIPTDIR |
118 |
+ cmake-utils_src_install |
119 |
+ if [ ! -f "${T}/.catkin_python_symlinks_generated" ]; then |
120 |
+ dodir /usr/bin |
121 |
+ for i in "${D}/${PYTHON_SCRIPTDIR}"/* ; do |
122 |
+ dosym ../lib/python-exec/python-exec2 "/usr/bin/${i##*/}" || die |
123 |
+ done |
124 |
+ touch "${T}/.catkin_python_symlinks_generated" |
125 |
+ fi |
126 |
+} |
127 |
+ |
128 |
+src_install() { |
129 |
+ python_foreach_impl catkin_src_install_internal |
130 |
+ |
131 |
+ doenvd "${FILESDIR}/40catkin" |
132 |
+ |
133 |
+ # needed to be considered as a workspace |
134 |
+ touch "${ED}/usr/.catkin" |
135 |
+} |
136 |
+ |
137 |
+pkg_postinst() { |
138 |
+ ewarn "Starting from version 0.7.1-r2, dev-util/catkin changed the" |
139 |
+ ewarn "installation path for package.xml files on Gentoo." |
140 |
+ ewarn "In order for ROS to work properly, you will need to reinstall ROS" |
141 |
+ ewarn "packages that have it installed in the old location:" |
142 |
+ ewarn " emerge -1O /usr/share/*/package.xml" |
143 |
+ ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=595004 for more details." |
144 |
+} |