racket: fix URL extrapolation (#27459)
This commit is contained in:
parent
ada598668b
commit
bb54e9a4be
1 changed files with 4 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue