You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

125 lines
4.5 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
  3. ;;;
  4. ;;; This file is part of GNU Guix.
  5. ;;;
  6. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; GNU Guix is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  18. (define-module (gnu packages graphviz)
  19. #:use-module (guix packages)
  20. #:use-module (guix build-system gnu)
  21. #:use-module (guix download)
  22. #:use-module (gnu packages xorg)
  23. #:use-module (gnu packages gtk)
  24. #:use-module (gnu packages xml)
  25. #:use-module (gnu packages glib)
  26. #:use-module (gnu packages bison)
  27. #:use-module (gnu packages libpng)
  28. #:use-module (gnu packages libjpeg)
  29. #:use-module (gnu packages autotools)
  30. #:use-module (gnu packages pkg-config)
  31. #:use-module (gnu packages fontutils)
  32. #:use-module (gnu packages compression)
  33. #:use-module (gnu packages gd)
  34. #:use-module ((guix licenses) #:select (lgpl2.0+ epl1.0)))
  35. (define-public graphviz
  36. (package
  37. (name "graphviz")
  38. (version "2.28.0")
  39. (source (origin
  40. (method url-fetch)
  41. (uri (string-append
  42. "http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-"
  43. version
  44. ".tar.gz"))
  45. (sha256
  46. (base32
  47. "0xpwg99cd8sp0c6r8klsmc66h1pday64kmnr4v6f9jkqqmrpkank"))))
  48. (build-system gnu-build-system)
  49. (arguments
  50. ;; FIXME: rtest/rtest.sh is a ksh script (!). Add ksh as an input.
  51. '(#:tests? #f
  52. #:phases (alist-cons-before
  53. 'build 'pre-build
  54. (lambda _
  55. ;; Work around bogus makefile when using an external
  56. ;; libltdl. Failing to do so, one hits this error:
  57. ;; "No rule to make target `-lltdl', needed by `libgvc.la'."
  58. (substitute* "lib/gvc/Makefile"
  59. (("am__append_5 *=.*")
  60. "am_append_5 =\n")))
  61. %standard-phases)))
  62. (inputs
  63. `(("libXrender" ,libxrender)
  64. ("libX11" ,libx11)
  65. ("gts" ,gts)
  66. ("gd" ,gd) ; FIXME: Our GD is too old
  67. ("pango" ,pango)
  68. ("fontconfig" ,fontconfig)
  69. ("freetype" ,freetype)
  70. ("libltdl" ,libtool)
  71. ("bison" ,bison)
  72. ("libXaw" ,libxaw)
  73. ("expat" ,expat)
  74. ("libjpeg" ,libjpeg)
  75. ("libpng" ,libpng)
  76. ("pkg-config" ,pkg-config)))
  77. (home-page "http://www.graphviz.org/")
  78. (synopsis "Graph visualization software")
  79. (description
  80. "Graphviz is a graph visualization tool suite. Graph visualization is a
  81. way of representing structural information as diagrams of abstract graphs and
  82. networks. It has important applications in networking, bioinformatics,
  83. software engineering, database and web design, machine learning, and in visual
  84. interfaces for other technical domains.")
  85. (license epl1.0)))
  86. (define-public gts
  87. (package
  88. (name "gts")
  89. (version "0.7.6")
  90. (source (origin
  91. (method url-fetch)
  92. (uri (string-append "mirror://sourceforge/gts/gts-"
  93. version ".tar.gz"))
  94. (sha256
  95. (base32
  96. "07mqx09jxh8cv9753y2d2jsv7wp8vjmrd7zcfpbrddz3wc9kx705"))))
  97. (build-system gnu-build-system)
  98. (arguments
  99. '(#:phases (alist-cons-before
  100. 'check 'pre-check
  101. (lambda _
  102. (chmod "test/boolean/test.sh" #o777))
  103. %standard-phases)
  104. ;; Some data files used by the test suite are missing.
  105. ;; See <http://sourceforge.net/p/gts/bugs/41/>.
  106. #:tests? #f))
  107. (inputs
  108. `(("pkg-config" ,pkg-config)))
  109. (propagated-inputs
  110. ;; The gts.pc file has glib-2.0 as required.
  111. `(("glib" ,glib)))
  112. (home-page "http://gts.sourceforge.net/")
  113. ;; Note: Despite the name, this is not official GNU software.
  114. (synopsis "Triangulated Surface Library")
  115. (description
  116. "Library intended to provide a set of useful functions to deal with
  117. 3D surfaces meshed with interconnected triangles.")
  118. (license lgpl2.0+)))