summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth R. Johnson <johnsonsr@ornl.gov>2020-09-18 11:35:33 -0600
committerGitHub <noreply@github.com>2020-09-18 13:35:33 -0400
commit71c7e28ca713c62e54aa94b641dc9bf0219486e9 (patch)
treeae1b5f27acb92ce2c04ece0ff74176b3571211b2
parent2e4892c1113670087bbc1c56ebbf7674630701f6 (diff)
downloadspack-71c7e28ca713c62e54aa94b641dc9bf0219486e9.tar.gz
spack-71c7e28ca713c62e54aa94b641dc9bf0219486e9.tar.bz2
spack-71c7e28ca713c62e54aa94b641dc9bf0219486e9.tar.xz
spack-71c7e28ca713c62e54aa94b641dc9bf0219486e9.zip
swig: add version 4.0.2 and 4.0.2-fortran (#18741)
-rw-r--r--var/spack/repos/builtin/packages/swig/package.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/swig/package.py b/var/spack/repos/builtin/packages/swig/package.py
index 59a535fb74..4196e35df8 100644
--- a/var/spack/repos/builtin/packages/swig/package.py
+++ b/var/spack/repos/builtin/packages/swig/package.py
@@ -23,6 +23,8 @@ class Swig(AutotoolsPackage, SourceforgePackage):
sourceforge_mirror_path = "swig/swig-3.0.12.tar.gz"
version('master', git='https://github.com/swig/swig.git')
+ version('4.0.2', sha256='d53be9730d8d58a16bf0cbd1f8ac0c0c3e1090573168bfa151b01eb47fa906fc',
+ preferred=True)
version('4.0.1', sha256='7a00b4d0d53ad97a14316135e2d702091cd5f193bb58bcfcd8bc59d41e7887a9')
version('4.0.0', sha256='e8a39cd6437e342cdcbd5af27a9bf11b62dc9efec9248065debcb8276fcbb925')
version('3.0.12', sha256='7cf9f447ae7ed1c51722efc45e7f14418d15d7a1e143ac9f09a668999f4fc94d')
@@ -35,11 +37,15 @@ class Swig(AutotoolsPackage, SourceforgePackage):
version('1.3.40', sha256='1945b3693bcda6777bd05fef1015a0ad1a4604cde4a4a0a368b61ccfd143ac09')
version('fortran', branch='master',
git='https://github.com/swig-fortran/swig.git')
+ version('4.0.2-fortran', sha256='2d65ebe82274da294709254703f9ac2333fd39286b9375b0d89182385aac548e',
+ url='https://github.com/swig-fortran/swig/archive/v4.0.2+fortran.tar.gz')
depends_on('pcre')
- # Git repository does *not* include configure script
- for _version in ['@fortran', '@master']:
+ _autoconf_versions = ['@master', '@fortran', '@4.0.2-fortran']
+
+ # Git releases do *not* include configure script
+ for _version in _autoconf_versions:
depends_on('autoconf', type='build', when=_version)
depends_on('automake', type='build', when=_version)
depends_on('libtool', type='build', when=_version)
@@ -56,7 +62,7 @@ class Swig(AutotoolsPackage, SourceforgePackage):
with working_dir(self.prefix.bin):
os.symlink('swig', 'swig{0}'.format(self.spec.version.up_to(2)))
- for _version in ['@fortran', '@master']:
+ for _version in _autoconf_versions:
@when(_version)
def autoreconf(self, spec, prefix):
which('sh')('./autogen.sh')