1 |
commit: a038de3d965616b9ce78974335d29eed9df03de5 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 5 11:58:20 2016 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 5 11:58:32 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a038de3d |
7 |
|
8 |
dev-util/catkin: bump to 0.7.0 |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> |
12 |
|
13 |
dev-util/catkin/Manifest | 1 + |
14 |
dev-util/catkin/catkin-0.7.0.ebuild | 99 +++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 100 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/catkin/Manifest b/dev-util/catkin/Manifest |
18 |
index eb5a467..f02e164 100644 |
19 |
--- a/dev-util/catkin/Manifest |
20 |
+++ b/dev-util/catkin/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST catkin-0.6.16.tar.gz 199054 SHA256 2cb7efdaecc238a156929861645c5cfd96977a8606fb7765e131304072d1c82c SHA512 907e3545e74e798e76e66cf24fa58ae9385a309a42e251e4871f4bee28026ed05faf50950b0deb8c3e2d234dafa1188031759c3acbc53a31fd35a7e3e29c1ef6 WHIRLPOOL 9c2c5e51e6e6d1d8b47c1b6d1061471de8d34304fb6fe2df19beccd68b6595c591ca3318ba72c0261b11e96c11d58998d180f44749127cec6cf7d5d38a1e9ac3 |
23 |
+DIST catkin-0.7.0.tar.gz 199935 SHA256 253508b40241ceb334eddfd70b0eef791cc0b48fa303ef4968e364c3ebde4d00 SHA512 58823ee3f3bb071c0508f97fc288eefed65cb76aa72e69a18e4a1c493f092e7e1cefd2af4836edf276740118f83429c3f44ad1e91ab51afdd6c20ae9eb21a6e1 WHIRLPOOL 673efad52e115b3c96e56453081d90bf435515fa3cf2c5e646b6fefecf3ff0a31499c3132c3b292b424baeb41892af71b112cde6054567aacb4184b5bb9c4100 |
24 |
|
25 |
diff --git a/dev-util/catkin/catkin-0.7.0.ebuild b/dev-util/catkin/catkin-0.7.0.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..f9a32a8 |
28 |
--- /dev/null |
29 |
+++ b/dev-util/catkin/catkin-0.7.0.ebuild |
30 |
@@ -0,0 +1,99 @@ |
31 |
+# Copyright 1999-2014 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=5 |
36 |
+ |
37 |
+SCM="" |
38 |
+if [ "${PV#9999}" != "${PV}" ] ; then |
39 |
+ SCM="git-r3" |
40 |
+ EGIT_REPO_URI="http://github.com/ros/catkin" |
41 |
+fi |
42 |
+ |
43 |
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) |
44 |
+ |
45 |
+inherit ${SCM} cmake-utils python-r1 python-utils-r1 |
46 |
+ |
47 |
+DESCRIPTION="Cmake macros and associated python code used to build some parts of ROS" |
48 |
+HOMEPAGE="http://wiki.ros.org/catkin" |
49 |
+if [ "${PV#9999}" != "${PV}" ] ; then |
50 |
+ SRC_URI="" |
51 |
+ KEYWORDS="" |
52 |
+else |
53 |
+ SRC_URI="http://github.com/ros/catkin/archive/${PV}.tar.gz -> ${P}.tar.gz" |
54 |
+ KEYWORDS="~amd64 ~arm" |
55 |
+fi |
56 |
+ |
57 |
+LICENSE="BSD" |
58 |
+SLOT="0" |
59 |
+IUSE="test" |
60 |
+ |
61 |
+RDEPEND=" |
62 |
+ dev-python/catkin_pkg[${PYTHON_USEDEP}] |
63 |
+ dev-python/empy[${PYTHON_USEDEP}] |
64 |
+" |
65 |
+DEPEND="${RDEPEND} |
66 |
+ test? ( dev-python/nose[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] )" |
67 |
+ |
68 |
+PATCHES=( |
69 |
+ "${FILESDIR}/tests.patch" |
70 |
+ "${FILESDIR}/distutils.patch" |
71 |
+ "${FILESDIR}/catkin_prefix_path.patch" |
72 |
+ "${FILESDIR}/gnuinstalldirs.patch" |
73 |
+) |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ # fix libdir |
77 |
+ sed -i \ |
78 |
+ -e 's:LIBEXEC_DESTINATION lib:LIBEXEC_DESTINATION libexec:' \ |
79 |
+ -e 's:}/lib:}/${CMAKE_INSTALL_LIBDIR}:' \ |
80 |
+ -e 's:DESTINATION lib):DESTINATION ${CMAKE_INSTALL_LIBDIR}):' \ |
81 |
+ -e 's:DESTINATION lib/:DESTINATION ${CMAKE_INSTALL_LIBDIR}/:' \ |
82 |
+ -e 's:PYTHON_INSTALL_DIR lib:PYTHON_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}:' \ |
83 |
+ cmake/*.cmake || die |
84 |
+ cmake-utils_src_prepare |
85 |
+} |
86 |
+ |
87 |
+catkin_src_configure_internal() { |
88 |
+ mycmakeargs+=( -DPYTHON_EXECUTABLE="${PYTHON}" ) |
89 |
+ python_export PYTHON_SCRIPTDIR |
90 |
+ cmake-utils_src_configure |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ local mycmakeargs=( |
95 |
+ "$(cmake-utils_use test CATKIN_ENABLE_TESTING)" |
96 |
+ "-DCATKIN_BUILD_BINARY_PACKAGE=ON" |
97 |
+ ) |
98 |
+ python_foreach_impl catkin_src_configure_internal |
99 |
+} |
100 |
+ |
101 |
+src_compile() { |
102 |
+ python_foreach_impl cmake-utils_src_compile |
103 |
+} |
104 |
+ |
105 |
+src_test() { |
106 |
+ unset PYTHON_SCRIPTDIR |
107 |
+ python_foreach_impl cmake-utils_src_test |
108 |
+} |
109 |
+ |
110 |
+catkin_src_install_internal() { |
111 |
+ python_export PYTHON_SCRIPTDIR |
112 |
+ cmake-utils_src_install |
113 |
+ if [ ! -f "${T}/.catkin_python_symlinks_generated" ]; then |
114 |
+ dodir /usr/bin |
115 |
+ for i in "${D}/${PYTHON_SCRIPTDIR}"/* ; do |
116 |
+ dosym ../lib/python-exec/python-exec2 "/usr/bin/${i##*/}" || die |
117 |
+ done |
118 |
+ touch "${T}/.catkin_python_symlinks_generated" |
119 |
+ fi |
120 |
+} |
121 |
+ |
122 |
+src_install() { |
123 |
+ python_foreach_impl catkin_src_install_internal |
124 |
+ |
125 |
+ doenvd "${FILESDIR}/40catkin" |
126 |
+ |
127 |
+ # needed to be considered as a workspace |
128 |
+ touch "${ED}/usr/.catkin" |
129 |
+} |