summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjun Guha <arjunguha@users.noreply.github.com>2021-11-16 02:38:47 -0500
committerGitHub <noreply@github.com>2021-11-16 08:38:47 +0100
commitbb54e9a4beb87ff9064fb8241aa28524b59846e9 (patch)
tree162456e4af85e493a0d66a59f01eec64a29d9bf7
parentada598668bda786646505bbdba2bee579af3f70f (diff)
downloadspack-bb54e9a4beb87ff9064fb8241aa28524b59846e9.tar.gz
spack-bb54e9a4beb87ff9064fb8241aa28524b59846e9.tar.bz2
spack-bb54e9a4beb87ff9064fb8241aa28524b59846e9.tar.xz
spack-bb54e9a4beb87ff9064fb8241aa28524b59846e9.zip
racket: fix URL extrapolation (#27459)
-rw-r--r--var/spack/repos/builtin/packages/racket/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/racket/package.py b/var/spack/repos/builtin/packages/racket/package.py
index f092543448..1ae642a588 100644
--- a/var/spack/repos/builtin/packages/racket/package.py
+++ b/var/spack/repos/builtin/packages/racket/package.py
@@ -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')