Added class to patch cmake-files before do_install

This commit is contained in:
Johan Thelin
2014-07-28 14:45:49 +02:00
committed by Volker Krause
parent e950dc6fdb
commit b5cafb1520
19 changed files with 28 additions and 18 deletions

10
classes/cmake_kf5.bbclass Normal file
View File

@@ -0,0 +1,10 @@
inherit cmake_qt5
EXTRA_OECMAKE += " \
-DOE_KF5_PATH_HOST_ROOT=${STAGING_DIR_HOST}"
# This function is rather offensive right now, but it seems to work
do_install_prepend() {
sed -i 's/\"\/usr\//\"\$\{OE_KF5_PATH_HOST_ROOT\}\/usr\//g' $(find . -name "*.cmake" | grep _usr)
sed -i 's/\;\/usr\//\;\$\{OE_KF5_PATH_HOST_ROOT\}\/usr\//g' $(find . -name "*.cmake" | grep _usr)
}

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/attica"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5Attica/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "ecm zlib bzip2 xz qtbase"
GIT_REPO = "git://anongit.kde.org/karchive;protocol=git"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5Archive/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/kcodecs"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5Codecs/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/kcoreaddons"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5CoreAddons/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/kdbusaddons"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5DBusAddons/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/kdnssd"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5DNSSD/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase qtx11extras"
GIT_REPO = "git://anongit.kde.org/kglobalaccel"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5GlobalAccel/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/kguiaddons"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5GuiAddons/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase qtscript"
GIT_REPO = "git://anongit.kde.org/ki18n"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
inherit perlnative
FILES_${PN}-dev += " \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/kidletime"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5IdleTime/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/kimageformats"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5ImageFormats/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/kitemmodels"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5ItemModels/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/kitemviews"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5ItemViews/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/kplotting"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5Plotting/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/kwidgetsaddons"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5WidgetsAddons/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/kwindowsystem"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5WindowSystem/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/solid"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5Solid/*.cmake \

View File

@@ -10,7 +10,7 @@ DEPENDS = "qtbase"
GIT_REPO = "git://anongit.kde.org/threadweaver"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5ThreadWeaver/*.cmake \