ruby: remove unwanted dependencies (#21797)
ruby/tk is removed from stdlib at ruby2.4.0
This commit is contained in:
parent
554e736a14
commit
e1c5952130
1 changed files with 5 additions and 4 deletions
|
@ -30,9 +30,9 @@ class Ruby(AutotoolsPackage):
|
||||||
depends_on('pkgconfig', type=('build'))
|
depends_on('pkgconfig', type=('build'))
|
||||||
depends_on('libffi')
|
depends_on('libffi')
|
||||||
depends_on('zlib')
|
depends_on('zlib')
|
||||||
depends_on('libx11')
|
depends_on('libx11', when='@:2.3')
|
||||||
depends_on('tcl')
|
depends_on('tcl', when='@:2.3')
|
||||||
depends_on('tk')
|
depends_on('tk', when='@:2.3')
|
||||||
depends_on('openssl@:1.0', when='@:2.3+openssl')
|
depends_on('openssl@:1.0', when='@:2.3+openssl')
|
||||||
depends_on('openssl', when='+openssl')
|
depends_on('openssl', when='+openssl')
|
||||||
depends_on('readline', when='+readline')
|
depends_on('readline', when='+readline')
|
||||||
|
@ -75,6 +75,7 @@ def configure_args(self):
|
||||||
if '+readline' in self.spec:
|
if '+readline' in self.spec:
|
||||||
args.append("--with-readline-dir=%s"
|
args.append("--with-readline-dir=%s"
|
||||||
% self.spec['readline'].prefix)
|
% self.spec['readline'].prefix)
|
||||||
|
if '^tk' in self.spec:
|
||||||
args.append('--with-tk=%s' % self.spec['tk'].prefix)
|
args.append('--with-tk=%s' % self.spec['tk'].prefix)
|
||||||
if self.spec.satisfies("%fj"):
|
if self.spec.satisfies("%fj"):
|
||||||
args.append('--disable-dtrace')
|
args.append('--disable-dtrace')
|
||||||
|
|
Loading…
Reference in a new issue