summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
author健美猞猁 <weijianwen@gmail.com>2019-03-06 07:41:54 +0800
committerPeter Scheibel <scheibel1@llnl.gov>2019-03-05 17:41:54 -0600
commit40d66e34d361e93388bc52fdd1d63b5286ef5e1b (patch)
treea58d276368074cfe452d3a2751be19cae0da78e6 /var
parent063f5b63dabefda37b15b1fef8cafe4d7acda308 (diff)
downloadspack-40d66e34d361e93388bc52fdd1d63b5286ef5e1b.tar.gz
spack-40d66e34d361e93388bc52fdd1d63b5286ef5e1b.tar.bz2
spack-40d66e34d361e93388bc52fdd1d63b5286ef5e1b.tar.xz
spack-40d66e34d361e93388bc52fdd1d63b5286ef5e1b.zip
New package: pal (#10766)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/pal/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pal/package.py b/var/spack/repos/builtin/packages/pal/package.py
new file mode 100644
index 0000000000..480dc2539f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/pal/package.py
@@ -0,0 +1,29 @@
+# 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 Pal(AutotoolsPackage):
+ """The PAL library is a partial re-implementation of Pat Wallace's
+ popular SLALIB library written in C using a Gnu GPL license
+ and layered on top of the IAU's SOFA library (or the BSD-licensed ERFA)
+ where appropriate."""
+
+ homepage = "https://github.com/Starlink/pal"
+ url = "https://github.com/Starlink/pal/releases/download/v0.9.8/pal-0.9.8.tar.gz"
+
+ version('0.9.8', sha256='191fde8c4f45d6807d4b011511344014966bb46e44029a4481d070cd5e7cc697')
+
+ depends_on('sofa-c')
+ depends_on('erfa')
+
+ variant('starlink', default=False, description='Build with starlink support.')
+
+ def configure_args(self):
+ args = []
+ if '~starlink' in self.spec:
+ args.append('--without-starlink')
+ return args