diff options
| author | John Darrington <jmd@gnu.org> | 2017-03-15 21:05:24 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2017-06-02 18:47:06 +0200 |
| commit | fb226b43511671bee3463a02eea9e041d2610fef (patch) | |
| tree | 5c78b00a55847ef82cd49080849434fef2b36d1d | |
| parent | 0c152cd6e322e5594ba2028319965e8453489766 (diff) | |
gnu: Move vtk to image-processing.scm.
* gnu/packages/image-processing.scm (vtk): New variable.
* gnu/packages/vtk.scm: Delete file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Remove it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/image-processing.scm | 65 | ||||
| -rw-r--r-- | gnu/packages/vtk.scm | 93 |
3 files changed, 65 insertions, 94 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index 549aaf1abb9..e7d5ee2f415 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -395,7 +395,6 @@ GNU_SYSTEM_MODULES = \ | |||
| 395 | %D%/packages/video.scm \ | 395 | %D%/packages/video.scm \ |
| 396 | %D%/packages/vim.scm \ | 396 | %D%/packages/vim.scm \ |
| 397 | %D%/packages/vpn.scm \ | 397 | %D%/packages/vpn.scm \ |
| 398 | %D%/packages/vtk.scm \ | ||
| 399 | %D%/packages/w3m.scm \ | 398 | %D%/packages/w3m.scm \ |
| 400 | %D%/packages/wdiff.scm \ | 399 | %D%/packages/wdiff.scm \ |
| 401 | %D%/packages/web.scm \ | 400 | %D%/packages/web.scm \ |
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index 1753b926c6c..3d34eb2c342 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2017 John Darrington <jmd@gnu.org> | 2 | ;;; Copyright © 2017 John Darrington <jmd@gnu.org> |
| 3 | ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> | 3 | ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> |
| 4 | ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org> | ||
| 5 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> | ||
| 6 | ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org> | ||
| 4 | ;;; | 7 | ;;; |
| 5 | ;;; This file is part of GNU Guix. | 8 | ;;; This file is part of GNU Guix. |
| 6 | ;;; | 9 | ;;; |
| @@ -29,6 +32,8 @@ | |||
| 29 | #:use-module (gnu packages boost) | 32 | #:use-module (gnu packages boost) |
| 30 | #:use-module (gnu packages compression) | 33 | #:use-module (gnu packages compression) |
| 31 | #:use-module (gnu packages documentation) | 34 | #:use-module (gnu packages documentation) |
| 35 | #:use-module (gnu packages fontutils) | ||
| 36 | #:use-module (gnu packages gl) | ||
| 32 | #:use-module (gnu packages gnome) | 37 | #:use-module (gnu packages gnome) |
| 33 | #:use-module (gnu packages graphics) | 38 | #:use-module (gnu packages graphics) |
| 34 | #:use-module (gnu packages graphviz) | 39 | #:use-module (gnu packages graphviz) |
| @@ -37,7 +42,10 @@ | |||
| 37 | #:use-module (gnu packages perl) | 42 | #:use-module (gnu packages perl) |
| 38 | #:use-module (gnu packages pkg-config) | 43 | #:use-module (gnu packages pkg-config) |
| 39 | #:use-module (gnu packages python) | 44 | #:use-module (gnu packages python) |
| 45 | #:use-module (gnu packages serialization) | ||
| 46 | #:use-module (gnu packages xiph) | ||
| 40 | #:use-module (gnu packages xml) | 47 | #:use-module (gnu packages xml) |
| 48 | #:use-module (gnu packages xorg) | ||
| 41 | #:use-module (gnu packages vtk)) | 49 | #:use-module (gnu packages vtk)) |
| 42 | 50 | ||
| 43 | ;; We use the latest snapshot of this package because the latest release is | 51 | ;; We use the latest snapshot of this package because the latest release is |
| @@ -128,3 +136,60 @@ is built around a plug-in structure that makes it easy to add functionality | |||
| 128 | without compromising the original code base and it makes use of a wide variety | 136 | without compromising the original code base and it makes use of a wide variety |
| 129 | of external libraries that provide additional functionality.") | 137 | of external libraries that provide additional functionality.") |
| 130 | (license license:gpl3+))) | 138 | (license license:gpl3+))) |
| 139 | |||
| 140 | (define-public vtk | ||
| 141 | (package | ||
| 142 | (name "vtk") | ||
| 143 | (version "7.1.0") | ||
| 144 | (source (origin | ||
| 145 | (method url-fetch) | ||
| 146 | (uri (string-append "http://www.vtk.org/files/release/" | ||
| 147 | (version-major+minor version) | ||
| 148 | "/VTK-" version ".tar.gz")) | ||
| 149 | (sha256 | ||
| 150 | (base32 | ||
| 151 | "0yj96z58haan77gzilnqp7xpf8hg5jk11a3jx55p2ksd400s0gjz")))) | ||
| 152 | (build-system cmake-build-system) | ||
| 153 | (arguments | ||
| 154 | '(#:build-type "Release" ;Build without '-g' to save space. | ||
| 155 | ;; -DVTK_USE_SYSTEM_NETCDF:BOOL=TRUE requires netcdf_cxx | ||
| 156 | #:configure-flags '("-DVTK_USE_SYSTEM_EXPAT:BOOL=TRUE" | ||
| 157 | "-DVTK_USE_SYSTEM_FREETYPE:BOOL=TRUE" | ||
| 158 | "-DVTK_USE_SYSTEM_HDF5:BOOL=TRUE" | ||
| 159 | "-DVTK_USE_SYSTEM_JPEG:BOOL=TRUE" | ||
| 160 | "-DVTK_USE_SYSTEM_JSONCPP:BOOL=TRUE" | ||
| 161 | "-DVTK_USE_SYSTEM_LIBXML2:BOOL=TRUE" | ||
| 162 | "-DVTK_USE_SYSTEM_OGGTHEORA:BOOL=TRUE" | ||
| 163 | "-DVTK_USE_SYSTEM_PNG:BOOL=TRUE" | ||
| 164 | "-DVTK_USE_SYSTEM_TIFF:BOOL=TRUE" | ||
| 165 | "-DVTK_USE_SYSTEM_ZLIB:BOOL=TRUE") | ||
| 166 | #:tests? #f)) ;XXX: no "test" target | ||
| 167 | (inputs | ||
| 168 | `(("libXt" ,libxt) | ||
| 169 | ("xproto" ,xproto) | ||
| 170 | ("libX11" ,libx11) | ||
| 171 | ("libxml2" ,libxml2) | ||
| 172 | ("mesa" ,mesa) | ||
| 173 | ("glu" ,glu) | ||
| 174 | ("expat" ,expat) | ||
| 175 | ("freetype" ,freetype) | ||
| 176 | ("hdf5" ,hdf5) | ||
| 177 | ("jpeg" ,libjpeg) | ||
| 178 | ("jsoncpp" ,jsoncpp) | ||
| 179 | ("libogg" ,libogg) | ||
| 180 | ("libtheora" ,libtheora) | ||
| 181 | ("png" ,libpng) | ||
| 182 | ("tiff" ,libtiff) | ||
| 183 | ("zlib" ,zlib))) | ||
| 184 | (home-page "http://www.vtk.org/") | ||
| 185 | (synopsis "Libraries for 3D computer graphics") | ||
| 186 | (description | ||
| 187 | "The Visualization Toolkit (VTK) is a C++ library for 3D computer graphics, | ||
| 188 | image processing and visualization. It supports a wide variety of | ||
| 189 | visualization algorithms including: scalar, vector, tensor, texture, and | ||
| 190 | volumetric methods; and advanced modeling techniques such as: implicit | ||
| 191 | modeling, polygon reduction, mesh smoothing, cutting, contouring, and Delaunay | ||
| 192 | triangulation. VTK has an extensive information visualization framework, has | ||
| 193 | a suite of 3D interaction widgets, supports parallel processing, and | ||
| 194 | integrates with various databases on GUI toolkits such as Qt and Tk.") | ||
| 195 | (license license:bsd-3))) | ||
diff --git a/gnu/packages/vtk.scm b/gnu/packages/vtk.scm deleted file mode 100644 index 5a5c9412708..00000000000 --- a/gnu/packages/vtk.scm +++ /dev/null | |||
| @@ -1,93 +0,0 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | ||
| 2 | ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org> | ||
| 3 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> | ||
| 4 | ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org> | ||
| 5 | ;;; | ||
| 6 | ;;; This file is part of GNU Guix. | ||
| 7 | ;;; | ||
| 8 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | ||
| 9 | ;;; under the terms of the GNU General Public License as published by | ||
| 10 | ;;; the Free Software Foundation; either version 3 of the License, or (at | ||
| 11 | ;;; your option) any later version. | ||
| 12 | ;;; | ||
| 13 | ;;; GNU Guix is distributed in the hope that it will be useful, but | ||
| 14 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | ;;; GNU General Public License for more details. | ||
| 17 | ;;; | ||
| 18 | ;;; You should have received a copy of the GNU General Public License | ||
| 19 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | ||
| 20 | |||
| 21 | (define-module (gnu packages vtk) | ||
| 22 | #:use-module (guix packages) | ||
| 23 | #:use-module (guix download) | ||
| 24 | #:use-module ((guix licenses) #:select (bsd-3)) | ||
| 25 | #:use-module (guix utils) | ||
| 26 | #:use-module (guix build-system cmake) | ||
| 27 | #:use-module (gnu packages) | ||
| 28 | #:use-module (gnu packages compression) | ||
| 29 | #:use-module (gnu packages fontutils) | ||
| 30 | #:use-module (gnu packages gl) | ||
| 31 | #:use-module (gnu packages image) | ||
| 32 | #:use-module (gnu packages maths) | ||
| 33 | #:use-module (gnu packages serialization) | ||
| 34 | #:use-module (gnu packages xiph) | ||
| 35 | #:use-module (gnu packages xml) | ||
| 36 | #:use-module (gnu packages xorg)) | ||
| 37 | |||
| 38 | (define-public vtk | ||
| 39 | (package | ||
| 40 | (name "vtk") | ||
| 41 | (version "7.1.0") | ||
| 42 | (source (origin | ||
| 43 | (method url-fetch) | ||
| 44 | (uri (string-append "http://www.vtk.org/files/release/" | ||
| 45 | (version-major+minor version) | ||
| 46 | "/VTK-" version ".tar.gz")) | ||
| 47 | (sha256 | ||
| 48 | (base32 | ||
| 49 | "0yj96z58haan77gzilnqp7xpf8hg5jk11a3jx55p2ksd400s0gjz")))) | ||
| 50 | (build-system cmake-build-system) | ||
| 51 | (arguments | ||
| 52 | '(#:build-type "Release" ;Build without '-g' to save space. | ||
| 53 | ;; -DVTK_USE_SYSTEM_NETCDF:BOOL=TRUE requires netcdf_cxx | ||
| 54 | #:configure-flags '("-DVTK_USE_SYSTEM_EXPAT:BOOL=TRUE" | ||
| 55 | "-DVTK_USE_SYSTEM_FREETYPE:BOOL=TRUE" | ||
| 56 | "-DVTK_USE_SYSTEM_HDF5:BOOL=TRUE" | ||
| 57 | "-DVTK_USE_SYSTEM_JPEG:BOOL=TRUE" | ||
| 58 | "-DVTK_USE_SYSTEM_JSONCPP:BOOL=TRUE" | ||
| 59 | "-DVTK_USE_SYSTEM_LIBXML2:BOOL=TRUE" | ||
| 60 | "-DVTK_USE_SYSTEM_OGGTHEORA:BOOL=TRUE" | ||
| 61 | "-DVTK_USE_SYSTEM_PNG:BOOL=TRUE" | ||
| 62 | "-DVTK_USE_SYSTEM_TIFF:BOOL=TRUE" | ||
| 63 | "-DVTK_USE_SYSTEM_ZLIB:BOOL=TRUE") | ||
| 64 | #:tests? #f)) ;XXX: no "test" target | ||
| 65 | (inputs | ||
| 66 | `(("libXt" ,libxt) | ||
| 67 | ("xproto" ,xproto) | ||
| 68 | ("libX11" ,libx11) | ||
| 69 | ("libxml2" ,libxml2) | ||
| 70 | ("mesa" ,mesa) | ||
| 71 | ("glu" ,glu) | ||
| 72 | ("expat" ,expat) | ||
| 73 | ("freetype" ,freetype) | ||
| 74 | ("hdf5" ,hdf5) | ||
| 75 | ("jpeg" ,libjpeg) | ||
| 76 | ("jsoncpp" ,jsoncpp) | ||
| 77 | ("libogg" ,libogg) | ||
| 78 | ("libtheora" ,libtheora) | ||
| 79 | ("png" ,libpng) | ||
| 80 | ("tiff" ,libtiff) | ||
| 81 | ("zlib" ,zlib))) | ||
| 82 | (home-page "http://www.vtk.org/") | ||
| 83 | (synopsis "Libraries for 3D computer graphics") | ||
| 84 | (description | ||
| 85 | "The Visualization Toolkit (VTK) is a C++ library for 3D computer graphics, | ||
| 86 | image processing and visualization. It supports a wide variety of | ||
| 87 | visualization algorithms including: scalar, vector, tensor, texture, and | ||
| 88 | volumetric methods; and advanced modeling techniques such as: implicit | ||
| 89 | modeling, polygon reduction, mesh smoothing, cutting, contouring, and Delaunay | ||
| 90 | triangulation. VTK has an extensive information visualization framework, has | ||
| 91 | a suite of 3D interaction widgets, supports parallel processing, and | ||
| 92 | integrates with various databases on GUI toolkits such as Qt and Tk.") | ||
| 93 | (license bsd-3))) | ||
