Factor out common elements from plasma recipes

This commit is contained in:
Volker Krause
2018-01-07 16:40:52 +01:00
parent ac97f4e906
commit db7b4adcf3
12 changed files with 53 additions and 124 deletions

View File

@@ -0,0 +1,34 @@
inherit cmake_qt5
inherit gettext
inherit python3native
EXTRA_OECMAKE += " \
-DBUILD_TESTING=OFF \
"
DEPENDS += " \
extra-cmake-modules \
qtbase \
"
FILES_${PN} += " \
${libdir}/kconf_update_bin/* \
${libdir}/plugins/*.so \
${libdir}/plugins/*/*.so \
${libdir}/plugins/*/*/*.so \
${datadir}/config.kcfg/*.kcfg \
${datadir}/dbus-1/services/*.service \
${datadir}/kconf_update/*.upd \
${datadir}/knotifications5/*.notifyrc \
${datadir}/kservices5/*.desktop \
${datadir}/kservices5/*.protocol \
${datadir}/kservicetypes5/*.desktop \
${datadir}/polkit-1/actions/*.policy \
"
FILES_${PN}-dev += " \
${datadir}/dbus-1/interfaces/*.xml \
${datadir}/kdevappwizard/templates/*.tar.bz2 \
${libdir}/cmake/*/*.cmake \
${prefix}/mkspecs/modules/qt_*.pri \
"

View File

@@ -5,8 +5,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24"
PR = "r0" PR = "r0"
DEPENDS = " \ DEPENDS = " \
qtbase \
extra-cmake-modules \
kcmutils \ kcmutils \
kconfigwidgets \ kconfigwidgets \
kcoreaddons \ kcoreaddons \
@@ -19,29 +17,18 @@ DEPENDS = " \
" "
SRC_URI = " \ SRC_URI = " \
git://anongit.kde.org/breeze;nobranch=1 \ git://anongit.kde.org/${BPN};nobranch=1 \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit cmake_qt5 inherit cmake_plasma
inherit gettext
inherit python3native
FILES_${PN} += " \ FILES_${PN} += " \
${libdir}/kconf_update_bin/* \
${libdir}/plugins/*.so \
${libdir}/plugins/*/*.so \
${libdir}/qml/QtQuick/Controls/Styles \ ${libdir}/qml/QtQuick/Controls/Styles \
${datadir}/kstyle/themes \ ${datadir}/kstyle/themes \
${datadir}/kservices5/*.desktop \
${datadir}/plasma/look-and-feel \ ${datadir}/plasma/look-and-feel \
${datadir}/color-schemes \ ${datadir}/color-schemes \
${datadir}/icons \ ${datadir}/icons \
${datadir}/kconf_update/*.upd \
${datadir}/QtCurve/*.qtcurve \ ${datadir}/QtCurve/*.qtcurve \
${datadir}/wallpapers \ ${datadir}/wallpapers \
" "
FILES_${PN}-dev += " \
${libdir}/cmake/Breeze/*.cmake \
"

View File

@@ -6,8 +6,6 @@ PR = "r0"
DEPENDS = " \ DEPENDS = " \
boost \ boost \
qtbase \
extra-cmake-modules \
\ \
kconfig \ kconfig \
kcoreaddons \ kcoreaddons \
@@ -20,13 +18,11 @@ DEPENDS = " \
" "
SRC_URI = " \ SRC_URI = " \
git://anongit.kde.org/kactivitymanagerd;nobranch=1 \ git://anongit.kde.org/${BPN};nobranch=1 \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit cmake_qt5 inherit cmake_plasma
inherit gettext
inherit python3native
CXXFLAGS += "-DBOOST_DISABLE_ASSERTS" CXXFLAGS += "-DBOOST_DISABLE_ASSERTS"
@@ -43,9 +39,6 @@ EXTRA_OECMAKE += " \
FILES_${PN} += " \ FILES_${PN} += " \
${libdir}/*.so \ ${libdir}/*.so \
${libdir}/plugins/kactivitymanagerd/1/*.so \
${datadir}/kservices5/*.desktop \
${datadir}/kservicetypes5/*.desktop \
" "
FILES_${PN}-dev = "" FILES_${PN}-dev = ""

View File

@@ -4,18 +4,9 @@ LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
PR = "r0" PR = "r0"
DEPENDS = " \
qtbase \
extra-cmake-modules \
"
SRC_URI = " \ SRC_URI = " \
git://anongit.kde.org/${PN};nobranch=1 \ git://anongit.kde.org/${BPN};nobranch=1 \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit cmake_qt5 inherit cmake_plasma
FILES_${PN}-dev += " \
${libdir}/cmake/KDecoration2/*.cmake \
"

View File

@@ -5,9 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
PR = "r0" PR = "r0"
DEPENDS = " \ DEPENDS = " \
qtbase \
qtdeclarative \ qtdeclarative \
extra-cmake-modules \
kwayland \ kwayland \
kcrash \ kcrash \
kdeclarative \ kdeclarative \
@@ -26,12 +24,12 @@ DEPENDS = " \
" "
SRC_URI = " \ SRC_URI = " \
git://git.kde.org/${PN};nobranch=1 \ git://git.kde.org/${BPN};nobranch=1 \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit cmake_qt5 gettext python3native inherit cmake_plasma
do_compile_prepend() { do_compile_prepend() {
# desktoptojson needs to find installed service type files # desktoptojson needs to find installed service type files
@@ -39,17 +37,7 @@ do_compile_prepend() {
} }
FILES_${PN} += " \ FILES_${PN} += " \
${datadir}/kconf_update/* \
${datadir}/knotifications5/*.notifyrc \
${datadir}/kservices5/*.desktop \
${datadir}/ksmserver/screenlocker/org.kde.passworddialog/*.desktop \ ${datadir}/ksmserver/screenlocker/org.kde.passworddialog/*.desktop \
${libdir}/plugins/*.so \
"
FILES_${PN}-dev += " \
${datadir}/dbus-1/interfaces/*.xml \
${libdir}/cmake/KScreenLocker/*.cmake \
${libdir}/cmake/ScreenSaverDBusInterface/*.cmake \
" "
RDEPENDS_${PN} += "perl" RDEPENDS_${PN} += "perl"

View File

@@ -5,8 +5,6 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
PR = "r0" PR = "r0"
DEPENDS = " \ DEPENDS = " \
qtbase \
extra-cmake-modules \
kidletime \ kidletime \
kwindowsystem \ kwindowsystem \
kwayland \ kwayland \
@@ -17,9 +15,4 @@ SRC_URI = " \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit cmake_qt5 inherit cmake_plasma
FILES_${PN} += " \
${libdir}/plugins/kf5/org.kde.kwindowsystem.platforms/*.so \
${libdir}/plugins/kf5/org.kde.kidletime.platforms/*.so \
"

View File

@@ -5,9 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24"
PR = "r0" PR = "r0"
DEPENDS = " \ DEPENDS = " \
qtbase \
qtdeclarative \ qtdeclarative \
extra-cmake-modules \
kconfigwidgets \ kconfigwidgets \
kcrash \ kcrash \
kglobalaccel \ kglobalaccel \
@@ -47,7 +45,7 @@ SRC_URI_append_raspberrypi += " \
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit cmake_qt5 gettext python3native inherit cmake_plasma
do_compile_prepend() { do_compile_prepend() {
# desktoptojson needs to find installed service type files # desktoptojson needs to find installed service type files

View File

@@ -5,27 +5,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
PR = "r0" PR = "r0"
DEPENDS = " \ DEPENDS = " \
qtbase \
qtx11extras \ qtx11extras \
extra-cmake-modules \
kwayland \ kwayland \
" "
SRC_URI = " \ SRC_URI = " \
git://anongit.kde.org/libkscreen;nobranch=1 \ git://anongit.kde.org/${BPN};nobranch=1 \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit cmake_qt5 inherit cmake_plasma
inherit gettext
inherit python3native
FILES_${PN} += " \
${libdir}/plugins/kf5/kscreen/*.so \
${datadir}/dbus-1/services/*.service \
"
FILES_${PN}-dev += " \
${libdir}/cmake/KF5Screen/*.cmake \
${prefix}/mkspecs/modules/qt_*.pri \
"

View File

@@ -5,8 +5,6 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
PR = "r0" PR = "r0"
DEPENDS = " \ DEPENDS = " \
qtbase \
extra-cmake-modules \
kcoreaddons \ kcoreaddons \
kconfig \ kconfig \
ki18n \ ki18n \
@@ -20,21 +18,13 @@ DEPENDS = " \
" "
SRC_URI = " \ SRC_URI = " \
git://anongit.kde.org/libksysguard;nobranch=1 \ git://anongit.kde.org/${BPN};nobranch=1 \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit cmake_qt5 inherit cmake_plasma
inherit gettext
inherit python3native
FILES_${PN} += " \ FILES_${PN} += " \
${datadir}/ksysguard/scripts/* \ ${datadir}/ksysguard/scripts/* \
${datadir}/ksysguard/scripts/*/* \ ${datadir}/ksysguard/scripts/*/* \
${datadir}/dbus-1/system-services/*.service \
${datadir}/polkit-1/actions/*.policy \
"
FILES_${PN}-dev += " \
${libdir}/cmake/KF5SysGuard/*.cmake \
" "

View File

@@ -5,10 +5,8 @@ LIC_FILES_CHKSUM = "file://COPYING.LGPL-3;md5=e6a600fd5e1d9cbde2d983680233ad02"
PR = "r0" PR = "r0"
DEPENDS = " \ DEPENDS = " \
qtbase \
qtx11extras \ qtx11extras \
qtquickcontrols2 \ qtquickcontrols2 \
extra-cmake-modules \
kconfig \ kconfig \
kconfigwidgets \ kconfigwidgets \
ki18n \ ki18n \
@@ -23,17 +21,10 @@ DEPENDS = " \
" "
SRC_URI = " \ SRC_URI = " \
git://anongit.kde.org/plasma-integration;nobranch=1 \ git://anongit.kde.org/${BPN};nobranch=1 \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit cmake_qt5 inherit cmake_plasma
inherit gettext
inherit python3native
FILES_${PN} += " \
${libdir}/plugins/platformthemes/KDEPlasmaPlatformTheme.so \
${datadir}/kconf_update/* \
"
RDEPENDS_${PN} += "perl" RDEPENDS_${PN} += "perl"

View File

@@ -6,7 +6,6 @@ LIC_FILES_CHKSUM = "file://README.md;md5=4b29ea33c047d21253e6e3718dc59f7c"
PR = "r0" PR = "r0"
DEPENDS = " \ DEPENDS = " \
qtbase \
telepathy-qt \ telepathy-qt \
kwayland \ kwayland \
plasma-framework \ plasma-framework \
@@ -14,24 +13,20 @@ DEPENDS = " \
" "
SRC_URI = " \ SRC_URI = " \
git://anongit.kde.org/${PN};nobranch=1 \ git://anongit.kde.org/${BPN};nobranch=1 \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit cmake_qt5 gettext python3native inherit cmake_plasma
FILES_${PN} += " \ FILES_${PN} += " \
${libdir}/plugins/plasma/applets/*.so \
${libdir}/qml/QtQuick/VirtualKeyboard/Styles/Plasma/* \ ${libdir}/qml/QtQuick/VirtualKeyboard/Styles/Plasma/* \
${libdir}/qml/org/kde/plasma/private/mobileshell/* \ ${libdir}/qml/org/kde/plasma/private/mobileshell/* \
${libdir}/qml/org/kde/plasma/private/kpeoplehelper/* \ ${libdir}/qml/org/kde/plasma/private/kpeoplehelper/* \
${datadir}/kpackage/genericqml/org.kde.phone.dialer/* \ ${datadir}/kpackage/genericqml/org.kde.phone.dialer/* \
${datadir}/knotifications5/*.notifyrc \
${datadir}/kservices5/*.desktop \
${datadir}/plasma/shells/org.kde.plasma.phone/* \ ${datadir}/plasma/shells/org.kde.plasma.phone/* \
${datadir}/plasma/plasmoids/* \ ${datadir}/plasma/plasmoids/* \
${datadir}/plasma/look-and-feel/org.kde.plasma.phone/* \ ${datadir}/plasma/look-and-feel/org.kde.plasma.phone/* \
${datadir}/dbus-1/services/*.service \
${datadir}/telepathy/clients/Plasma.Dialer.client \ ${datadir}/telepathy/clients/Plasma.Dialer.client \
${datadir}/kwin/scripts/org.kde.phone.multitasking/* \ ${datadir}/kwin/scripts/org.kde.phone.multitasking/* \
${datadir}/wallpapers/org.kde.plasma.phone.lockers/* \ ${datadir}/wallpapers/org.kde.plasma.phone.lockers/* \

View File

@@ -5,10 +5,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24"
PR = "r0" PR = "r0"
DEPENDS = " \ DEPENDS = " \
qtbase \
qtdeclarative \ qtdeclarative \
baloo \ baloo \
extra-cmake-modules \
karchive-native \ karchive-native \
kcoreaddons \ kcoreaddons \
kcrash \ kcrash \
@@ -45,7 +43,7 @@ SRC_URI = " \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit cmake_qt5 gettext python3native inherit cmake_plasma
EXTRA_OECMAKE += " -DBUILD_xembed-sni-proxy=OFF" EXTRA_OECMAKE += " -DBUILD_xembed-sni-proxy=OFF"
@@ -58,21 +56,9 @@ do_compile_prepend() {
FILES_${PN} += " \ FILES_${PN} += " \
${libdir}/libkdeinit5_*.so \ ${libdir}/libkdeinit5_*.so \
${libdir}/kconf_update_bin/krunnerplugins \
${libdir}/plugins/*.so \
${libdir}/plugins/kpackage/packagestructure/*.so \
${libdir}/plugins/plasma/applets/*.so \
${libdir}/plugins/plasma/dataengine/*.so \
${libdir}/plugins/plasma/packagestructure/*.so \
${libdir}/plugins/phonon_platform/kde.so \
${libdir}/plugins/kf5/kio/*.so \
${libdir}/plugins/kf5/kded/*.so \
${libdir}/qml/org/kde/taskmanager/* \ ${libdir}/qml/org/kde/taskmanager/* \
${libdir}/qml/org/kde/plasma \ ${libdir}/qml/org/kde/plasma \
${datadir}/knotifications5/*.notifyrc \
${datadir}/kstyle/themes/*.themerc \ ${datadir}/kstyle/themes/*.themerc \
${datadir}/kservices5/*.desktop \
${datadir}/kservices5/*.protocol \
${datadir}/ksmserver/themes \ ${datadir}/ksmserver/themes \
${datadir}/ksplash/Themes \ ${datadir}/ksplash/Themes \
${datadir}/kservicetypes5/*.desktop \ ${datadir}/kservicetypes5/*.desktop \
@@ -83,13 +69,10 @@ FILES_${PN} += " \
${datadir}/plasma/wallpapers \ ${datadir}/plasma/wallpapers \
${datadir}/plasma/services/*.operations \ ${datadir}/plasma/services/*.operations \
${datadir}/solid/actions/*.desktop \ ${datadir}/solid/actions/*.desktop \
${datadir}/dbus-1/services/*.service \
${datadir}/sddm/themes \ ${datadir}/sddm/themes \
${datadir}/desktop-directories/*.directory \ ${datadir}/desktop-directories/*.directory \
${datadir}/wayland-sessions/*.desktop \ ${datadir}/wayland-sessions/*.desktop \
${datadir}/kconf_update/*.upd \
${datadir}/xsessions/*.desktop \ ${datadir}/xsessions/*.desktop \
${datadir}/config.kcfg/*.kcfg \
" "
FILES_${PN}-dev = " \ FILES_${PN}-dev = " \