diff options
| author | Marius Bakke <mbakke@fastmail.com> | 2020-03-25 20:19:43 +0100 |
|---|---|---|
| committer | Marius Bakke <mbakke@fastmail.com> | 2020-03-26 22:35:34 +0100 |
| commit | 159b62df5f1bff841e9a498af60e8fbc68003ee7 (patch) | |
| tree | 6dd3c7f4a01bd8f86151d69ef67b8a107d960205 /gnu/packages/ghostscript.scm | |
| parent | ad8254c23a86c3ca4ca32bc68fc8d76954aa80fd (diff) | |
gnu: ghostscript: Update to 9.52.
* gnu/packages/ghostscript.scm (ghostscript): Update to 9.52.
[arguments]: Remove obsolete phases.
Diffstat (limited to 'gnu/packages/ghostscript.scm')
| -rw-r--r-- | gnu/packages/ghostscript.scm | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm index ae689925e1e..4d56f05cf20 100644 --- a/gnu/packages/ghostscript.scm +++ b/gnu/packages/ghostscript.scm | |||
| @@ -159,7 +159,7 @@ printing, and psresize, for adjusting page sizes.") | |||
| 159 | (define-public ghostscript | 159 | (define-public ghostscript |
| 160 | (package | 160 | (package |
| 161 | (name "ghostscript") | 161 | (name "ghostscript") |
| 162 | (version "9.51") | 162 | (version "9.52") |
| 163 | (source | 163 | (source |
| 164 | (origin | 164 | (origin |
| 165 | (method url-fetch) | 165 | (method url-fetch) |
| @@ -169,7 +169,7 @@ printing, and psresize, for adjusting page sizes.") | |||
| 169 | "/ghostscript-" version ".tar.xz")) | 169 | "/ghostscript-" version ".tar.xz")) |
| 170 | (sha256 | 170 | (sha256 |
| 171 | (base32 | 171 | (base32 |
| 172 | "0wdpcq9lq19v8an8xs28cgg7vfzb23f1j12m9p2wdnwa1vwk64by")) | 172 | "0z1w42y2jmcpl2m1l3z0sfii6zmvzcwcgzn6bydklia6ig7jli2p")) |
| 173 | (patches (search-patches "ghostscript-no-header-creationdate.patch" | 173 | (patches (search-patches "ghostscript-no-header-creationdate.patch" |
| 174 | "ghostscript-no-header-id.patch" | 174 | "ghostscript-no-header-id.patch" |
| 175 | "ghostscript-no-header-uuid.patch")) | 175 | "ghostscript-no-header-uuid.patch")) |
| @@ -240,31 +240,7 @@ printing, and psresize, for adjusting page sizes.") | |||
| 240 | (("/bin/sh") (which "sh"))) | 240 | (("/bin/sh") (which "sh"))) |
| 241 | #t)) | 241 | #t)) |
| 242 | ,@(if (%current-target-system) | 242 | ,@(if (%current-target-system) |
| 243 | `((add-after 'unpack 'define-ARCH_MAX_SIZE_T | 243 | `((add-after 'configure 'add-native-lz |
| 244 | (lambda _ | ||
| 245 | ;; XXX: arch_autoconf.h is missing the recent addition of | ||
| 246 | ;; ARCH_MAX_SIZE_T. Just add it here based on the definition | ||
| 247 | ;; in "base/genarch.c". This can likely be removed for | ||
| 248 | ;; Ghostscript > 9.51. | ||
| 249 | (substitute* "arch/arch_autoconf.h.in" | ||
| 250 | (("#define ARCH_MAX_ULONG.*" all) | ||
| 251 | (string-append all "\n" | ||
| 252 | "#define ARCH_MAX_SIZE_T " | ||
| 253 | "((size_t)~0L + (size_t)0)\n"))) | ||
| 254 | #t)) | ||
| 255 | (add-before 'configure 'do-not-fail-without-native-freetype | ||
| 256 | (lambda _ | ||
| 257 | ;; The configure script recurses to build the native tools. | ||
| 258 | ;; They are built with --disable-freetype, which was made a | ||
| 259 | ;; hard error in 9.51, causing a build failure because a | ||
| 260 | ;; native freetype is not detected. Just ignore the check | ||
| 261 | ;; because it's not needed for these auxiliary tools. | ||
| 262 | (substitute* "configure" | ||
| 263 | (("as_fn_error \\$\\? \"(No usable Freetype.*found)\".*" all msg) | ||
| 264 | (string-append "$as_echo \"$as_me:${as_lineno-$LINENO}: " | ||
| 265 | "WARNING: " msg "\"\n"))) | ||
| 266 | #t)) | ||
| 267 | (add-after 'configure 'add-native-lz | ||
| 268 | (lambda _ | 244 | (lambda _ |
| 269 | ;; Add missing '-lz' for native tools such as 'mkromfs'. | 245 | ;; Add missing '-lz' for native tools such as 'mkromfs'. |
| 270 | (substitute* "Makefile" | 246 | (substitute* "Makefile" |
