parent
66ef3c2b18
commit
86e00e7294
@ -15,6 +15,7 @@ class Ruby(AutotoolsPackage):
|
|||||||
list_url = "http://cache.ruby-lang.org/pub/ruby/"
|
list_url = "http://cache.ruby-lang.org/pub/ruby/"
|
||||||
list_depth = 1
|
list_depth = 1
|
||||||
|
|
||||||
|
version('2.5.3', '9828d03852c37c20fa333a0264f2490f07338576734d910ee3fd538c9520846c')
|
||||||
version('2.2.0', 'cd03b28fd0b555970f5c4fd481700852')
|
version('2.2.0', 'cd03b28fd0b555970f5c4fd481700852')
|
||||||
|
|
||||||
variant('openssl', default=True, description="Enable OpenSSL support")
|
variant('openssl', default=True, description="Enable OpenSSL support")
|
||||||
@ -28,6 +29,7 @@ class Ruby(AutotoolsPackage):
|
|||||||
depends_on('libx11')
|
depends_on('libx11')
|
||||||
depends_on('tcl')
|
depends_on('tcl')
|
||||||
depends_on('tk')
|
depends_on('tk')
|
||||||
|
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')
|
||||||
|
|
||||||
@ -98,7 +100,8 @@ def post_install(self):
|
|||||||
'GlobalSignRootCA.pem')
|
'GlobalSignRootCA.pem')
|
||||||
rubygems_certs_path = join_path(self.spec.prefix.lib,
|
rubygems_certs_path = join_path(self.spec.prefix.lib,
|
||||||
'ruby',
|
'ruby',
|
||||||
'{0}'.format(self.spec.version.dotted),
|
'{0}.0'.format(self.spec.version.
|
||||||
|
up_to(2)),
|
||||||
'rubygems',
|
'rubygems',
|
||||||
'ssl_certs')
|
'ssl_certs')
|
||||||
install(rubygems_updated_cert_path, rubygems_certs_path)
|
install(rubygems_updated_cert_path, rubygems_certs_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user