summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannek Squar <squar@informatik.uni-hamburg.de>2018-12-18 02:10:50 +0100
committerAdam J. Stewart <ajstewart426@gmail.com>2018-12-17 19:10:50 -0600
commit09d2df690a89d8d1ceb865fe313a86c229396892 (patch)
tree829d6c73d514d27930d34371a7aeaa0ab3cc71af
parent776f99a414ded817e0c71521085514eb243d0cf3 (diff)
downloadspack-09d2df690a89d8d1ceb865fe313a86c229396892.tar.gz
spack-09d2df690a89d8d1ceb865fe313a86c229396892.tar.bz2
spack-09d2df690a89d8d1ceb865fe313a86c229396892.tar.xz
spack-09d2df690a89d8d1ceb865fe313a86c229396892.zip
Add spack package for saga-gis (#10018)
* Add spack package for saga-gis * Adjusted license header * Adjust saga-gis package, added fixme comments * Removed version constraint * Fixed fixme comment
-rw-r--r--var/spack/repos/builtin/packages/saga-gis/package.py80
1 files changed, 80 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/saga-gis/package.py b/var/spack/repos/builtin/packages/saga-gis/package.py
new file mode 100644
index 0000000000..8c3be4a422
--- /dev/null
+++ b/var/spack/repos/builtin/packages/saga-gis/package.py
@@ -0,0 +1,80 @@
+# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+from spack import *
+
+
+class SagaGis(AutotoolsPackage):
+ """
+ SAGA is a GIS for Automated Geoscientific Analyses and has been designed
+ for an easy and effective implementation of spatial algorithms. It offers
+ a comprehensive, growing set of geoscientific methods and provides an
+ easily approachable user interface with many visualisation options
+ """
+ homepage = "http://saga-gis.org/"
+ url = "https://sourceforge.net/projects/saga-gis/files/SAGA%20-%205/SAGA%20-%205.0.0/saga-5.0.0.tar.gz"
+ git = "git://git.code.sf.net/p/saga-gis/code"
+
+ version('develop', branch='master')
+ version('7.0.0', branch='release-7.0.0', preferred=True)
+ version('6.4.0', branch='release-6.4.0')
+ version('6.3.0', branch='release-6.3.0')
+ version('6.2.0', branch='release-6.2.0')
+ version('6.1.0', branch='release-6.1.0')
+ version('6.0.0', branch='release-6.0.0')
+ version('5.0.1', branch='release-5-0-1')
+ version('5.0.0', branch='release-5.0.0')
+ version('4.1.0', branch='release-4.1.0')
+ version('4.0.0', branch='release-4.0.0')
+ version('4.0.0', branch='release-4.0.0')
+ version('3.0.0', branch='release-3.0.0')
+ version('2.3-lts', branch='release-2-3-lts')
+ version('2.3.1', branch='release-2-3-1')
+ version('2.3.0', branch='release-2-3-0')
+
+ variant('gui', default=True, description='Build GUI and interactive SAGA tools')
+ variant('odbc', default=True, description='Build with ODBC support')
+ # FIXME Saga-gis configure file disables triangle even if
+ # --enable-triangle flag is used
+ # variant('triangle', default=True, description='Build with triangle.c
+ # non free for commercial use otherwise use qhull')
+ variant('libfire', default=True, description='Build with libfire (non free for commercial usage)')
+ variant('openmp', default=True, description='Build with OpenMP enabled')
+ variant('python', default=False, description='Build Python extension')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('m4', type='build')
+
+ # FIXME unnecessary dependency on python3 because of implicit python3
+ # dependency through meson by a dependency of wx/gtkplus
+ depends_on('python@3:')
+
+ depends_on('wx')
+ depends_on('gdal')
+ depends_on('proj')
+
+ depends_on('unixodbc', when='+odbc')
+ # FIXME Saga-Gis uses a wrong include path
+ # depends_on('qhull', when='~triangle')
+ depends_on('swig', type='build', when='+python')
+
+ configure_directory = "saga-gis"
+
+ def configure_args(self):
+ args = []
+ args += self.enable_or_disable('gui')
+ args += self.enable_or_disable('odbc')
+ # FIXME Saga-gis configure file disables triangle even if
+ # --enable-triangle flag is used
+ # args += self.enable_or_disable('triangle')
+ # FIXME SAGA-GIS uses a wrong include path
+ # if '~triangle' in self.spec:
+ # args.append('--disable-triangle')
+ args += self.enable_or_disable('libfire')
+ args += self.enable_or_disable('openmp')
+ args += self.enable_or_disable('python')
+
+ return args