summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Young <A-N-Other@users.noreply.github.com>2023-06-15 20:39:57 +0100
committerGitHub <noreply@github.com>2023-06-15 12:39:57 -0700
commit2f97c6ead2b13390e162d535e47adb9ba87efea2 (patch)
tree452a6c9d49e700e5df697e717ac3a811013d9d77
parent1df4afb53f3b9bb9ac8e8df5e9a60bc8f2767d44 (diff)
downloadspack-2f97c6ead2b13390e162d535e47adb9ba87efea2.tar.gz
spack-2f97c6ead2b13390e162d535e47adb9ba87efea2.tar.bz2
spack-2f97c6ead2b13390e162d535e47adb9ba87efea2.tar.xz
spack-2f97c6ead2b13390e162d535e47adb9ba87efea2.zip
perl-gd: update to 2.77, update urls (#38413)
* perl-gd: update to 2.77, update urls --------- Co-authored-by: LMS Bioinformatics <bioinformatics@lms.mrc.ac.uk>
-rw-r--r--var/spack/repos/builtin/packages/perl-gd/package.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/perl-gd/package.py b/var/spack/repos/builtin/packages/perl-gd/package.py
index 19af45c9ca..9cfcd9679a 100644
--- a/var/spack/repos/builtin/packages/perl-gd/package.py
+++ b/var/spack/repos/builtin/packages/perl-gd/package.py
@@ -10,11 +10,19 @@ class PerlGd(PerlPackage):
"""Interface to Gd Graphics Library"""
homepage = "https://metacpan.org/pod/GD"
- url = "http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.53.tar.gz"
+ url = "https://cpan.metacpan.org/authors/id/R/RU/RURBAN/GD-2.77.tar.gz"
+ version("2.77", sha256="b56c88b8ef3be016ce29bb62dd1f1b6f6b5fbcaa57fea59e9468af6901016fb5")
version("2.53", sha256="d05d01fe95e581adb3468cf05ab5d405db7497c0fb3ec7ecf23d023705fab7aa")
depends_on("perl-module-build", type="build")
depends_on("perl-extutils-makemaker", type=("build", "run"))
depends_on("perl-extutils-pkgconfig", type=("build", "run"))
depends_on("libgd")
+
+ def url_for_version(self, version):
+ if version <= Version("2.56"):
+ url = "http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-{0}.tar.gz"
+ else:
+ url = "https://cpan.metacpan.org/authors/id/R/RU/RURBAN/GD-{0}.tar.gz"
+ return url.format(version)