blob: be2d921a1acd939115f076d7ad284a449c1a7b28 (
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
24
25
26
27
|
# Copyright 2013-2024 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.package import *
class F2c(MakefilePackage):
"""F2c converts Fortran 77 source code to C or C++ source files."""
homepage = "https://www.netlib.org/f2c/"
url = "https://www.netlib.org/f2c/src.tgz"
version("master", sha256="d4847456aa91c74e5e61e2097780ca6ac3b20869fae8864bfa8dcc66f6721d35")
def url_for_version(self, version):
url = "https://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)
|