diff options
| author | Mark H Weaver <mhw@netris.org> | 2019-08-29 17:19:18 -0400 |
|---|---|---|
| committer | Mark H Weaver <mhw@netris.org> | 2019-08-29 17:19:18 -0400 |
| commit | 0481289cbccba2646bf654f0ae49ac9c45602d5d (patch) | |
| tree | cbe1351e2751e9d22c4c8add02991a3e6674f26a /gnu/packages/ghostscript.scm | |
| parent | c55fae452032aa4b1b63406983e9abdf70adc957 (diff) | |
| parent | 9fbf4d2a52d4d3e01059f3432bb3f78182b5a822 (diff) | |
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/ghostscript.scm')
| -rw-r--r-- | gnu/packages/ghostscript.scm | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm index 817104cde1a..3239ab4fd5c 100644 --- a/gnu/packages/ghostscript.scm +++ b/gnu/packages/ghostscript.scm | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> | 2 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> |
| 3 | ;;; Copyright © 2014, 2015, 2016, 2017 Mark H Weaver <mhw@netris.org> | 3 | ;;; Copyright © 2014, 2015, 2016, 2017 Mark H Weaver <mhw@netris.org> |
| 4 | ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net> | 4 | ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net> |
| 5 | ;;; Copyright © 2013, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org> | 5 | ;;; Copyright © 2013, 2015, 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org> |
| 6 | ;;; Copyright © 2017 Alex Vong <alexvong1995@gmail.com> | 6 | ;;; Copyright © 2017 Alex Vong <alexvong1995@gmail.com> |
| 7 | ;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> | 7 | ;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> |
| 8 | ;;; Copyright © 2017 Leo Famulari <leo@famulari.name> | 8 | ;;; Copyright © 2017 Leo Famulari <leo@famulari.name> |
| @@ -138,6 +138,12 @@ printing, and psresize, for adjusting page sizes.") | |||
| 138 | (package | 138 | (package |
| 139 | (name "ghostscript") | 139 | (name "ghostscript") |
| 140 | (version "9.27") | 140 | (version "9.27") |
| 141 | |||
| 142 | ;; The problems addressed by GHOSTSCRIPT/FIXED are not security-related, | ||
| 143 | ;; but they have a significant impact on usability, hence this graft. | ||
| 144 | ;; TODO: Ungraft on next update cycle. | ||
| 145 | (replacement ghostscript/fixed) | ||
| 146 | |||
| 141 | (source | 147 | (source |
| 142 | (origin | 148 | (origin |
| 143 | (method url-fetch) | 149 | (method url-fetch) |
| @@ -269,6 +275,25 @@ output file formats and printers.") | |||
| 269 | (home-page "https://www.ghostscript.com/") | 275 | (home-page "https://www.ghostscript.com/") |
| 270 | (license license:agpl3+))) | 276 | (license license:agpl3+))) |
| 271 | 277 | ||
| 278 | (define-public ghostscript/fixed | ||
| 279 | ;; This adds the Freetype dependency (among other things), which fixes the | ||
| 280 | ;; rendering issues described in <https://issues.guix.gnu.org/issue/34877>. | ||
| 281 | (package/inherit | ||
| 282 | ghostscript | ||
| 283 | (arguments | ||
| 284 | (substitute-keyword-arguments (package-arguments ghostscript) | ||
| 285 | ((#:configure-flags flags ''()) | ||
| 286 | `(append (list "--disable-compile-inits" | ||
| 287 | (string-append "--with-fontpath=" | ||
| 288 | (assoc-ref %build-inputs "gs-fonts") | ||
| 289 | "/share/fonts/type1/ghostscript")) | ||
| 290 | ,flags)))) | ||
| 291 | (native-inputs `(("pkg-config" ,pkg-config) ;needed for freetype | ||
| 292 | ,@(package-native-inputs ghostscript))) | ||
| 293 | (inputs `(("gs-fonts" ,gs-fonts) | ||
| 294 | ("fontconfig" ,fontconfig) | ||
| 295 | ,@(package-inputs ghostscript))))) | ||
| 296 | |||
| 272 | (define-public ghostscript/x | 297 | (define-public ghostscript/x |
| 273 | (package/inherit ghostscript | 298 | (package/inherit ghostscript |
| 274 | (name (string-append (package-name ghostscript) "-with-x")) | 299 | (name (string-append (package-name ghostscript) "-with-x")) |
