summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorholrock <ispeporez@gmail.com>2021-02-19 19:28:22 +0900
committerGitHub <noreply@github.com>2021-02-19 10:28:22 +0000
commite1c5952130eb9774a566154a4dcc1d22b52a9b3d (patch)
tree73a2886a5c2ef47e9c88dd2cc151a08787972e2f /var
parent554e736a1457425b86a2afddbe29e5889a9858a3 (diff)
downloadspack-e1c5952130eb9774a566154a4dcc1d22b52a9b3d.tar.gz
spack-e1c5952130eb9774a566154a4dcc1d22b52a9b3d.tar.bz2
spack-e1c5952130eb9774a566154a4dcc1d22b52a9b3d.tar.xz
spack-e1c5952130eb9774a566154a4dcc1d22b52a9b3d.zip
ruby: remove unwanted dependencies (#21797)
ruby/tk is removed from stdlib at ruby2.4.0
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ruby/package.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/ruby/package.py b/var/spack/repos/builtin/packages/ruby/package.py
index b86cb0e306..ae5a76e5b5 100644
--- a/var/spack/repos/builtin/packages/ruby/package.py
+++ b/var/spack/repos/builtin/packages/ruby/package.py
@@ -30,9 +30,9 @@ class Ruby(AutotoolsPackage):
depends_on('pkgconfig', type=('build'))
depends_on('libffi')
depends_on('zlib')
- depends_on('libx11')
- depends_on('tcl')
- depends_on('tk')
+ depends_on('libx11', when='@:2.3')
+ depends_on('tcl', when='@:2.3')
+ depends_on('tk', when='@:2.3')
depends_on('openssl@:1.0', when='@:2.3+openssl')
depends_on('openssl', when='+openssl')
depends_on('readline', when='+readline')
@@ -75,7 +75,8 @@ class Ruby(AutotoolsPackage):
if '+readline' in self.spec:
args.append("--with-readline-dir=%s"
% self.spec['readline'].prefix)
- args.append('--with-tk=%s' % self.spec['tk'].prefix)
+ if '^tk' in self.spec:
+ args.append('--with-tk=%s' % self.spec['tk'].prefix)
if self.spec.satisfies("%fj"):
args.append('--disable-dtrace')
return args