me
/
guix
Archived
1
0
Fork 0

gnu: Add kdoctools-5.

* gnu/packages/kde-frameworks.scm (kdoctools-5): New variable.

Change-Id: I107e491d19544804006b089bba4ecabfd47b0eff
master
Zheng Junjie 2024-07-08 13:16:18 +08:00
parent afd0cf6eca
commit 9e14bbe346
No known key found for this signature in database
GPG Key ID: 3B5AA993E1A2DFF0
1 changed files with 52 additions and 0 deletions

View File

@ -2189,6 +2189,58 @@ application crashes.")
from DocBook files.") from DocBook files.")
(license license:lgpl2.1+))) (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 (define-public kfilemetadata
(package (package
(name "kfilemetadata") (name "kfilemetadata")