diff options
author | David Craven <david@craven.ch> | 2016-06-12 21:10:42 +0200 |
---|---|---|
committer | David Craven <david@craven.ch> | 2016-08-18 13:06:19 +0200 |
commit | 110db07dffc968a233cd4bea78df5b49c1e82c93 (patch) | |
tree | 15e712b4ef215b5c4ac63e185fa9165a8bd89d97 | |
parent | 4d92ceb56816b003fc451b387bf06a81fa33f83c (diff) | |
download | guix-110db07dffc968a233cd4bea78df5b49c1e82c93.tar guix-110db07dffc968a233cd4bea78df5b49c1e82c93.tar.gz |
gnu: Add kdoctools.
* gnu/packages/kde-frameworks.scm (kdoctools): New variable.
Co-authored-by: Hartmut Goebel <h.goebel@crazy-compilers.com>
-rw-r--r-- | gnu/packages/kde-frameworks.scm | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm index 6fc0c85010..85aad67ed9 100644 --- a/gnu/packages/kde-frameworks.scm +++ b/gnu/packages/kde-frameworks.scm @@ -28,15 +28,19 @@ #:use-module (gnu packages admin) #:use-module (gnu packages bison) #:use-module (gnu packages compression) + #:use-module (gnu packages docbook) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages linux) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages polkit) #:use-module (gnu packages python) #:use-module (gnu packages qt) + #:use-module (gnu packages web) + #:use-module (gnu packages xml) #:use-module (gnu packages xorg)) (define-public extra-cmake-modules @@ -1143,3 +1147,50 @@ integrated it into your application's other widgets.") (description "KCrash provides support for intercepting and handling application crashes.") (license license:lgpl2.1+))) + +(define-public kdoctools + (package + (name "kdoctools") + (version "5.24.0") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://kde/stable/frameworks/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) + (sha256 + (base32 + "1r129kpq0d11b9l87cqbal6fm5ycwhsps1g3r1a7jsxz70scz4ri")))) + (build-system cmake-build-system) + (native-inputs + `(("extra-cmake-modules" ,extra-cmake-modules))) + (inputs + `(("docbook-xml" ,docbook-xml) + ("docbook-xsl" ,docbook-xsl) + ("karchive" ,karchive) + ("ki18n" ,ki18n) + ("libxml2" ,libxml2) + ("libxslt" ,libxslt) + ("perl" ,perl) + ("perl-uri" ,perl-uri) + ("qtbase" ,qtbase))) + (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")))))))) + (home-page "https://community.kde.org/Frameworks") + (synopsis "Create documentation from DocBook") + (description "Provides tools to generate documentation in various format +from DocBook files.") + (license license:lgpl2.1+))) |