racket: fix URL extrapolation (#27459)
This commit is contained in:
parent
ada598668b
commit
bb54e9a4be
@ -10,7 +10,6 @@ class Racket(Package):
|
|||||||
"""The Racket programming language."""
|
"""The Racket programming language."""
|
||||||
|
|
||||||
homepage = "https://www.racket-lang.org"
|
homepage = "https://www.racket-lang.org"
|
||||||
url = "https://download.racket-lang.org/releases/8.3/installers/racket-src.tgz"
|
|
||||||
|
|
||||||
maintainers = ['arjunguha']
|
maintainers = ['arjunguha']
|
||||||
|
|
||||||
@ -21,6 +20,10 @@ class Racket(Package):
|
|||||||
|
|
||||||
phases = ['configure', 'build', 'install']
|
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):
|
def configure(self, spec, prefix):
|
||||||
with working_dir('src'):
|
with working_dir('src'):
|
||||||
configure = Executable('./configure')
|
configure = Executable('./configure')
|
||||||
|
Loading…
Reference in New Issue
Block a user