summaryrefslogtreecommitdiff
path: root/app-admin/calamares/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-05-31 18:26:42 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-05-31 18:26:42 +0100
commit8b6bc709ee891419e5a22a2c043c500c7baf87d1 (patch)
treec8f0b4dc13352e370745d239ad1590c8abeae883 /app-admin/calamares/files
parent2aec2a8294d73ab571385ba896fc34d671e3f128 (diff)
patch CMakeLists.txt for cmake to find python3 boost libs, dep fixes
Diffstat (limited to 'app-admin/calamares/files')
-rw-r--r--app-admin/calamares/files/cmake-find-gentoo-python3-boost-libs.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/app-admin/calamares/files/cmake-find-gentoo-python3-boost-libs.patch b/app-admin/calamares/files/cmake-find-gentoo-python3-boost-libs.patch
new file mode 100644
index 00000000..1756b02f
--- /dev/null
+++ b/app-admin/calamares/files/cmake-find-gentoo-python3-boost-libs.patch
@@ -0,0 +1,44 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 774d301..afd4f80 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -33,34 +33,13 @@ find_package( Qt5 ${QT_VERSION} CONFIG REQUIRED Core Gui Widgets LinguistTools S
+ find_package( YamlCpp 0.5.1 REQUIRED )
+ find_package( PolkitQt5-1 REQUIRED )
+
+-option( WITH_PYTHON "Enable Python modules support." ON )
+-
+-macro_optional_find_package( PythonLibs 3.3 )
+-macro_log_feature(
+- PYTHONLIBS_FOUND
+- "Python"
+- "C interface libraries for the Python 3 interpreter."
+- "http://python.org"
+- FALSE "3.3"
+- "Python 3 is used for some Calamares job modules."
+-)
++find_package( PythonLibs 3.3 REQUIRED )
++include_directories( ${PYTHON_INCLUDE_DIRS} )
+
+-if ( PYTHONLIBS_FOUND )
+- include( BoostPython3 )
+- find_boost_python3( 1.54.0 ${PYTHONLIBS_VERSION_STRING} CALAMARES_BOOST_PYTHON3_FOUND )
+- macro_log_feature(
+- CALAMARES_BOOST_PYTHON3_FOUND
+- "Boost.Python"
+- "A C++ library which enables seamless interoperability between C++ and Python 3."
+- "http://www.boost.org"
+- FALSE "1.54.0"
+- "Boost.Python is used for interfacing with Calamares job modules written in Python 3."
+- )
+-endif()
++find_package( Boost COMPONENTS python REQUIRED )
++include_directories( ${Boost_INCLUDE_DIR})
+
+-if ( PYTHONLIBS_NOTFOUND OR NOT CALAMARES_BOOST_PYTHON3_FOUND )
+- set( WITH_PYTHON OFF )
+-endif()
++option( WITH_PYTHON "Enable Python modules support." ON )
+
+ ###
+ ### Calamares application info