diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-04-20 15:41:47 -0400 |
|---|---|---|
| committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-04-21 00:44:02 -0400 |
| commit | 3b1f0a7b05b9cc3bbea378d90a05927f5450aff4 (patch) | |
| tree | 686172dd307a7fcebe0e586d03d35e0b651893d5 /gnu/packages/gettext.scm | |
| parent | f07cf9807fd464de0efe071a5ea193672baa369b (diff) | |
gnu: po4a: Remove patch-docbook-xml phase.
* gnu/packages/gettext.scm (po4a) [arguments]: Remove patch-docbook-xml phase.
Remove trailing #t. Use gexps.
[native-inputs]: Remove labels.
Diffstat (limited to 'gnu/packages/gettext.scm')
| -rw-r--r-- | gnu/packages/gettext.scm | 93 |
1 files changed, 43 insertions, 50 deletions
diff --git a/gnu/packages/gettext.scm b/gnu/packages/gettext.scm index 3aae3323112..9387f4fb8a5 100644 --- a/gnu/packages/gettext.scm +++ b/gnu/packages/gettext.scm | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> | 12 | ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> |
| 13 | ;;; Copyright © 2020 EuAndreh <eu@euandre.org> | 13 | ;;; Copyright © 2020 EuAndreh <eu@euandre.org> |
| 14 | ;;; Copyright © 2022 gemmaro <gemmaro.dev@gmail.com> | 14 | ;;; Copyright © 2022 gemmaro <gemmaro.dev@gmail.com> |
| 15 | ;;; Copyright © 2023 Maxim Cournoyer maxim.cournoyer@gmail.com> | ||
| 15 | ;;; | 16 | ;;; |
| 16 | ;;; This file is part of GNU Guix. | 17 | ;;; This file is part of GNU Guix. |
| 17 | ;;; | 18 | ;;; |
| @@ -250,57 +251,49 @@ from Markdown files.") | |||
| 250 | "045i8izp2dqmkdzvnxyy5sy27ffrwl85dk8n6cmg1804ikk28qdg")))) | 251 | "045i8izp2dqmkdzvnxyy5sy27ffrwl85dk8n6cmg1804ikk28qdg")))) |
| 251 | (build-system perl-build-system) | 252 | (build-system perl-build-system) |
| 252 | (arguments | 253 | (arguments |
| 253 | `(#:phases | 254 | (list |
| 254 | (modify-phases %standard-phases | 255 | #:phases |
| 255 | (add-after 'install 'wrap-programs | 256 | #~(modify-phases %standard-phases |
| 256 | (lambda* (#:key inputs outputs #:allow-other-keys) | 257 | (add-after 'install 'wrap-programs |
| 257 | ;; Make sure all executables in "bin" find the Perl modules | 258 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 258 | ;; required by this package at runtime. | 259 | ;; Make sure all executables in "bin" find the Perl modules |
| 259 | (let* ((out (assoc-ref outputs "out")) | 260 | ;; required by this package at runtime. |
| 260 | (bin (string-append out "/bin/")) | 261 | (let* ((out #$output) |
| 261 | (path (string-append out "/lib/perl5/site_perl:" | 262 | (bin (string-append out "/bin/")) |
| 262 | (string-join | 263 | (path (string-append |
| 263 | (map (lambda (name) | 264 | out "/lib/perl5/site_perl:" |
| 264 | (string-append (assoc-ref inputs name) | 265 | (string-join |
| 265 | "/lib/perl5/site_perl")) | 266 | (map (lambda (name) |
| 266 | (list "perl-gettext" | 267 | (string-append (assoc-ref inputs name) |
| 267 | "perl-pod-parser" | 268 | "/lib/perl5/site_perl")) |
| 268 | "perl-sgmls" | 269 | (list "perl-gettext" |
| 269 | "perl-syntax-keyword-try" | 270 | "perl-pod-parser" |
| 270 | "perl-xs-parse-keyword" | 271 | "perl-sgmls" |
| 271 | "perl-term-readkey" | 272 | "perl-syntax-keyword-try" |
| 272 | "perl-text-wrapi18n" | 273 | "perl-xs-parse-keyword" |
| 273 | "perl-unicode-linebreak" | 274 | "perl-term-readkey" |
| 274 | "perl-yaml-tiny")) | 275 | "perl-text-wrapi18n" |
| 275 | ":")))) | 276 | "perl-unicode-linebreak" |
| 276 | (for-each (lambda (file) | 277 | "perl-yaml-tiny")) |
| 277 | (wrap-program file | 278 | ":")))) |
| 278 | `("PERL5LIB" ":" prefix (,path)))) | 279 | (for-each (lambda (file) |
| 279 | (find-files bin "\\.*$")) | 280 | (wrap-program file |
| 280 | #t))) | 281 | `("PERL5LIB" ":" prefix (,path)))) |
| 281 | (add-after 'unpack 'patch-docbook-xml | 282 | (find-files bin "\\.*$"))))) |
| 282 | (lambda* (#:key inputs #:allow-other-keys) | 283 | (add-before 'check 'disable-failing-tests |
| 283 | (substitute* (find-files "." ".*\\.xml(-good)?") | 284 | (lambda _ |
| 284 | (("http://www.oasis-open.org/docbook/xml/4.1.2/") | 285 | ;; FIXME: fails despite of importing SGMLS |
| 285 | (string-append (assoc-ref inputs "docbook-xml") | 286 | (delete-file "t/fmt-sgml.t")))))) |
| 286 | "/xml/dtd/docbook/"))) | ||
| 287 | #t)) | ||
| 288 | (add-before 'check 'disable-failing-tests | ||
| 289 | (lambda _ | ||
| 290 | ;; FIXME: fails despite of importing SGMLS | ||
| 291 | (delete-file "t/fmt-sgml.t") | ||
| 292 | #t))))) | ||
| 293 | (native-inputs | 287 | (native-inputs |
| 294 | `(("gettext" ,gettext-minimal) | 288 | (list gettext-minimal |
| 295 | ("perl-module-build" ,perl-module-build) | 289 | perl-module-build |
| 296 | ("docbook-xsl" ,docbook-xsl) | 290 | docbook-xsl |
| 297 | ("libxml2" ,libxml2) | 291 | libxml2 |
| 298 | ("xsltproc" ,libxslt) | 292 | libxslt |
| 299 | 293 | ;; For tests. | |
| 300 | ;; For tests. | 294 | docbook-xml-4.1.2 |
| 301 | ("docbook-xml" ,docbook-xml-4.1.2) | 295 | perl-test-pod |
| 302 | ("perl-test-pod" ,perl-test-pod) | 296 | texlive-tiny)) |
| 303 | ("texlive" ,texlive-tiny))) | ||
| 304 | (inputs | 297 | (inputs |
| 305 | (list bash-minimal | 298 | (list bash-minimal |
| 306 | perl-gettext | 299 | perl-gettext |
