summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej@certik.us>2018-11-28 13:13:30 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2018-11-28 14:13:30 -0600
commit62f1cf3678eac7947cb66b2d10ba16781e337e76 (patch)
tree73f26aacec7e79e39e81e00a24f9327170723968 /var
parente998a399da0effe2e2f2d2818cc5e19170ff5761 (diff)
downloadspack-62f1cf3678eac7947cb66b2d10ba16781e337e76.tar.gz
spack-62f1cf3678eac7947cb66b2d10ba16781e337e76.tar.bz2
spack-62f1cf3678eac7947cb66b2d10ba16781e337e76.tar.xz
spack-62f1cf3678eac7947cb66b2d10ba16781e337e76.zip
Add f18 package (#9183)
* Add f18 package * Fix flake8 errors * Install the f18 binary into prefix.bin by hand * Add spack-build into the path * Fix the license header
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/f18/package.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/f18/package.py b/var/spack/repos/builtin/packages/f18/package.py
new file mode 100644
index 0000000000..8193a60a4c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/f18/package.py
@@ -0,0 +1,23 @@
+# 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 F18(CMakePackage):
+ """F18 is a front-end for Fortran intended to replace the existing front-end
+ in the Flang compiler"""
+
+ homepage = "https://github.com/flang-compiler/f18"
+
+ git = "https://github.com/flang-compiler/f18"
+
+ version('develop', branch='master')
+
+ depends_on('llvm@6.0.0+clang', when='@develop')
+
+ def install(self, spec, prefix):
+ mkdirp(prefix.bin)
+ install("spack-build/tools/f18/f18", prefix.bin)