racket: fix URL extrapolation (#27459)

This commit is contained in:
Arjun Guha 2021-11-16 02:38:47 -05:00 committed by GitHub
parent ada598668b
commit bb54e9a4be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,6 @@ class Racket(Package):
"""The Racket programming language."""
homepage = "https://www.racket-lang.org"
url = "https://download.racket-lang.org/releases/8.3/installers/racket-src.tgz"
maintainers = ['arjunguha']
@ -21,6 +20,10 @@ class Racket(Package):
phases = ['configure', 'build', 'install']
def url_for_version(self, version):
url = "http://mirror.racket-lang.org/installers/{0}/racket-src.tgz"
return url.format(version.up_to(2))
def configure(self, spec, prefix):
with working_dir('src'):
configure = Executable('./configure')