diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-05 14:33:23 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-05 14:33:23 -0800 |
commit | 3dd630d0a567964acd11bee23ebbc52c7d1c61c5 (patch) | |
tree | 0c48a8dba12ae117453a12ee8fa6aec6411ebd0f /var | |
parent | 0b864aacdc96cecf9eb42bff51de631fa2212931 (diff) | |
download | spack-3dd630d0a567964acd11bee23ebbc52c7d1c61c5.tar.gz spack-3dd630d0a567964acd11bee23ebbc52c7d1c61c5.tar.bz2 spack-3dd630d0a567964acd11bee23ebbc52c7d1c61c5.tar.xz spack-3dd630d0a567964acd11bee23ebbc52c7d1c61c5.zip |
Make openssl a variant in libevent.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libevent/package.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/libevent/package.py b/var/spack/repos/builtin/packages/libevent/package.py index 2a44c49325..714a155dc0 100644 --- a/var/spack/repos/builtin/packages/libevent/package.py +++ b/var/spack/repos/builtin/packages/libevent/package.py @@ -22,12 +22,16 @@ class Libevent(Package): version('2.0.13', 'af786b4b3f790c9d3279792edf7867fc') version('2.0.12', '42986228baf95e325778ed328a93e070') - - depends_on('openssl') - + variant('openssl', default=True, description="Build with encryption enabled at the libevent level.") + depends_on('openssl', when='+openssl') def install(self, spec, prefix): - configure("--prefix=%s" % prefix) + configure_args = [] + if '+openssl' in spec: + configure_args.append('--enable-openssl') + else: + configure_args.append('--enable-openssl') + configure("--prefix=%s" % prefix, *configure_args) make() make("install") |