summaryrefslogtreecommitdiff
path: root/media-libs/lensfun/files/lensfun-0.3.4-python-egg.patch
blob: 292a0e4186d57d16140fa4eee7dd7231cbbc1596 (plain)
1
2
3
4
5
6
7
8
9
10
11
https://bugs.gentoo.org/901997
https://sources.debian.org/patches/lensfun/0.3.4-1/python-setuptools.diff/
--- a/apps/CMakeLists.txt
+++ b/apps/CMakeLists.txt
@@ -48,5 +48,5 @@ IF(INSTALL_PYTHON_MODULE)
     IF(NOT DEFINED SETUP_PY_INSTALL_PREFIX)
       SET(SETUP_PY_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
     ENDIF()
-    INSTALL(CODE "execute_process(COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} install --prefix=\$ENV{DESTDIR}${SETUP_PY_INSTALL_PREFIX})")
+    INSTALL(CODE "execute_process(COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} install --prefix=${SETUP_PY_INSTALL_PREFIX} --single-version-externally-managed --root=\$ENV{DESTDIR})")
 ENDIF()