diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2015-06-01 09:29:39 +0300 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2015-06-01 09:29:39 +0300 |
commit | 2ac9951255deef1b3b5ddcde3cbf9ffc425c38db (patch) | |
tree | f0ce5053064df5cc379b03394c7e1aad9aeca9de /app-admin | |
parent | 604043c7015fbe22fd52a2e1ae5cf69be2b5c020 (diff) | |
parent | 3a848410106b7fa86551a9eea4eadc2c7a3c1089 (diff) |
Merge remote-tracking branch 'venerix/master'
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/calamares/calamares-999.ebuild | 49 | ||||
-rw-r--r-- | app-admin/calamares/files/cmake-find-gentoo-python3-boost-libs.patch | 44 |
2 files changed, 79 insertions, 14 deletions
diff --git a/app-admin/calamares/calamares-999.ebuild b/app-admin/calamares/calamares-999.ebuild index a4ac0eef..1126db0d 100644 --- a/app-admin/calamares/calamares-999.ebuild +++ b/app-admin/calamares/calamares-999.ebuild @@ -3,15 +3,16 @@ # $Header: $ EAPI=5 +PYTHON_COMPAT=( python3_3 ) -inherit eutils cmake-utils git-2 +inherit eutils cmake-utils python-r1 git-2 EGIT_BRANCH="kogaion" -EGIT_COMMIT="5805b67793b6fb2c38da66d7bb9c88e35bb528a2" +EGIT_COMMIT="9dfd57bb217514e696bb00715effac1a390f38ff" EGIT_REPO_URI="https://gitlab.com/rogentos/calamares.git https://github.com/Rogentos/calamares.git" -DESCRIPTION="Distribution-independent installer framework ( with Kogaionn/Sabayon support)" +DESCRIPTION="Distribution-independent installer framework ( with Kogaion/Sabayon support)" HOMEPAGE="http://calamares.io" LICENSE="GPL-3" @@ -22,25 +23,43 @@ IUSE="" S="${WORKDIR}/${PN}-${PV}" DEPEND="dev-vcs/git + >=dev-qt/designer-5.4.0:5 + >=dev-qt/linguist-tools-5.4.0:5 + >=dev-qt/qtconcurrent-5.4.0:5 >=dev-qt/qtcore-5.4.0:5 >=dev-qt/qtdbus-5.4.0:5 + >=dev-qt/qtdeclarative-5.4.0:5 >=dev-qt/qtgui-5.4.0:5 + >=dev-qt/qtnetwork-5.4.0:5 + >=dev-qt/qtopengl-5.4.0:5 + >=dev-qt/qtprintsupport-5.4.0:5 + >=dev-qt/qtscript-5.4.0:5 >=dev-qt/qtsvg-5.4.0:5 + >=dev-qt/qttest-5.4.0:5 >=dev-qt/qtwidgets-5.4.0:5 + >=dev-qt/qtxml-5.4.0:5 + >=dev-qt/qtxmlpatterns-5.4.0:5 >=dev-cpp/yaml-cpp-0.5.1 - dev-lang/python:3.3 - dev-libs/boost[python_targets_python3_3] >=kde-frameworks/extra-cmake-modules-5.10.0" -RDEPEND=">=dev-qt/qtcore-5.4.0:5 +RDEPEND=">=dev-qt/designer-5.4.0:5 + >=dev-qt/linguist-tools-5.4.0:5 + >=dev-qt/qtconcurrent-5.4.0:5 + >=dev-qt/qtcore-5.4.0:5 >=dev-qt/qtdbus-5.4.0:5 + >=dev-qt/qtdeclarative-5.4.0:5 >=dev-qt/qtgui-5.4.0:5 + >=dev-qt/qtnetwork-5.4.0:5 + >=dev-qt/qtopengl-5.4.0:5 + >=dev-qt/qtprintsupport-5.4.0:5 + >=dev-qt/qtscript-5.4.0:5 >=dev-qt/qtsvg-5.4.0:5 + >=dev-qt/qttest-5.4.0:5 >=dev-qt/qtwidgets-5.4.0:5 + >=dev-qt/qtxml-5.4.0:5 + >=dev-qt/qtxmlpatterns-5.4.0:5 >=dev-cpp/yaml-cpp-0.5.1 >=dev-libs/libatasmart-0.19 - dev-lang/python:3.3 - dev-libs/boost[python_targets_python3_3] >=kde-frameworks/kconfig-5.10.0 >=kde-frameworks/ki18n-5.10.0 >=kde-frameworks/kcoreaddons-5.10.0 @@ -52,6 +71,9 @@ RDEPEND=">=dev-qt/qtcore-5.4.0:5 virtual/udev[systemd]" src_prepare() { + # cmake cannot find python3 boost libs on gentoo, but with a little help it will + epatch "${FILESDIR}/cmake-find-gentoo-python3-boost-libs.patch" + # If qtchooser is installed, it may break the build, because moc,rcc and uic binaries for wrong qt version may be used. # Setting QT_SELECT environment variable will enforce correct binaries (fix taken from vlc ebuild) export QT_SELECT=qt5 @@ -60,10 +82,9 @@ src_prepare() { git submodule update } -src_compile() { - einfo "more work in progress" -} - -src_install() { - einfo "much more work in progress" +src_configure() { + local mycmakeargs=( + -DWITH_PARTITIONMANAGER=1 + ) + cmake-utils_src_configure } 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 |