ghostscript: add version 9.21 and handle new URL format (#3898)
* ghostscript: add version 9.21 and handle new URL format * ghostscript: add url of latest version to fix `spack versions` * ghostscript: use github for all versions our package provides (>= 9.18)
This commit is contained in:
parent
455cae01c2
commit
41e3e7dbff
@ -29,14 +29,19 @@ class Ghostscript(Package):
|
||||
"""An interpreter for the PostScript language and for PDF."""
|
||||
|
||||
homepage = "http://ghostscript.com/"
|
||||
url = "http://downloads.ghostscript.com/public/old-gs-releases/ghostscript-9.18.tar.gz"
|
||||
url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs921/ghostscript-9.21.tar.gz"
|
||||
|
||||
version('9.21', '6f60d7fcb5eef6a8bec5abedf21c6a7008a8c0c7')
|
||||
version('9.18', '33a47567d7a591c00a253caddd12a88a')
|
||||
|
||||
parallel = False
|
||||
|
||||
depends_on('libtiff')
|
||||
|
||||
def url_for_version(self, version):
|
||||
baseurl = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs{0}/ghostscript-{1}.tar.gz"
|
||||
return baseurl.format(version.joined, version.dotted)
|
||||
|
||||
def install(self, spec, prefix):
|
||||
configure('--prefix={0}'.format(prefix),
|
||||
'--with-system-libtiff')
|
||||
|
Loading…
Reference in New Issue
Block a user