diff options
| author | Tobias Geerinckx-Rice <me@tobias.gr> | 2023-07-16 02:00:04 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:42:03 +0200 |
| commit | ab0a4c44d6fcfa2126a1b25c78b42f7d7dcaab38 (patch) | |
| tree | d0a66a7baedc54714af25e1540ac9b93066be71d /gnu/packages | |
| parent | 0e0afe22e43b6a30d5d4a901fd3c246590250368 (diff) | |
gnu: psutils: Stop installing broken scripts.
* gnu/packages/ghostscript.scm (psutils)[inputs]: Add perl-ipc-run3.
[arguments]: Add a new 'wrap-scripts phase.
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/ghostscript.scm | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm index 502b41bb992..19389bed465 100644 --- a/gnu/packages/ghostscript.scm +++ b/gnu/packages/ghostscript.scm | |||
| @@ -118,17 +118,30 @@ paper size.") | |||
| 118 | (base32 | 118 | (base32 |
| 119 | "1nmp0hb7c4a315vv1mqw2cbckvca8bzh1cv3gdvwwy24w9qba6p3")))) | 119 | "1nmp0hb7c4a315vv1mqw2cbckvca8bzh1cv3gdvwwy24w9qba6p3")))) |
| 120 | (build-system gnu-build-system) | 120 | (build-system gnu-build-system) |
| 121 | (inputs (list perl)) | 121 | (inputs (list perl perl-ipc-run3)) |
| 122 | (native-inputs | 122 | (native-inputs |
| 123 | (list libpaper)) | 123 | (list libpaper)) |
| 124 | (arguments | 124 | (arguments |
| 125 | (list #:tests? #f ;FIXME: requires files not present in tarball | 125 | (list |
| 126 | #:configure-flags | 126 | #:tests? #f ; FIXME: requires files not present in tarball |
| 127 | ;; Help the build system locate Perl when cross-compiling. | 127 | #:configure-flags |
| 128 | (if (%current-target-system) | 128 | ;; Help the build system locate Perl when cross-compiling. |
| 129 | #~(list (string-append "ac_cv_path_PERL=" | 129 | (if (%current-target-system) |
| 130 | (search-input-file %build-inputs "bin/perl"))) | 130 | #~(list (string-append "ac_cv_path_PERL=" |
| 131 | #~'()))) | 131 | (search-input-file %build-inputs "bin/perl"))) |
| 132 | #~'()) | ||
| 133 | #:phases | ||
| 134 | #~(modify-phases %standard-phases | ||
| 135 | (add-after 'install 'wrap-scripts | ||
| 136 | (lambda _ | ||
| 137 | (let ((perl5lib (getenv "PERL5LIB"))) | ||
| 138 | (for-each | ||
| 139 | (lambda (file) | ||
| 140 | (wrap-program file | ||
| 141 | `("PERL5LIB" ":" prefix | ||
| 142 | (,(string-append perl5lib ":" #$output | ||
| 143 | "/lib/perl5/site_perl"))))) | ||
| 144 | (find-files (string-append #$output "/bin") ".")))))))) | ||
| 132 | (synopsis "Collection of utilities for manipulating PostScript documents") | 145 | (synopsis "Collection of utilities for manipulating PostScript documents") |
| 133 | (description | 146 | (description |
| 134 | "PSUtils is a collection of utilities for manipulating PostScript | 147 | "PSUtils is a collection of utilities for manipulating PostScript |
