diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-09-24 08:55:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 19:55:21 -0500 |
commit | 3690a81aa4a35370261dbc09c538a331b15b9230 (patch) | |
tree | d5d400c0fe21b4d2740e81d957207f42c4af8b32 /var | |
parent | e294a1e0a69fe6032762afc30d5fa6b3e7fa68c0 (diff) | |
download | spack-3690a81aa4a35370261dbc09c538a331b15b9230.tar.gz spack-3690a81aa4a35370261dbc09c538a331b15b9230.tar.bz2 spack-3690a81aa4a35370261dbc09c538a331b15b9230.tar.xz spack-3690a81aa4a35370261dbc09c538a331b15b9230.zip |
Add new package: f2c (#18889)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/f2c/package.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/f2c/package.py b/var/spack/repos/builtin/packages/f2c/package.py new file mode 100644 index 0000000000..7182ddb185 --- /dev/null +++ b/var/spack/repos/builtin/packages/f2c/package.py @@ -0,0 +1,27 @@ +# Copyright 2013-2020 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 F2c(MakefilePackage): + """F2c converts Fortran 77 source code to C or C++ source files.""" + + homepage = "http://www.netlib.org/f2c/" + url = "http://www.netlib.org/f2c/src.tgz" + + version('master', sha256='d4847456aa91c74e5e61e2097780ca6ac3b20869fae8864bfa8dcc66f6721d35') + + def url_for_version(self, version): + url = "http://www.netlib.org/f2c/src.tgz" + return url + + def edit(self, spec, prefix): + copy('makefile.u', 'makefile') + + def install(self, spec, prefix): + mkdirp(prefix.bin) + install('f2c', prefix.bin) + install('xsum', prefix.bin) |