diff options
author | Marshall Brewer (Gentoo Key) <tomboy64@sina.cn> | 2016-04-15 15:15:51 +0200 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2016-04-28 22:12:20 +0800 |
commit | 6a0fc3daa7a8586d24ee3c744c0145eadd6abcf2 (patch) | |
tree | a37d9d3e5db709ce87150e6af6fc8b160f372b51 /dev-python/uranium/files | |
parent | dev-libs/libarcus: initial ebuild, version 1.0.0_pre20160307 (diff) | |
download | gentoo-6a0fc3daa7a8586d24ee3c744c0145eadd6abcf2.tar.gz gentoo-6a0fc3daa7a8586d24ee3c744c0145eadd6abcf2.tar.bz2 gentoo-6a0fc3daa7a8586d24ee3c744c0145eadd6abcf2.zip |
dev-python/uranium: initial ebuild, version 2.1.0_beta
Closes: https://github.com/gentoo/gentoo/pull/1298
Signed-off-by: Ian Delaney <idella4@gentoo.org>
Diffstat (limited to 'dev-python/uranium/files')
-rw-r--r-- | dev-python/uranium/files/uranium-2.1.0_beta-fix-install-paths.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-python/uranium/files/uranium-2.1.0_beta-fix-install-paths.patch b/dev-python/uranium/files/uranium-2.1.0_beta-fix-install-paths.patch new file mode 100644 index 000000000000..a89895c2d506 --- /dev/null +++ b/dev-python/uranium/files/uranium-2.1.0_beta-fix-install-paths.patch @@ -0,0 +1,27 @@ +diff -Naur a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt 2016-04-12 16:28:06.000000000 +0200 ++++ b/CMakeLists.txt 2016-04-16 12:34:29.241397806 +0200 +@@ -67,12 +67,18 @@ + install(DIRECTORY ${CMAKE_BINARY_DIR}/resources DESTINATION ${CMAKE_INSTALL_DATADIR}/uranium/) + endif() + +-if(APPLE OR WIN32) +- install(DIRECTORY UM DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) +-else() +- install(DIRECTORY UM DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages) ++if(NOT PYTHON_SITE_PACKAGES_DIR) ++ if(APPLE OR WIN32) ++ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages CACHE ++ STRING "Directory to install Python bindings to") ++ else() ++ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}/dist-packages CACHE ++ STRING "Directory to install Python bindings to") ++ endif() + endif() ++ ++install(DIRECTORY UM DESTINATION ${PYTHON_SITE_PACKAGES_DIR}) + install(DIRECTORY resources DESTINATION ${CMAKE_INSTALL_DATADIR}/uranium) +-install(DIRECTORY plugins DESTINATION lib/uranium) ++install(DIRECTORY plugins DESTINATION ${CMAKE_INSTALL_LIBDIR}/uranium) + + include(CPackConfig.cmake) |