diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2023-01-30 11:33:18 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2023-01-30 12:39:40 +0200 |
| commit | 4cf1acc7f3033b50b0bf19e02c9f522d522d338c (patch) | |
| tree | 9fd64956ee60304c15387eb394cd649e49f01467 /gnu/packages/gettext.scm | |
| parent | edb8c09addd186d9538d43b12af74d6c7aeea082 (diff) | |
| parent | 595b53b74e3ef57a1c0c96108ba86d38a170a241 (diff) | |
Merge remote-tracking branch 'origin/master' into core-updates
Conflicts:
doc/guix.texi
gnu/local.mk
gnu/packages/admin.scm
gnu/packages/base.scm
gnu/packages/chromium.scm
gnu/packages/compression.scm
gnu/packages/databases.scm
gnu/packages/diffoscope.scm
gnu/packages/freedesktop.scm
gnu/packages/gnome.scm
gnu/packages/gnupg.scm
gnu/packages/guile.scm
gnu/packages/inkscape.scm
gnu/packages/llvm.scm
gnu/packages/openldap.scm
gnu/packages/pciutils.scm
gnu/packages/ruby.scm
gnu/packages/samba.scm
gnu/packages/sqlite.scm
gnu/packages/statistics.scm
gnu/packages/syndication.scm
gnu/packages/tex.scm
gnu/packages/tls.scm
gnu/packages/version-control.scm
gnu/packages/xml.scm
guix/build-system/copy.scm
guix/scripts/home.scm
Diffstat (limited to 'gnu/packages/gettext.scm')
| -rw-r--r-- | gnu/packages/gettext.scm | 59 |
1 files changed, 37 insertions, 22 deletions
diff --git a/gnu/packages/gettext.scm b/gnu/packages/gettext.scm index bf4c98e36c0..0cc424acaef 100644 --- a/gnu/packages/gettext.scm +++ b/gnu/packages/gettext.scm | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | ;;; Copyright © 2019 Miguel <rosen644835@gmail.com> | 11 | ;;; Copyright © 2019 Miguel <rosen644835@gmail.com> |
| 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 | ;;; | 15 | ;;; |
| 15 | ;;; This file is part of GNU Guix. | 16 | ;;; This file is part of GNU Guix. |
| 16 | ;;; | 17 | ;;; |
| @@ -36,6 +37,7 @@ | |||
| 36 | #:use-module (guix build-system gnu) | 37 | #:use-module (guix build-system gnu) |
| 37 | #:use-module (guix build-system perl) | 38 | #:use-module (guix build-system perl) |
| 38 | #:use-module (guix build-system python) | 39 | #:use-module (guix build-system python) |
| 40 | #:use-module (gnu packages bash) | ||
| 39 | #:use-module (gnu packages check) | 41 | #:use-module (gnu packages check) |
| 40 | #:use-module (gnu packages docbook) | 42 | #:use-module (gnu packages docbook) |
| 41 | #:use-module (gnu packages emacs) | 43 | #:use-module (gnu packages emacs) |
| @@ -121,13 +123,19 @@ | |||
| 121 | "coreutils-gnulib-tests.patch"))))) | 123 | "coreutils-gnulib-tests.patch"))))) |
| 122 | '()) | 124 | '()) |
| 123 | 125 | ||
| 126 | #$@(if (hurd-target?) | ||
| 127 | #~((substitute* | ||
| 128 | "gettext-tools/gnulib-tests/Makefile.in" | ||
| 129 | ;; See 'coreutils' for the rationale. | ||
| 130 | ((" test-tls\\$\\(EXEEXT\\) ") " "))) | ||
| 131 | '()) | ||
| 132 | |||
| 124 | #t))))) | 133 | #t))))) |
| 125 | 134 | ||
| 126 | ;; When tests fail, we want to know the details. | 135 | ;; When tests fail, we want to know the details. |
| 127 | #:make-flags #~'("VERBOSE=yes" | 136 | #:make-flags #~'("VERBOSE=yes" |
| 128 | #$@(if (hurd-target?) | 137 | #$@(if (hurd-target?) |
| 129 | ;; Linking to libgettextlib.so makes test-raise fail | 138 | '("XFAIL_TESTS=test-perror2") |
| 130 | '("XFAIL_TESTS=test-raise") | ||
| 131 | '())))) | 139 | '())))) |
| 132 | (home-page "https://www.gnu.org/software/gettext/") | 140 | (home-page "https://www.gnu.org/software/gettext/") |
| 133 | (synopsis | 141 | (synopsis |
| @@ -234,14 +242,14 @@ from Markdown files.") | |||
| 234 | (define-public po4a | 242 | (define-public po4a |
| 235 | (package | 243 | (package |
| 236 | (name "po4a") | 244 | (name "po4a") |
| 237 | (version "0.63") | 245 | (version "0.68") |
| 238 | (source (origin | 246 | (source (origin |
| 239 | (method url-fetch) | 247 | (method url-fetch) |
| 240 | (uri (string-append "https://github.com/mquinson/po4a/releases/download/v" | 248 | (uri (string-append "https://github.com/mquinson/po4a/releases/download/v" |
| 241 | version "/po4a-" version ".tar.gz")) | 249 | version "/po4a-" version ".tar.gz")) |
| 242 | (sha256 | 250 | (sha256 |
| 243 | (base32 | 251 | (base32 |
| 244 | "1kmlfpdl1i1wrcdn0k1frh44fq10sfwswi3azvibli2lakpf66z2")))) | 252 | "045i8izp2dqmkdzvnxyy5sy27ffrwl85dk8n6cmg1804ikk28qdg")))) |
| 245 | (build-system perl-build-system) | 253 | (build-system perl-build-system) |
| 246 | (arguments | 254 | (arguments |
| 247 | `(#:phases | 255 | `(#:phases |
| @@ -252,9 +260,21 @@ from Markdown files.") | |||
| 252 | ;; required by this package at runtime. | 260 | ;; required by this package at runtime. |
| 253 | (let* ((out (assoc-ref outputs "out")) | 261 | (let* ((out (assoc-ref outputs "out")) |
| 254 | (bin (string-append out "/bin/")) | 262 | (bin (string-append out "/bin/")) |
| 255 | (Pod::Parser (assoc-ref inputs "perl-pod-parser")) | ||
| 256 | (path (string-append out "/lib/perl5/site_perl:" | 263 | (path (string-append out "/lib/perl5/site_perl:" |
| 257 | Pod::Parser "/lib/perl5/site_perl"))) | 264 | (string-join |
| 265 | (map (lambda (name) | ||
| 266 | (string-append (assoc-ref inputs name) | ||
| 267 | "/lib/perl5/site_perl")) | ||
| 268 | (list "perl-gettext" | ||
| 269 | "perl-pod-parser" | ||
| 270 | "perl-sgmls" | ||
| 271 | "perl-syntax-keyword-try" | ||
| 272 | "perl-xs-parse-keyword" | ||
| 273 | "perl-term-readkey" | ||
| 274 | "perl-text-wrapi18n" | ||
| 275 | "perl-unicode-linebreak" | ||
| 276 | "perl-yaml-tiny")) | ||
| 277 | ":")))) | ||
| 258 | (for-each (lambda (file) | 278 | (for-each (lambda (file) |
| 259 | (wrap-program file | 279 | (wrap-program file |
| 260 | `("PERL5LIB" ":" prefix (,path)))) | 280 | `("PERL5LIB" ":" prefix (,path)))) |
| @@ -267,23 +287,10 @@ from Markdown files.") | |||
| 267 | (string-append (assoc-ref inputs "docbook-xml") | 287 | (string-append (assoc-ref inputs "docbook-xml") |
| 268 | "/xml/dtd/docbook/"))) | 288 | "/xml/dtd/docbook/"))) |
| 269 | #t)) | 289 | #t)) |
| 270 | (add-before 'build 'do-not-override-PERL5LIB | ||
| 271 | (lambda _ | ||
| 272 | ;; Don't hard-code PERL5LIB to include just the build directory | ||
| 273 | ;; so that the build script finds modules from inputs. | ||
| 274 | (substitute* "Po4aBuilder.pm" | ||
| 275 | (("PERL5LIB=lib") "")) | ||
| 276 | (setenv "PERL5LIB" (string-append (getenv "PERL5LIB") ":lib")))) | ||
| 277 | (add-before 'check 'disable-failing-tests | 290 | (add-before 'check 'disable-failing-tests |
| 278 | (lambda _ | 291 | (lambda _ |
| 279 | ;; FIXME: these tests require SGMLS.pm. | 292 | ;; FIXME: fails despite of importing SGMLS |
| 280 | (delete-file "t/01-classes.t") | ||
| 281 | |||
| 282 | (delete-file "t/add.t") | ||
| 283 | (delete-file "t/core-porefs.t") | ||
| 284 | (delete-file "t/fmt-asciidoc.t") | ||
| 285 | (delete-file "t/fmt-sgml.t") | 293 | (delete-file "t/fmt-sgml.t") |
| 286 | |||
| 287 | #t))))) | 294 | #t))))) |
| 288 | (native-inputs | 295 | (native-inputs |
| 289 | `(("gettext" ,gettext-minimal) | 296 | `(("gettext" ,gettext-minimal) |
| @@ -295,10 +302,18 @@ from Markdown files.") | |||
| 295 | ;; For tests. | 302 | ;; For tests. |
| 296 | ("docbook-xml" ,docbook-xml-4.1.2) | 303 | ("docbook-xml" ,docbook-xml-4.1.2) |
| 297 | ("perl-test-pod" ,perl-test-pod) | 304 | ("perl-test-pod" ,perl-test-pod) |
| 298 | ("perl-yaml-tiny" ,perl-yaml-tiny) | ||
| 299 | ("texlive" ,texlive-tiny))) | 305 | ("texlive" ,texlive-tiny))) |
| 300 | (inputs | 306 | (inputs |
| 301 | (list perl-pod-parser)) | 307 | (list bash-minimal |
| 308 | perl-gettext | ||
| 309 | perl-pod-parser | ||
| 310 | perl-sgmls | ||
| 311 | perl-syntax-keyword-try | ||
| 312 | perl-xs-parse-keyword | ||
| 313 | perl-term-readkey | ||
| 314 | perl-text-wrapi18n | ||
| 315 | perl-unicode-linebreak | ||
| 316 | perl-yaml-tiny)) | ||
| 302 | (home-page "https://po4a.org/") | 317 | (home-page "https://po4a.org/") |
| 303 | (synopsis "Scripts to ease maintenance of translations") | 318 | (synopsis "Scripts to ease maintenance of translations") |
| 304 | (description | 319 | (description |
