Skip to content
Snippets Groups Projects
Unverified Commit cf140b5f authored by Adam J. Stewart's avatar Adam J. Stewart Committed by GitHub
Browse files

Add url_for_version and list_url to Ruby package (#8216)

parent f946a83c
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,8 @@ class Ruby(AutotoolsPackage):
homepage = "https://www.ruby-lang.org/"
url = "http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.0.tar.gz"
list_url = "http://cache.ruby-lang.org/pub/ruby/"
list_depth = 1
version('2.2.0', 'cd03b28fd0b555970f5c4fd481700852')
......@@ -63,6 +65,10 @@ class Ruby(AutotoolsPackage):
expand=False
)
def url_for_version(self, version):
url = "http://cache.ruby-lang.org/pub/ruby/{0}/ruby-{1}.tar.gz"
return url.format(version.up_to(2), version)
def configure_args(self):
args = []
if '+openssl' in self.spec:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment