summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSinan <sbulutw@gmail.com>2019-11-13 13:19:43 -0800
committerAdam J. Stewart <ajstewart426@gmail.com>2019-11-13 15:19:43 -0600
commit9ae4f42ab52796171feb30b852e638bba6e01aca (patch)
tree3daf003298adee0d7cfc53bfbffd811f2fe41959
parent1a6bba163226ef2ebd81d6611c5c2e6d0fb9e4a5 (diff)
downloadspack-9ae4f42ab52796171feb30b852e638bba6e01aca.tar.gz
spack-9ae4f42ab52796171feb30b852e638bba6e01aca.tar.bz2
spack-9ae4f42ab52796171feb30b852e638bba6e01aca.tar.xz
spack-9ae4f42ab52796171feb30b852e638bba6e01aca.zip
new package: sfcgal (#12624)
* new package: sfcgal * improve meta information * add variant and optional dependencies * add cmake options for building with viewer * improve dependency type * improve viewer variant * improve viewer variant * specify dependency versions * add ref * remove depricated variant
-rw-r--r--var/spack/repos/builtin/packages/sfcgal/package.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sfcgal/package.py b/var/spack/repos/builtin/packages/sfcgal/package.py
new file mode 100644
index 0000000000..1b8ca14c54
--- /dev/null
+++ b/var/spack/repos/builtin/packages/sfcgal/package.py
@@ -0,0 +1,32 @@
+# Copyright 2013-2019 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 Sfcgal(CMakePackage):
+ """
+ SFCGAL is a C++ wrapper library around CGAL with the aim of supporting
+ ISO 19107:2013 and OGC Simple Features Access 1.2 for 3D operations. SFCGAL
+ provides standard compliant geometry types and operations, that can be
+ accessed from its C or C++ APIs.
+ """
+
+ homepage = "http://www.sfcgal.org/"
+ url = "https://github.com/Oslandia/SFCGAL/archive/v1.3.7.tar.gz"
+
+ version('1.3.7', sha256='30ea1af26cb2f572c628aae08dd1953d80a69d15e1cac225390904d91fce031b')
+
+ # Ref: http://oslandia.github.io/SFCGAL/installation.html
+ depends_on('cgal@4.3 +core')
+ depends_on('boost@1.54.0:1.69.0')
+ depends_on('mpfr@2.2.1:')
+ depends_on('gmp@4.2:')
+
+ def cmake_args(self):
+ # It seems viewer is discontinued as of v1.3.0
+ # https://github.com/Oslandia/SFCGAL/releases/tag/v1.3.0
+ # Also, see https://github.com/Oslandia/SFCGAL-viewer
+ return ['-DSFCGAL_BUILD_VIEWER=OFF']