summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/f18/package.py
blob: 8ae6401c286521a757d06f4378437dfc3736f165 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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 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)