diff options
author | alalazo <massimiliano.culpo@googlemail.com> | 2016-01-02 22:48:14 +0100 |
---|---|---|
committer | alalazo <massimiliano.culpo@googlemail.com> | 2016-01-02 22:48:14 +0100 |
commit | bf4231dd4b906f20d522b9df5f2cae2ba6291174 (patch) | |
tree | d745c6d061f5c86caf81af2e0ec3100226095183 /var | |
parent | 3c64c18bfc3ff561bce425ef9e40ba1c131f0c97 (diff) | |
download | spack-bf4231dd4b906f20d522b9df5f2cae2ba6291174.tar.gz spack-bf4231dd4b906f20d522b9df5f2cae2ba6291174.tar.bz2 spack-bf4231dd4b906f20d522b9df5f2cae2ba6291174.tar.xz spack-bf4231dd4b906f20d522b9df5f2cae2ba6291174.zip |
depends_on and when multimethod support boolean
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/packages/openssl/package.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/var/spack/packages/openssl/package.py b/var/spack/packages/openssl/package.py index 40648fca49..1fa288a36d 100644 --- a/var/spack/packages/openssl/package.py +++ b/var/spack/packages/openssl/package.py @@ -1,5 +1,7 @@ from spack import * +import spack.util.architecture as arch + class Openssl(Package): """The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source @@ -26,3 +28,16 @@ class Openssl(Package): make() make("install") + + @when(arch.os_is_in('darwin')) + def install(self, spec, prefix): + perl = which('perl') + perl("./Configure", + "--prefix=%s" % prefix, + "--openssldir=%s/etc/openssl" % prefix, + "zlib", + "no-krb5", + "shared", + "darwin64-x86_64-cc") + filter_file(r'-arch x86_64', '', 'Makefile') + |