summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-07-04 21:22:38 -0700
committerGitHub <noreply@github.com>2016-07-04 21:22:38 -0700
commit1de675e976d6cd621cdc31e5555a3f652c20dfb1 (patch)
treef85ff4578728066c0a5d46db54991dd2c29d4b5e
parent9fb80303704a72ed295563a528f18d43f1170d08 (diff)
parent53bbbfbe21e795d3400f89e677ebc4edf33b07d4 (diff)
downloadspack-1de675e976d6cd621cdc31e5555a3f652c20dfb1.tar.gz
spack-1de675e976d6cd621cdc31e5555a3f652c20dfb1.tar.bz2
spack-1de675e976d6cd621cdc31e5555a3f652c20dfb1.tar.xz
spack-1de675e976d6cd621cdc31e5555a3f652c20dfb1.zip
Merge pull request #1165 from robertdfrench/ruby-needs-ffi-zlib
Ruby 2.2.0 needs ffi and zlib
-rw-r--r--var/spack/repos/builtin/packages/ruby/package.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/ruby/package.py b/var/spack/repos/builtin/packages/ruby/package.py
index dd71913fc9..8dc314c171 100644
--- a/var/spack/repos/builtin/packages/ruby/package.py
+++ b/var/spack/repos/builtin/packages/ruby/package.py
@@ -35,9 +35,20 @@ class Ruby(Package):
extendable = True
version('2.2.0', 'cd03b28fd0b555970f5c4fd481700852')
+ depends_on('libffi')
+ depends_on('zlib')
+ variant('openssl', default=False, description="Enable OpenSSL support")
+ depends_on('openssl', when='+openssl')
+ variant('readline', default=False, description="Enable Readline support")
+ depends_on('readline', when='+readline')
def install(self, spec, prefix):
- configure("--prefix=%s" % prefix)
+ options = ["--prefix=%s" % prefix]
+ if '+openssl' in spec:
+ options.append("--with-openssl-dir=%s" % spec['openssl'].prefix)
+ if '+readline' in spec:
+ options.append("--with-readline-dir=%s" % spec['readline'].prefix)
+ configure(*options)
make()
make("install")