aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner2019-07-02 04:22:47 -0500
committerEfraim Flashner2019-07-02 04:22:47 -0500
commit89fe9c454e6d5c3cf516523bd59bc461d6db53bf (patch)
treee64057e02ab447b9dc3d4ccd2d0264635d80471f
parent22dd59cd672d876a99c719087117b19074cd0d49 (diff)
downloadguix-bioinformatics-89fe9c454e6d5c3cf516523bd59bc461d6db53bf.tar.gz
gn: Add graphviz@2.26
-rw-r--r--gn/packages/graphviz.scm45
1 files changed, 45 insertions, 0 deletions
diff --git a/gn/packages/graphviz.scm b/gn/packages/graphviz.scm
new file mode 100644
index 0000000..81e745c
--- /dev/null
+++ b/gn/packages/graphviz.scm
@@ -0,0 +1,45 @@
+(define-module (gn packages graphviz)
+ #:use-module ((guix licenses) #:prefix license:)
+ #:use-module (guix packages)
+ #:use-module (guix download)
+ #:use-module (guix utils)
+ #:use-module (gn packages python24)
+ #:use-module (gnu packages gl)
+ #:use-module (gnu packages graphviz)
+ #:use-module (gnu packages gtk)
+ #:use-module (srfi srfi-1))
+
+(define-public graphviz-2.26
+ (package
+ (inherit graphviz)
+ (name "graphviz")
+ (version "2.26.3")
+ (outputs '("out"))
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ ;; TODO: Replace with official release
+ "mirror://debian/pool/main/g/graphviz/"
+ "graphviz_" version ".orig.tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "18bzyg17ni0lpcd2g5dhan8fjv3vzkjym38jq8vm42did5p9j47l"))))
+ ;; TODO: unbundle libraries?
+ (arguments
+ `(#:configure-flags '("--enable-python24=yes")
+ ,@(substitute-keyword-arguments (package-arguments graphviz)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (delete 'move-docs) ; one output
+ (delete 'move-guile-bindings))))))
+ (inputs
+ ;; TODO: Add(?) perl, guile@1.8, gtk@2, lua5.1, tcl8.[3-6], rsvg
+ `(("gdk-pixbuf" ,gdk-pixbuf)
+ ;("ghostscript" ,ghostscript)
+ ("freeglut" ,freeglut)
+ ("python2.4" ,python-2.4)
+ ,@(fold alist-delete (package-inputs graphviz)
+ '("libjpeg" "guile"))))
+ (license license:cpl1.0)))