summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2016-04-24 00:22:39 +0200
committerAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2016-04-24 19:30:43 +0200
commitefc6d7c15a5db37be8afc4f678d66f63d7be1e6a (patch)
tree1511cea80919f0d2e3ecc96878703c400db609d1 /eclass
parent708fe196d726520d63a5de530d4ba5fc5385b948 (diff)
downloadkde-efc6d7c15a5db37be8afc4f678d66f63d7be1e6a.tar.gz
kde-efc6d7c15a5db37be8afc4f678d66f63d7be1e6a.tar.bz2
kde-efc6d7c15a5db37be8afc4f678d66f63d7be1e6a.zip
kde5.eclass: Reshuffle kdepim split packaging handling
..into one legacy (16.04) block, keeping kontactplugin stuff for future
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde5.eclass39
1 files changed, 19 insertions, 20 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 8dee37b7340..fb33249847f 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -533,8 +533,9 @@ kde5_src_prepare() {
fi
fi
- # kdepim split packaging handling (drop other applications != {PN})
- if [[ ${KMNAME} = "kdepim" && $(basename "${S}") != ${PN} ]] || [[ ${PN} = "kdepim" ]] ; then
+ # legacy (16.04) kdepim split packaging handling (drop other applications != {PN})
+ if [[ ${KMNAME} = "kdepim" && ${PV} = "16.04*" && $(basename "${S}") != ${PN} ]] || \
+ [[ ${PN} = "kdepim" ]] ; then
# make optional a lot of otherwise required dependencies in root CMakeLists.txt
sed -e "/find_package(KF5/ s/ REQUIRED//" \
-e "/find_package(Qt5 / s/ REQUIRED/ OPTIONAL_COMPONENTS/" \
@@ -547,15 +548,20 @@ kde5_src_prepare() {
-e "/find_package(Grantlee5/ s/ REQUIRED//" \
-i CMakeLists.txt || die "Failed to make dependencies optional"
- # Boost: kdepim (kmail, mailfilteragent)
- # MailTransportDBusService: kdepim (kmail)
- # Phonon4Qt5: kdepim (kalarm, korgac)
if [[ ${PN} != "kdepim" ]] ; then
+ # Boost: kdepim (kmail, mailfilteragent)
+ # MailTransportDBusService: kdepim (kmail)
+ # Phonon4Qt5: kdepim (kalarm, korgac)
sed -e "/find_package(Boost/ s/^/#DONT/" \
-e "/set_package_properties(Boost/ s/^/#DONT/" \
-e "/find_package(MailTransportDBusService/ s/^/#DONT/" \
-e "/find_package(Phonon4Qt5/ s/^/#DONT/" \
-i CMakeLists.txt || die "Failed to disable dependencies"
+
+ # only build select handbook
+ if use_if_iuse handbook && [[ -e doc/CMakeLists.txt ]] ; then
+ echo "add_subdirectory(${PN})" > doc/CMakeLists.txt
+ fi
fi
# remove anything else not listed here
@@ -575,23 +581,16 @@ kde5_src_prepare() {
fi
done
popd > /dev/null || die
-
- # disable build of kontactplugin in kdepim and split kdepim packages
- if ! use_if_iuse kontact ; then
- for x in $(find ./ -name CMakeLists.txt -exec grep -l "add_subdirectory.*kontactplugin" "{}" ";"); do
- einfo "Disabling kontactplugin in: ${x}"
- pushd $(dirname "${x}") > /dev/null || die
- cmake_comment_add_subdirectory kontactplugin
- popd > /dev/null || die
- done
- fi
fi
- # only build select handbook
- if [[ ${KMNAME} = "kdepim" && $(basename "${S}") != ${PN} ]] ; then
- if use_if_iuse handbook && [[ -e doc/CMakeLists.txt ]] ; then
- echo "add_subdirectory(${PN})" > doc/CMakeLists.txt
- fi
+ # disable build of kontactplugin in split kdepim packages
+ if ! use_if_iuse kontact ; then
+ for x in $(find ./ -name CMakeLists.txt -exec grep -l "add_subdirectory.*kontactplugin" "{}" ";"); do
+ einfo "Disabling kontactplugin in: ${x}"
+ pushd $(dirname "${x}") > /dev/null || die
+ cmake_comment_add_subdirectory kontactplugin
+ popd > /dev/null || die
+ done
fi
}