summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrietzke <brietzke@users.noreply.github.com>2019-06-19 19:59:11 +0200
committerPeter Scheibel <scheibel1@llnl.gov>2019-06-19 10:59:11 -0700
commit4f9116dae24138fee4cf1c2f8527ad5a53dda042 (patch)
tree877476facee1ed64bb57f273bc60990f645e665b
parenta60ffdd5a25f44c1371f0a6adc456fa2bff73b07 (diff)
downloadspack-4f9116dae24138fee4cf1c2f8527ad5a53dda042.tar.gz
spack-4f9116dae24138fee4cf1c2f8527ad5a53dda042.tar.bz2
spack-4f9116dae24138fee4cf1c2f8527ad5a53dda042.tar.xz
spack-4f9116dae24138fee4cf1c2f8527ad5a53dda042.zip
New package: fgsl: fortran interface to GSL (#11775)
-rw-r--r--var/spack/repos/builtin/packages/fgsl/package.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fgsl/package.py b/var/spack/repos/builtin/packages/fgsl/package.py
new file mode 100644
index 0000000000..e9d46ca3f7
--- /dev/null
+++ b/var/spack/repos/builtin/packages/fgsl/package.py
@@ -0,0 +1,33 @@
+# 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)
+
+#
+# Author: Gilbert Brietzke
+# Date: June 18, 2019
+
+from spack import *
+
+
+class Fgsl(AutotoolsPackage):
+ """Fortran interface to the GNU Scientific Library"""
+
+ homepage = "https://github.com/reinh-bader/fgsl"
+ url = "https://github.com/reinh-bader/fgsl/archive/v1.2.0.tar.gz"
+
+ version('1.2.0', 'e5a4ac08eb744c963e95a46a51d76c56593836077c5ad8c47e240cae57027002')
+ version('1.1.0', 'a5adce3c3b279d2dacc05b74c598ff89be7ef3ae3ec59b3ec1355750c1bb4832')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('m4', type='build')
+ depends_on('gsl@2.3', when='@1.2.0')
+ depends_on('gsl@2.2.1', when='@1.1.0')
+
+ parallel = False
+
+ def setup_environment(self, spack_env, run_env):
+ if self.compiler.name == 'gcc':
+ spack_env.append_flags('FCFLAGS', "-ffree-line-length-none")