summaryrefslogtreecommitdiff
path: root/contrib/packages
diff options
context:
space:
mode:
authorNils Gillmann <ng0@n0.is>2018-09-07 15:41:06 +0000
committerNils Gillmann <ng0@n0.is>2018-09-07 15:41:06 +0000
commit15a3a09d508eed0f6d2612dd42d1b8ea720eb036 (patch)
tree6027869fe8feefc6c3f82b9204fc8ec3b4870d23 /contrib/packages
parente7583540d0ec62c21fbf098dd757be5505a8a71d (diff)
doc: start work on mdoc generation support
Signed-off-by: Nils Gillmann <ng0@n0.is>
Diffstat (limited to 'contrib/packages')
-rw-r--r--contrib/packages/guix/guix-env-gillmann.scm40
1 files changed, 29 insertions, 11 deletions
diff --git a/contrib/packages/guix/guix-env-gillmann.scm b/contrib/packages/guix/guix-env-gillmann.scm
index 4b977c1bb..3951620e8 100644
--- a/contrib/packages/guix/guix-env-gillmann.scm
+++ b/contrib/packages/guix/guix-env-gillmann.scm
@@ -64,6 +64,8 @@
(gnu packages video)
(gnu packages web)
(gnu packages xiph)
+ (ports app-text mandoc mandoc)
+ (ports app-text texi2mdoc texi2mdoc)
((guix licenses) #:prefix license:))
(define %source-dir (current-source-directory))
@@ -119,17 +121,20 @@
("automake" ,automake)
("gnu-gettext" ,gnu-gettext)
("which" ,which)
+ ("mandoc" ,mandoc)
+ ("texi2mdoc" ,texi2mdoc)
("texinfo" ,texinfo-5) ; Debian stable: 5.2
("libtool" ,libtool)))
(outputs '("out" "debug"))
+ ;;#:configure-flags
+ ;;(list (string-append "--with-nssdir=" %output "/lib")
+ ;;"--enable-gcc-hardening"
+ ;;"--enable-linker-hardening"
+ ;;;;"--enable-documentation-only")
+ ;;;"--enable-logging=verbose"
+ ;;;"CFLAGS=-ggdb -O0")
(arguments
- `(;#:configure-flags
- ;;(list (string-append "--with-nssdir=" %output "/lib")
- ;;"--enable-gcc-hardening"
- ;;"--enable-linker-hardening"
- ;;;;"--enable-documentation-only")
- ;;;"--enable-logging=verbose"
- ;;;"CFLAGS=-ggdb -O0")
+ `(#:configure-flags (list "--enable-section7")
#:phases
;; swap check and install phases and set paths to installed bin
(modify-phases %standard-phases
@@ -140,12 +145,25 @@
#t))
(add-after 'patch-bin-sh 'bootstrap
(lambda _
- (zero? (system* "sh" "bootstrap"))))
+ (invoke "sh" "bootstrap")))
+ (add-after 'build 'install-section7
+ (lambda _
+ (with-directory-excursion "doc/documentation"
+ (invoke "make" "gnunet-c-tutorial.7")
+ (invoke "make" "gnunet-documentation.7")
+ (mkdir-p (string-append (assoc-ref %outputs "out")
+ "/share/man/man7"))
+ (copy-file "../man/gnunet-c-tutorial.7"
+ (string-append (assoc-ref %outputs "out")
+ "/share/man/man7/gnunet-c-tutorial.7"))
+ (copy-file "../man/gnunet-documentation.7"
+ (string-append (assoc-ref %outputs "out")
+ "/share/man/man7/gnunet-documentation.7")))))
;;(add-before 'build 'chdir
;; (lambda _
;; (chdir "doc/documentation")))
- (delete 'check)
- ;; XXX: https://gnunet.org/bugs/view.php?id=4619
- ))))))
+ (delete 'check)))))))
+;; XXX: https://gnunet.org/bugs/view.php?id=4619
+
gnunet-dev-env