diff options
author | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2024-07-08 13:16:18 +0800 |
---|---|---|
committer | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2024-07-18 10:45:26 +0800 |
commit | 9e14bbe34629f22d1e21913e1c04205ab88910c7 (patch) | |
tree | 145f73ee2cd6837a53796524c7004a3e93c5ee7d /gnu/packages | |
parent | afd0cf6eca133cca54aaf70838c0f32e3cf9accc (diff) | |
download | guix-9e14bbe34629f22d1e21913e1c04205ab88910c7.tar.gz guix-9e14bbe34629f22d1e21913e1c04205ab88910c7.zip |
gnu: Add kdoctools-5.
* gnu/packages/kde-frameworks.scm (kdoctools-5): New variable.
Change-Id: I107e491d19544804006b089bba4ecabfd47b0eff
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/kde-frameworks.scm | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm index 4fb20c593b..7006373279 100644 --- a/gnu/packages/kde-frameworks.scm +++ b/gnu/packages/kde-frameworks.scm @@ -2189,6 +2189,58 @@ application crashes.") from DocBook files.") (license license:lgpl2.1+))) +(define-public kdoctools-5 + (package + (inherit kdoctools) + (name "kdoctools") + (version "5.116.0") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://kde/stable/frameworks/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) + (sha256 + (base32 + "1cvb39ggc79fpfa84rshm6vl10h0avn2rf6qxaxb41r9887ad81n")))) + (native-inputs + (list extra-cmake-modules)) + (inputs + (list docbook-xml-4.5 + docbook-xsl + karchive-5 + ki18n-5 + libxml2 + libxslt + perl + perl-uri + qtbase-5)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'cmake-find-docbook + (lambda* (#:key inputs #:allow-other-keys) + (substitute* (find-files "cmake" "\\.cmake$") + (("CMAKE_SYSTEM_PREFIX_PATH") + "CMAKE_PREFIX_PATH")) + (substitute* "cmake/FindDocBookXML4.cmake" + (("^.*xml/docbook/schema/dtd.*$") + "xml/dtd/docbook\n")) + (substitute* "cmake/FindDocBookXSL.cmake" + (("^.*xml/docbook/stylesheet.*$") + (string-append "xml/xsl/docbook-xsl-" + #$(package-version docbook-xsl) + "\n"))))) + (add-after 'install 'add-symlinks + ;; Some package(s) (e.g. kdelibs4support) refer to this locale by a + ;; different spelling. + (lambda* (#:key outputs #:allow-other-keys) + (let ((xsl (string-append (assoc-ref outputs "out") + "/share/kf5/kdoctools/customization/xsl/"))) + (symlink (string-append xsl "pt_br.xml") + (string-append xsl "pt-BR.xml")))))))))) + (define-public kfilemetadata (package (name "kfilemetadata") |