summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrice Waegeneire <brice@waegenei.re>2020-07-04 18:01:24 +0200
committerGuix Patches Tester <>2020-07-04 22:21:04 +0100
commit6d23990b10356311587dd1c912be3fa98c24df55 (patch)
treec6448f7f4ae3b583da52bcd517fd077663d28173
parentef0e7a5d332f0947adb3556cc5a8c8836eac0b6c (diff)
downloadguix-patches-6d23990b10356311587dd1c912be3fa98c24df55.tar
guix-patches-6d23990b10356311587dd1c912be3fa98c24df55.tar.gz
gnu: Add kicad-doc.
* gnu/packages/engineering.scm (kicad-doc): New variable. (kicad)[native-search-paths]: Add 'KICAD'.
-rw-r--r--gnu/packages/engineering.scm46
1 files changed, 45 insertions, 1 deletions
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index f2d32e663f..fb8ffc8263 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -65,6 +65,7 @@
#:use-module (gnu packages curl)
#:use-module (gnu packages dejagnu)
#:use-module (gnu packages digest)
+ #:use-module (gnu packages docbook)
#:use-module (gnu packages documentation)
#:use-module (gnu packages flex)
#:use-module (gnu packages fontutils)
@@ -95,6 +96,7 @@
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages mpi)
#:use-module (gnu packages ncurses)
+ #:use-module (gnu packages pretty-print)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
@@ -805,7 +807,6 @@ language.")
(license (list license:mpl2.0 ;library
license:gpl2+))))) ;Guile bindings and GUI
-;; TODO Add doc https://gitlab.com/kicad/services/kicad-doc/-/tree/master
(define-public kicad
(package
(name "kicad")
@@ -855,6 +856,9 @@ language.")
#t)))))
(native-search-paths
(list (search-path-specification
+ (variable "KICAD") ; to find kicad-doc
+ (files '("")))
+ (search-path-specification
(variable "KICAD_TEMPLATE_DIR")
(files '("share/kicad/template")))
(search-path-specification
@@ -926,6 +930,46 @@ translations for KiCad.")
(define-public kicad-i18l
(deprecated-package "kicad-i18l" kicad-i18n))
+(define-public kicad-doc
+ (package
+ (name "kicad-doc")
+ (version "5.1.6")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.com/kicad/services/kicad-doc.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "03kvss8a0xrjnfvkwymm0vfd7rn9ix7i926xdzz9jg9iycrjfj3g"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:configure-flags (list "-DBUILD_FORMATS=html")
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'build)
+ (add-before 'install 'set-perl-env
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "PERL5LIB"
+ (string-append (assoc-ref inputs "perl-unicode-linebreak")
+ "/lib/perl5/site_perl" ":"
+ (getenv "PERL5LIB")))
+ #t))
+ (delete 'check))))
+ (native-inputs
+ `(("asciidoc" ,asciidoc)
+ ("gettext" ,gettext-minimal)
+ ("git" ,git-minimal)
+ ("perl" ,perl)
+ ("perl-unicode-linebreak" ,perl-unicode-linebreak)
+ ("po4a" ,po4a)
+ ("source-highlight" ,source-highlight)))
+ (home-page "https://kicad-pcb.org/")
+ (synopsis "KiCad official documentation")
+ (description "This repository contains the official KiCad documentation.")
+ (license license:gpl3+)))
+
(define-public kicad-symbols
(package
(name "kicad-symbols")