summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/gnutls/package.py
diff options
context:
space:
mode:
authorhealther <healther@users.noreply.github.com>2017-03-29 10:55:02 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2017-03-29 01:55:02 -0700
commit754be1b275d3109893008832b2fe5d08f0cb76cd (patch)
tree9befce4d5e14174ef05af76f646158714b62c90f /var/spack/repos/builtin/packages/gnutls/package.py
parentf5bc42f2296ab66bed8c5ed64a98bc140b2c55af (diff)
downloadspack-754be1b275d3109893008832b2fe5d08f0cb76cd.tar.gz
spack-754be1b275d3109893008832b2fe5d08f0cb76cd.tar.bz2
spack-754be1b275d3109893008832b2fe5d08f0cb76cd.tar.xz
spack-754be1b275d3109893008832b2fe5d08f0cb76cd.zip
Add version 3.5.9 to package gnutls (#3616)
Diffstat (limited to 'var/spack/repos/builtin/packages/gnutls/package.py')
-rw-r--r--var/spack/repos/builtin/packages/gnutls/package.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/gnutls/package.py b/var/spack/repos/builtin/packages/gnutls/package.py
index 06d784c8e0..24d50a8a56 100644
--- a/var/spack/repos/builtin/packages/gnutls/package.py
+++ b/var/spack/repos/builtin/packages/gnutls/package.py
@@ -37,10 +37,22 @@ class Gnutls(AutotoolsPackage):
homepage = "http://www.gnutls.org"
url = "http://www.ring.gr.jp/pub/net/gnupg/gnutls/v3.3/gnutls-3.3.9.tar.xz"
+ version('3.5.9', '0ab25eb6a1509345dd085bc21a387951')
version('3.3.9', 'ff61b77e39d09f1140ab5a9cf52c58b6')
- # configure sez: Note that this version of gnutls doesn't support
+ # configure sez: Note that version 3.3.9 of gnutls doesn't support
# nettle 3.0.
- depends_on("nettle@:2.9")
+ depends_on("nettle@:2.9", when='@3.3.9')
+ depends_on("nettle", when='@3.5:')
+ depends_on("zlib", when='@3.5:')
build_directory = 'spack-build'
+
+ def configure_args(self):
+ args = []
+ if self.spec.satisfies('@3.5:'):
+ # use shipped libraries, might be turned into variants
+ args.append('--with-included-libtasn1')
+ args.append('--with-included-unistring')
+ args.append('--without-p11-kit') # p11-kit@0.23.1: ...
+ return args