gnu: guile-gdbm-ffi: Install documentation.

* gnu/packages/guile.scm (guile-gdbm-ffi)[arguments]: Install README.md and
some examples.  Tidy up MKDIR-P calls.
This commit is contained in:
Tobias Geerinckx-Rice 2017-12-13 06:23:51 +01:00
parent 57202f2e24
commit 4168ddf689
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -15,6 +15,7 @@
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
;;; Copyright © 2017 ng0 <ng0@infotropique.org>
;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
;;;
;;; This file is part of GNU Guix.
;;;
@ -1074,13 +1075,16 @@ (define-public guile-gdbm-ffi
(compile-file
(lambda (in-file out-file)
(system* guild "compile" "-o" out-file in-file))))
;; Make installation directories.
(mkdir-p module-dir)
(mkdir-p doc)
;; Switch directory for compiling and installing
(chdir source)
;; Install the documentation.
(install-file "README.md" doc)
(copy-recursively "examples" (string-append doc "/examples"))
;; Make installation directories.
(mkdir-p module-dir)
;; copy the source
(copy-file "gdbm.scm" gdbm.scm-dest)