diff options
author | Andrew W Elble <aweits@rit.edu> | 2020-01-28 22:01:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 21:01:25 -0600 |
commit | 9d7e482497e3ee3b4aeb6c495a27cd88d8b2a64c (patch) | |
tree | c88aa579ec99536ce4a20f96b8337f8e0c6f495b /var/spack/repos/builtin/packages/git/package.py | |
parent | 69feea280d5504b0ff72a0e309ed7cfcb7fb43a4 (diff) | |
download | spack-9d7e482497e3ee3b4aeb6c495a27cd88d8b2a64c.tar.gz spack-9d7e482497e3ee3b4aeb6c495a27cd88d8b2a64c.tar.bz2 spack-9d7e482497e3ee3b4aeb6c495a27cd88d8b2a64c.tar.xz spack-9d7e482497e3ee3b4aeb6c495a27cd88d8b2a64c.zip |
git: add version 2.25.0 and fixup pcre dependency (#14649)
* git: add version 2.25.0 and fixup pcre dependency
pcre2 became optional in 2.14 and the default in 2.18. I noticed this
as git was compiling against the system pcre2 (spack was
specifying pcre as the dependency).
* missed a chunk from my internal repo
Diffstat (limited to 'var/spack/repos/builtin/packages/git/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/git/package.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/git/package.py b/var/spack/repos/builtin/packages/git/package.py index a7f97a4601..c77c1fa916 100644 --- a/var/spack/repos/builtin/packages/git/package.py +++ b/var/spack/repos/builtin/packages/git/package.py @@ -25,6 +25,11 @@ class Git(AutotoolsPackage): releases = [ { + 'version': '2.25.0', + 'sha256': 'a98c9b96d91544b130f13bf846ff080dda2867e77fe08700b793ab14ba5346f6', + 'sha256_manpages': '22b2380842ef75e9006c0358de250ead449e1376d7e5138070b9a3073ef61d44' + }, + { 'version': '2.21.0', 'sha256': '85eca51c7404da75e353eba587f87fea9481ba41e162206a6f70ad8118147bee', 'sha256_manpages': '14c76ebb4e31f9e55cf5338a04fd3a13bced0323cd51794ccf45fc74bd0c1080' @@ -175,7 +180,7 @@ class Git(AutotoolsPackage): depends_on('libiconv') depends_on('openssl') depends_on('pcre', when='@:2.13') - depends_on('pcre+jit', when='@2.14:') + depends_on('pcre2', when='@2.14:') depends_on('perl') depends_on('zlib') @@ -216,12 +221,17 @@ class Git(AutotoolsPackage): '--with-curl={0}'.format(spec['curl'].prefix), '--with-expat={0}'.format(spec['expat'].prefix), '--with-iconv={0}'.format(spec['libiconv'].prefix), - '--with-libpcre={0}'.format(spec['pcre'].prefix), '--with-openssl={0}'.format(spec['openssl'].prefix), '--with-perl={0}'.format(spec['perl'].command.path), '--with-zlib={0}'.format(spec['zlib'].prefix), ] + if '^pcre' in self.spec: + configure_args.append('--with-libpcre={0}'.format( + spec['pcre'].prefix)) + if '^pcre2' in self.spec: + configure_args.append('--with-libpcre2={0}'.format( + spec['pcre2'].prefix)) if '+tcltk' in self.spec: configure_args.append('--with-tcltk={0}'.format( self.spec['tk'].prefix.bin.wish)) |