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>
This commit is contained in:
parent
1df4afb53f
commit
2f97c6ead2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user