From d1b50f14bc4ad309d174779c5dcb0d29b6aa0122 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Mon, 1 Jan 2018 20:56:21 +0100 Subject: [PATCH] Add kdoctools recipe --- recipes-kf5/packagegroups/kde-frameworks5.bb | 1 + recipes-kf5/tier2/kdoctools.inc | 52 ++++++++++++++++++++ recipes-kf5/tier2/kdoctools_5.41.0.bb | 2 + 3 files changed, 55 insertions(+) create mode 100644 recipes-kf5/tier2/kdoctools.inc create mode 100644 recipes-kf5/tier2/kdoctools_5.41.0.bb diff --git a/recipes-kf5/packagegroups/kde-frameworks5.bb b/recipes-kf5/packagegroups/kde-frameworks5.bb index bf58fba..ca7f509 100644 --- a/recipes-kf5/packagegroups/kde-frameworks5.bb +++ b/recipes-kf5/packagegroups/kde-frameworks5.bb @@ -37,6 +37,7 @@ RDEPENDS_${PN} = " \ kactivities \ kauth \ kcrash \ + kdoctools \ kfilemetadata \ kjobwidgets \ knotifications \ diff --git a/recipes-kf5/tier2/kdoctools.inc b/recipes-kf5/tier2/kdoctools.inc new file mode 100644 index 0000000..f113954 --- /dev/null +++ b/recipes-kf5/tier2/kdoctools.inc @@ -0,0 +1,52 @@ +DESCRIPTION = "KDocTools" +HOMEPAGE = "https://api.kde.org/frameworks/kdoctools/html/index.html" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ + " +PR = "r0" + +DEPENDS = " \ + karchive \ + ki18n \ + libxslt \ + libxml2 \ + libxml2-native \ + docbook-xml-dtd4 \ + docbook-xsl-stylesheets \ + liburi-perl-native \ + kdoctools-native \ +" + +SRC_URI = " \ + git://anongit.kde.org/kdoctools;nobranch=1 \ +" +S = "${WORKDIR}/git" + +inherit cmake_kf5 +inherit gettext +inherit python3native +inherit perlnative + +EXTRA_OECMAKE_class-target += " \ + -DMEINPROC5_EXECUTABLE=${STAGING_DIR_NATIVE}/${bindir}/meinproc5 \ + -DDOCBOOKL10NHELPER_EXECUTABLE=${STAGING_DIR_NATIVE}/${bindir}/docbookl10nhelper \ + -DCHECKXML5_EXECUTABLE=${STAGING_DIR_NATIVE}/${bindir}/checkXML5 \ +" + +sysroot_stage_all_append_class-native () { + mkdir -p ${SYSROOT_DESTDIR}${bindir} + cp ${B}/bin/docbookl10nhelper ${SYSROOT_DESTDIR}${bindir} +} + +sysroot_stage_all_append_class-target () { + mkdir -p ${SYSROOT_DESTDIR}${bindir} + cp ${STAGING_BINDIR_NATIVE}/checkXML5 ${SYSROOT_DESTDIR}${bindir} + cp ${STAGING_BINDIR_NATIVE}/meinproc5 ${SYSROOT_DESTDIR}${bindir} +} + + +FILES_${PN} += " \ + ${datadir}/kf5/kdoctools/customization/* \ + ${datadir}/kf5/kdoctools/customization/*/* \ + ${datadir}/kf5/kdoctools/customization/*/*/* \ +" diff --git a/recipes-kf5/tier2/kdoctools_5.41.0.bb b/recipes-kf5/tier2/kdoctools_5.41.0.bb new file mode 100644 index 0000000..56169bb --- /dev/null +++ b/recipes-kf5/tier2/kdoctools_5.41.0.bb @@ -0,0 +1,2 @@ +require ${PN}.inc +SRCREV = "v${PV}"