mirror of
https://invent.kde.org/packaging/yocto-meta-kf5.git
synced 2026-01-29 21:08:43 +01:00
Add KJS recipe
While obsolete, it's still needed (indirectly) by Plasma.
This commit is contained in:
26
recipes-kf5/obsolete/kjs.inc
Normal file
26
recipes-kf5/obsolete/kjs.inc
Normal file
@@ -0,0 +1,26 @@
|
||||
DESCRIPTION = "KJS"
|
||||
HOMEPAGE = "https://api.kde.org/frameworks/kjs/html/index.html"
|
||||
LICENSE = "LGPL-2.1"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
|
||||
"
|
||||
PR = "r0"
|
||||
|
||||
DEPENDS = "qtbase kjs-native pcre"
|
||||
|
||||
SRC_URI = " \
|
||||
git://anongit.kde.org/kjs;nobranch=1 \
|
||||
file://0001-optional-kdoctools.patch \
|
||||
"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake_kf5
|
||||
inherit perlnative
|
||||
|
||||
sysroot_stage_all_append_class-native () {
|
||||
mkdir -p ${SYSROOT_DESTDIR}/${bindir}
|
||||
cp ${B}/bin/icemaker ${SYSROOT_DESTDIR}/${bindir}
|
||||
}
|
||||
|
||||
FILES_${PN}-dev += " \
|
||||
${datadir}/kf5/kjs/create_hash_table \
|
||||
"
|
||||
31
recipes-kf5/obsolete/kjs/0001-optional-kdoctools.patch
Normal file
31
recipes-kf5/obsolete/kjs/0001-optional-kdoctools.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index b3b319b..3f015c1 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -51,12 +51,14 @@ option(KJS_FORCE_DISABLE_PCRE "Force building of KJS without PCRE. Doing this wi
|
||||
# TODO: Remove these
|
||||
remove_definitions(-DQT_NO_CAST_FROM_ASCII)
|
||||
|
||||
-find_package(KF5DocTools ${KF5_DEP_VERSION} REQUIRED)
|
||||
+find_package(KF5DocTools ${KF5_DEP_VERSION})
|
||||
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(autotests)
|
||||
add_subdirectory(tests)
|
||||
-add_subdirectory(docs)
|
||||
+if(KF5DocTools_FOUND)
|
||||
+ add_subdirectory(docs)
|
||||
+endif()
|
||||
|
||||
# create a Config.cmake and a ConfigVersion.cmake file and install them
|
||||
set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5JS")
|
||||
@@ -77,6 +79,8 @@ install(EXPORT KF5JSTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE KF5JST
|
||||
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kjs_version.h DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel )
|
||||
|
||||
-kdoctools_install(po)
|
||||
+if(KF5DocTools_FOUND)
|
||||
+ kdoctools_install(po)
|
||||
+endif()
|
||||
|
||||
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||
2
recipes-kf5/obsolete/kjs_5.41.0.bb
Normal file
2
recipes-kf5/obsolete/kjs_5.41.0.bb
Normal file
@@ -0,0 +1,2 @@
|
||||
require ${PN}.inc
|
||||
SRCREV = "v${PV}"
|
||||
@@ -68,4 +68,6 @@ RDEPENDS_${PN} = " \
|
||||
kxmlrpcclient \
|
||||
plasma-framework \
|
||||
qqc2-desktop-style \
|
||||
\
|
||||
kjs \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user