summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2024-08-19 01:40:56 -0500
committerGitHub <noreply@github.com>2024-08-19 08:40:56 +0200
commitf63261dc6504aa157be86234e196bd8efb743ed4 (patch)
tree7f7adb4ddce5248942331216df16d9964a958ce4 /var
parent1c081611ea95efd366f689afa82420c97e39cae0 (diff)
downloadspack-f63261dc6504aa157be86234e196bd8efb743ed4.tar.gz
spack-f63261dc6504aa157be86234e196bd8efb743ed4.tar.bz2
spack-f63261dc6504aa157be86234e196bd8efb743ed4.tar.xz
spack-f63261dc6504aa157be86234e196bd8efb743ed4.zip
ghostscript: add v10.01.2, v10.02.1, v10.03.1 (#45780)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ghostscript/package.py33
1 files changed, 21 insertions, 12 deletions
diff --git a/var/spack/repos/builtin/packages/ghostscript/package.py b/var/spack/repos/builtin/packages/ghostscript/package.py
index 619264271e..843de73ad7 100644
--- a/var/spack/repos/builtin/packages/ghostscript/package.py
+++ b/var/spack/repos/builtin/packages/ghostscript/package.py
@@ -14,11 +14,15 @@ class Ghostscript(AutotoolsPackage):
homepage = "https://ghostscript.com/"
url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs926/ghostscript-9.26.tar.gz"
+ git = "https://git.ghostscript.com/ghostpdl.git"
executables = [r"^gs$"]
- license("AGPL-3.0-or-later")
+ license("AGPL-3.0-or-later", checked_by="wdconinc")
+ version("10.03.1", sha256="31cd01682ad23a801cc3bbc222a55f07c4ea3e068bdfb447792d54db21a2e8ad")
+ version("10.02.1", sha256="e429e4f5b01615a4f0f93a4128e8a1a4d932dff983b1774174c79c0630717ad9")
+ version("10.01.2", sha256="a4cd61a07fec161bee35da0211a5e5cde8ff8a0aaf942fc0176715e499d21661")
version("10.0.0", sha256="a57764d70caf85e2fc0b0f59b83b92e25775631714dcdb97cc6e0cea414bb5a3")
version("9.56.1", sha256="1598b9a38659cce8448d42a73054b2f9cbfcc40a9b97eeec5f22d4d6cd1de8e6")
version("9.54.0", sha256="0646bb97f6f4d10a763f4919c54fa28b4fbdd3dff8e7de3410431c81762cade0")
@@ -29,8 +33,11 @@ class Ghostscript(AutotoolsPackage):
version("9.21", sha256="02bceadbc4dddeb6f2eec9c8b1623d945d355ca11b8b4df035332b217d58ce85")
version("9.18", sha256="5fc93079749a250be5404c465943850e3ed5ffbc0d5c07e10c7c5ee8afbbdb1b")
- depends_on("c", type="build") # generated
- depends_on("cxx", type="build") # generated
+ depends_on("c", type="build")
+
+ # --enable-dynamic is deprecated, but kept as a variant since it used to be default
+ # https://github.com/ArtifexSoftware/ghostpdl/commit/fe0f842da782b097ce13c31fccacce2374ed6d4b
+ variant("dynamic", default=False, description="Enable dynamically loaded drivers")
# https://www.ghostscript.com/ocr.html
variant("tesseract", default=False, description="Use the Tesseract library for OCR")
@@ -64,6 +71,9 @@ class Ghostscript(AutotoolsPackage):
sha256="f3c2e56aa552a030c6db2923276ff2d140e39c511f92d9ef6c74a24776940af7",
)
+ build_targets = ["default", "so"]
+ install_targets = ["install", "soinstall"]
+
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)
@@ -93,20 +103,19 @@ class Ghostscript(AutotoolsPackage):
)
def configure_args(self):
- args = ["--disable-compile-inits", "--enable-dynamic", "--with-system-libtiff"]
+ args = ["--disable-compile-inits", "--with-system-libtiff"]
if self.spec.satisfies("@9.53:"):
args.extend(self.with_or_without("tesseract"))
- return args
-
- def build(self, spec, prefix):
- make()
- make("so")
+ if self.spec.satisfies("+dynamic"):
+ args.append("--enable-dynamic")
+ if self.spec.satisfies("@10.01.0:"):
+ args.append("--disable-hidden-visibility")
+ else:
+ args.append("--disable-dynamic")
- def install(self, spec, prefix):
- make("install")
- make("soinstall")
+ return args
@classmethod
def determine_version(cls, exe):