diff options
author | Zheng Junjie <873216071@qq.com> | 2023-07-12 14:09:15 +0800 |
---|---|---|
committer | 宋文武 <iyzsong@member.fsf.org> | 2023-08-02 22:27:39 +0800 |
commit | e6d22dfbe976ff7ca4eaf6e91d5d66b08d8f51cc (patch) | |
tree | 3fba485b132db61ac1e1f24d17c2eb197faa1a8e /gnu/packages/kde-frameworks.scm | |
parent | 16bea255c7fa8909bd5c707c23483094a89b53f6 (diff) |
gnu: kdoctools: Use G-expressions.
* gnu/packages/kde-frameworks.scm (kdoctools)[arguments]:
Rewrite as G-expressions.
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu/packages/kde-frameworks.scm')
-rw-r--r-- | gnu/packages/kde-frameworks.scm | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm index 91b6262311..d8429576a3 100644 --- a/gnu/packages/kde-frameworks.scm +++ b/gnu/packages/kde-frameworks.scm @@ -1705,28 +1705,30 @@ application crashes.") perl-uri qtbase-5)) (arguments - `(#: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")))))))) + (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")))))))) (home-page "https://community.kde.org/Frameworks") (synopsis "Create documentation from DocBook") (description "Provides tools to generate documentation in various format |