ruby: remove unwanted dependencies (#21797)

ruby/tk is removed from stdlib at ruby2.4.0
This commit is contained in:
holrock 2021-02-19 19:28:22 +09:00 committed by GitHub
parent 554e736a14
commit e1c5952130
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')