summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2020-06-04 15:07:10 +0200
committerAlexis Ballier <aballier@gentoo.org>2020-06-04 15:08:02 +0200
commit022f150b8d86abac12c77f73ac86e88b3d813f36 (patch)
treeb0c856bd95ea640c1d37804891753994a6d7ec91 /dev-util/catkin/files
parentdev-python/pygtk: Drop 2.24.0-r4 (diff)
downloadgentoo-022f150b8d86abac12c77f73ac86e88b3d813f36.tar.gz
gentoo-022f150b8d86abac12c77f73ac86e88b3d813f36.tar.bz2
gentoo-022f150b8d86abac12c77f73ac86e88b3d813f36.zip
dev-util/catkin: fix python script install.
Closes: https://bugs.gentoo.org/726414 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-util/catkin/files')
-rw-r--r--dev-util/catkin/files/distutils-v2.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-util/catkin/files/distutils-v2.patch b/dev-util/catkin/files/distutils-v2.patch
new file mode 100644
index 000000000000..cb3aab220b05
--- /dev/null
+++ b/dev-util/catkin/files/distutils-v2.patch
@@ -0,0 +1,13 @@
+Allow to install scripts in PYTHON_SCRIPTDIR.
+Needed for Gentoo multi-python support.
+
+Index: catkin-0.8.3/cmake/templates/python_distutils_install.sh.in
+===================================================================
+--- catkin-0.8.3.orig/cmake/templates/python_distutils_install.sh.in
++++ catkin-0.8.3/cmake/templates/python_distutils_install.sh.in
+@@ -30,4 +30,4 @@ echo_and_run /usr/bin/env \
+ build --build-base "@CMAKE_CURRENT_BINARY_DIR@" \
+ install \
+ --root="${DESTDIR-/}" \
+- @SETUPTOOLS_ARG_EXTRA@ --prefix="@CMAKE_INSTALL_PREFIX@" --install-scripts="@CMAKE_INSTALL_PREFIX@/@CATKIN_GLOBAL_BIN_DESTINATION@"
++ @SETUPTOOLS_ARG_EXTRA@ --prefix="@CMAKE_INSTALL_PREFIX@" --install-scripts="${PYTHON_SCRIPTDIR:-@CMAKE_INSTALL_PREFIX@/@CATKIN_GLOBAL_BIN_DESTINATION@}"