diff options
author | Roel Janssen <roel@gnu.org> | 2016-05-10 15:54:01 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-05-11 15:58:24 +0200 |
commit | 93d2456cfc6cffa5b0c2d521542f80a04ef087ce (patch) | |
tree | e750b9afa593480b257a5cf1c42c32ccce3b536e /gnu | |
parent | 22c161d0a881bd86f02494c5512ee6310d326b4d (diff) | |
download | guix-93d2456cfc6cffa5b0c2d521542f80a04ef087ce.tar guix-93d2456cfc6cffa5b0c2d521542f80a04ef087ce.tar.gz |
gnu: graphviz: Build the Guile bindings.
* gnu/packages/graphviz.scm (graphviz)[inputs]: Add SWIG and GUILE-2.0.
[arguments]: Add 'move-guile-bindings' phase.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/graphviz.scm | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gnu/packages/graphviz.scm b/gnu/packages/graphviz.scm index 09f475bd90..e4b9094632 100644 --- a/gnu/packages/graphviz.scm +++ b/gnu/packages/graphviz.scm @@ -25,6 +25,7 @@ #:use-module (gnu packages gtk) #:use-module (gnu packages xml) #:use-module (gnu packages glib) + #:use-module (gnu packages guile) #:use-module (gnu packages bison) #:use-module (gnu packages image) #:use-module (gnu packages autotools) @@ -32,6 +33,7 @@ #:use-module (gnu packages fontutils) #:use-module (gnu packages compression) #:use-module (gnu packages gd) + #:use-module (gnu packages swig) #:use-module ((guix licenses) #:select (lgpl2.0+ epl1.0))) (define-public graphviz @@ -69,12 +71,26 @@ (rename-file (string-append out "/share/graphviz/doc") (string-append doc "/share/graphviz/doc")) #t)) - %standard-phases)))) + (alist-cons-after + 'move-docs 'move-guile-bindings + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (lib (string-append out "/lib")) + (extdir (string-append lib + "/guile/2.0/extensions"))) + (mkdir-p extdir) + (rename-file (string-append + lib "/graphviz/guile/libgv_guile.so") + (string-append extdir + "/libgv_guile.so")))) + %standard-phases))))) (inputs `(("libXrender" ,libxrender) ("libX11" ,libx11) ("gts" ,gts) ("gd" ,gd) ; FIXME: Our GD is too old + ("guile" ,guile-2.0) ;Guile bindings + ("swig" ,swig) ("pango" ,pango) ("fontconfig" ,fontconfig) ("freetype" ,freetype) |