From c119419dd991fe1d01a582ece0675bc083d01805 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 31 May 2015 15:10:45 +0100 Subject: use python-r1 eclass to pull required python deps for calamares --- app-admin/calamares/calamares-999.ebuild | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'app-admin') diff --git a/app-admin/calamares/calamares-999.ebuild b/app-admin/calamares/calamares-999.ebuild index a4ac0eef..1a16ef56 100644 --- a/app-admin/calamares/calamares-999.ebuild +++ b/app-admin/calamares/calamares-999.ebuild @@ -3,8 +3,9 @@ # $Header: $ EAPI=5 +PYTHON_COMPAT=( python{3_3,3_4} ) -inherit eutils cmake-utils git-2 +inherit eutils cmake-utils python-r1 git-2 EGIT_BRANCH="kogaion" EGIT_COMMIT="5805b67793b6fb2c38da66d7bb9c88e35bb528a2" @@ -28,8 +29,6 @@ DEPEND="dev-vcs/git >=dev-qt/qtsvg-5.4.0:5 >=dev-qt/qtwidgets-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 @@ -39,8 +38,6 @@ RDEPEND=">=dev-qt/qtcore-5.4.0:5 >=dev-qt/qtwidgets-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 -- cgit v1.2.3 From dfc5f0f2dcca6a06202e3f00fbc35bcbbbb68614 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 31 May 2015 15:37:58 +0100 Subject: more dep fixes for calamares --- app-admin/calamares/calamares-999.ebuild | 1 + 1 file changed, 1 insertion(+) (limited to 'app-admin') diff --git a/app-admin/calamares/calamares-999.ebuild b/app-admin/calamares/calamares-999.ebuild index 1a16ef56..22d65fa1 100644 --- a/app-admin/calamares/calamares-999.ebuild +++ b/app-admin/calamares/calamares-999.ebuild @@ -29,6 +29,7 @@ DEPEND="dev-vcs/git >=dev-qt/qtsvg-5.4.0:5 >=dev-qt/qtwidgets-5.4.0:5 >=dev-cpp/yaml-cpp-0.5.1 + >=dev-libs/libatasmart-0.19 >=kde-frameworks/extra-cmake-modules-5.10.0" RDEPEND=">=dev-qt/qtcore-5.4.0:5 -- cgit v1.2.3 From 2aec2a8294d73ab571385ba896fc34d671e3f128 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 31 May 2015 15:44:47 +0100 Subject: final round of dep fixes...i hope --- app-admin/calamares/calamares-999.ebuild | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app-admin') diff --git a/app-admin/calamares/calamares-999.ebuild b/app-admin/calamares/calamares-999.ebuild index 22d65fa1..512373e6 100644 --- a/app-admin/calamares/calamares-999.ebuild +++ b/app-admin/calamares/calamares-999.ebuild @@ -27,6 +27,11 @@ DEPEND="dev-vcs/git >=dev-qt/qtdbus-5.4.0:5 >=dev-qt/qtgui-5.4.0:5 >=dev-qt/qtsvg-5.4.0:5 + >=dev-qt/designer-5.4.0:5 + >=dev-qt/qtopengl-5.4.0:5 + >=dev-qt/qtwebkit-5.4.0:5 + >=dev-qt/qtscript-5.4.0:5 + >=dev-qt/qtprintsupport-5.4.0:5 >=dev-qt/qtwidgets-5.4.0:5 >=dev-cpp/yaml-cpp-0.5.1 >=dev-libs/libatasmart-0.19 @@ -36,6 +41,11 @@ RDEPEND=">=dev-qt/qtcore-5.4.0:5 >=dev-qt/qtdbus-5.4.0:5 >=dev-qt/qtgui-5.4.0:5 >=dev-qt/qtsvg-5.4.0:5 + >=dev-qt/designer-5.4.0:5 + >=dev-qt/qtopengl-5.4.0:5 + >=dev-qt/qtwebkit-5.4.0:5 + >=dev-qt/qtscript-5.4.0:5 + >=dev-qt/qtprintsupport-5.4.0:5 >=dev-qt/qtwidgets-5.4.0:5 >=dev-cpp/yaml-cpp-0.5.1 >=dev-libs/libatasmart-0.19 -- cgit v1.2.3 From 8b6bc709ee891419e5a22a2c043c500c7baf87d1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 31 May 2015 18:26:42 +0100 Subject: patch CMakeLists.txt for cmake to find python3 boost libs, dep fixes --- app-admin/calamares/calamares-999.ebuild | 44 ++++++++++++---------- .../cmake-find-gentoo-python3-boost-libs.patch | 44 ++++++++++++++++++++++ 2 files changed, 69 insertions(+), 19 deletions(-) create mode 100644 app-admin/calamares/files/cmake-find-gentoo-python3-boost-libs.patch (limited to 'app-admin') diff --git a/app-admin/calamares/calamares-999.ebuild b/app-admin/calamares/calamares-999.ebuild index 512373e6..9007b142 100644 --- a/app-admin/calamares/calamares-999.ebuild +++ b/app-admin/calamares/calamares-999.ebuild @@ -3,7 +3,7 @@ # $Header: $ EAPI=5 -PYTHON_COMPAT=( python{3_3,3_4} ) +PYTHON_COMPAT=( python3_3 ) inherit eutils cmake-utils python-r1 git-2 @@ -23,30 +23,41 @@ 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/qtsvg-5.4.0:5 - >=dev-qt/designer-5.4.0:5 + >=dev-qt/qtnetwork-5.4.0:5 >=dev-qt/qtopengl-5.4.0:5 - >=dev-qt/qtwebkit-5.4.0:5 - >=dev-qt/qtscript-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 >=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/qtsvg-5.4.0:5 - >=dev-qt/designer-5.4.0:5 + >=dev-qt/qtnetwork-5.4.0:5 >=dev-qt/qtopengl-5.4.0:5 - >=dev-qt/qtwebkit-5.4.0:5 - >=dev-qt/qtscript-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 >=kde-frameworks/kconfig-5.10.0 @@ -60,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 @@ -67,11 +81,3 @@ src_prepare() { git submodule init git submodule update } - -src_compile() { - einfo "more work in progress" -} - -src_install() { - einfo "much more work in progress" -} 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 -- cgit v1.2.3 From 9c23ddd3325c18fbff51712ec4c5d90ac4280e76 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 31 May 2015 20:23:10 +0100 Subject: our new installer is pretty much ready...it builds, it starts, our branding is in place...from now on, only fine tuning --- app-admin/calamares/calamares-999.ebuild | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'app-admin') diff --git a/app-admin/calamares/calamares-999.ebuild b/app-admin/calamares/calamares-999.ebuild index 9007b142..caf56855 100644 --- a/app-admin/calamares/calamares-999.ebuild +++ b/app-admin/calamares/calamares-999.ebuild @@ -8,11 +8,11 @@ PYTHON_COMPAT=( python3_3 ) inherit eutils cmake-utils python-r1 git-2 EGIT_BRANCH="kogaion" -EGIT_COMMIT="5805b67793b6fb2c38da66d7bb9c88e35bb528a2" +EGIT_COMMIT="d27bbed1d2168b9c96d14d4a2a4c3612fddf7325" 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" @@ -81,3 +81,10 @@ src_prepare() { git submodule init git submodule update } + +src_configure() { + local mycmakeargs=( + -DWITH_PARTITIONMANAGER=1 + ) + cmake-utils_src_configure +} -- cgit v1.2.3 From 3a848410106b7fa86551a9eea4eadc2c7a3c1089 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 31 May 2015 21:12:53 +0100 Subject: bump calamares ebuild to latest git revision --- app-admin/calamares/calamares-999.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app-admin') diff --git a/app-admin/calamares/calamares-999.ebuild b/app-admin/calamares/calamares-999.ebuild index caf56855..1126db0d 100644 --- a/app-admin/calamares/calamares-999.ebuild +++ b/app-admin/calamares/calamares-999.ebuild @@ -8,7 +8,7 @@ PYTHON_COMPAT=( python3_3 ) inherit eutils cmake-utils python-r1 git-2 EGIT_BRANCH="kogaion" -EGIT_COMMIT="d27bbed1d2168b9c96d14d4a2a4c3612fddf7325" +EGIT_COMMIT="9dfd57bb217514e696bb00715effac1a390f38ff" EGIT_REPO_URI="https://gitlab.com/rogentos/calamares.git https://github.com/Rogentos/calamares.git" -- cgit v1.2.3