diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2017-02-21 21:49:31 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2017-02-21 21:49:31 +0200 |
| commit | a6d352cc017e30fec2301cdf7b496ab630ba0a41 (patch) | |
| tree | 2ce5cc65e15f15a5d0465fe347f2a1d4b283fb79 /gnu/packages/ghostscript.scm | |
| parent | 64465558765e7d48b531cacfcf1e5f28d8eb2a5f (diff) | |
gnu: gs-fonts: Use 'modify-phases'.
* gnu/packages/ghostscript.scm (gs-fonts)[arguments]: Use
'modify-phases' syntax.
Diffstat (limited to 'gnu/packages/ghostscript.scm')
| -rw-r--r-- | gnu/packages/ghostscript.scm | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm index 826a2fc3748..7b3182fd8b4 100644 --- a/gnu/packages/ghostscript.scm +++ b/gnu/packages/ghostscript.scm | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net> | 4 | ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net> |
| 5 | ;;; Copyright © 2013, 2015, 2016 Ludovic Courtès <ludo@gnu.org> | 5 | ;;; Copyright © 2013, 2015, 2016 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 Efraim Flashner <efraim@flashner.co.il> | ||
| 7 | ;;; | 8 | ;;; |
| 8 | ;;; This file is part of GNU Guix. | 9 | ;;; This file is part of GNU Guix. |
| 9 | ;;; | 10 | ;;; |
| @@ -271,25 +272,19 @@ architecture.") | |||
| 271 | (build-system gnu-build-system) | 272 | (build-system gnu-build-system) |
| 272 | (arguments | 273 | (arguments |
| 273 | `(#:tests? #f ; nothing to check, just files to copy | 274 | `(#:tests? #f ; nothing to check, just files to copy |
| 274 | #:modules ((guix build gnu-build-system) | ||
| 275 | (guix build utils) | ||
| 276 | (srfi srfi-1)) ; for alist-delete | ||
| 277 | #:phases | 275 | #:phases |
| 278 | (alist-delete | 276 | (modify-phases %standard-phases |
| 279 | 'configure | 277 | (delete 'configure) |
| 280 | (alist-delete | 278 | (delete 'build) |
| 281 | 'build | 279 | (replace 'install |
| 282 | (alist-replace | 280 | (lambda* (#:key outputs #:allow-other-keys) |
| 283 | 'install | 281 | (let* ((out (assoc-ref outputs "out")) |
| 284 | (lambda* (#:key outputs #:allow-other-keys) | 282 | (dir (string-append out "/share/fonts/type1/ghostscript"))) |
| 285 | (let* ((out (assoc-ref outputs "out")) | 283 | (mkdir-p dir) |
| 286 | (dir (string-append out "/share/fonts/type1/ghostscript"))) | 284 | (for-each |
| 287 | (mkdir-p dir) | 285 | (lambda (file) |
| 288 | (for-each | 286 | (copy-file file (string-append dir "/" file))) |
| 289 | (lambda (file) | 287 | (find-files "." "pfb|afm")))))))) |
| 290 | (copy-file file (string-append dir "/" file))) | ||
| 291 | (find-files "." "pfb|afm")))) | ||
| 292 | %standard-phases))))) | ||
| 293 | (synopsis "Free replacements for the PostScript fonts") | 288 | (synopsis "Free replacements for the PostScript fonts") |
| 294 | (description | 289 | (description |
| 295 | "Ghostscript fonts provides fonts and font metrics customarily distributed with | 290 | "Ghostscript fonts provides fonts and font metrics customarily distributed with |
