summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorgemmaro <gemmaro.dev@gmail.com>2025-07-13 07:28:38 +0900
committerAndreas Enge <andreas@enge.fr>2025-07-13 17:07:44 +0200
commit89d73c352a847e538070e9080efc004d3bc9304a (patch)
treebcc47dca2e43165fb7a15284339b25694194f21a /gnu
parenta9fb57af975b9018b83ab7e986e944054052a51a (diff)
gnu: po4a: Update to 0.74.
* gnu/packages/gettext.scm (po4a): Update to 0.74. [arguments]<#:wrap-programs>: Uses PERL5LIB in wrap-program to avoid manually updating Perl dependencies when inputs change; simplifying maintenance and reducing redundancy. [native-inputs]: Add libxml2 package to convert DocBook man files. [inputs]: Add perl-pod-simple package for a new module. Change-Id: Ic9a2a38a3c42e46faf3c9a0ae0a937d794aba751 Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/gettext.scm39
1 files changed, 13 insertions, 26 deletions
diff --git a/gnu/packages/gettext.scm b/gnu/packages/gettext.scm
index 7064809f621..82764e231cb 100644
--- a/gnu/packages/gettext.scm
+++ b/gnu/packages/gettext.scm
@@ -11,7 +11,7 @@
11;;; Copyright © 2019 Miguel <rosen644835@gmail.com> 11;;; Copyright © 2019 Miguel <rosen644835@gmail.com>
12;;; Copyright © 2020, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org> 12;;; Copyright © 2020, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
13;;; Copyright © 2020 EuAndreh <eu@euandre.org> 13;;; Copyright © 2020 EuAndreh <eu@euandre.org>
14;;; Copyright © 2022, 2024 gemmaro <gemmaro.dev@gmail.com> 14;;; Copyright © 2022, 2024, 2025 gemmaro <gemmaro.dev@gmail.com>
15;;; Copyright © 2023 Maxim Cournoyer maxim.cournoyer@gmail.com> 15;;; Copyright © 2023 Maxim Cournoyer maxim.cournoyer@gmail.com>
16;;; 16;;;
17;;; This file is part of GNU Guix. 17;;; This file is part of GNU Guix.
@@ -249,7 +249,7 @@ from Markdown files.")
249(define-public po4a 249(define-public po4a
250 (package 250 (package
251 (name "po4a") 251 (name "po4a")
252 (version "0.73") 252 (version "0.74")
253 (source (origin 253 (source (origin
254 (method url-fetch) 254 (method url-fetch)
255 (uri (string-append "https://github.com/mquinson/po4a" 255 (uri (string-append "https://github.com/mquinson/po4a"
@@ -257,38 +257,23 @@ from Markdown files.")
257 version "/po4a-" version ".tar.gz")) 257 version "/po4a-" version ".tar.gz"))
258 (sha256 258 (sha256
259 (base32 259 (base32
260 "184f0cv0w3xa301gwm74srn5s6g8qdn3ksip84wpg8xjihnzh63g")))) 260 "1hp7iy1rl8ci7rirh7r6d3jb0i16jm4vy3mgqd4bsyx35czk5z15"))))
261 (build-system perl-build-system) 261 (build-system perl-build-system)
262 (arguments 262 (arguments
263 (list 263 (list
264 #:phases 264 #:phases
265 #~(modify-phases %standard-phases 265 #~(modify-phases %standard-phases
266 (add-after 'install 'wrap-programs 266 (add-after 'install 'wrap-programs
267 (lambda* (#:key inputs outputs #:allow-other-keys) 267 (lambda _
268 ;; Make sure all executables in "bin" find the Perl modules 268 ;; Make sure all executables in "bin" find the Perl modules
269 ;; required by this package at runtime. 269 ;; required by this package at runtime.
270 (let* ((out #$output) 270 (for-each
271 (bin (string-append out "/bin/")) 271 (lambda (file)
272 (path (string-append 272 (wrap-program file
273 out "/lib/perl5/site_perl:" 273 (list "PERL5LIB" 'suffix
274 (string-join 274 (list (string-append #$output "/lib/perl5/site_perl")
275 (map (lambda (name) 275 (getenv "PERL5LIB")))))
276 (string-append (assoc-ref inputs name) 276 (find-files (string-append #$output "/bin/") "\\.*$"))))
277 "/lib/perl5/site_perl"))
278 (list "perl-gettext"
279 "perl-pod-parser"
280 "perl-sgmls"
281 "perl-syntax-keyword-try"
282 "perl-xs-parse-keyword"
283 "perl-term-readkey"
284 "perl-text-wrapi18n"
285 "perl-unicode-linebreak"
286 "perl-yaml-tiny"))
287 ":"))))
288 (for-each (lambda (file)
289 (wrap-program file
290 `("PERL5LIB" ":" prefix (,path))))
291 (find-files bin "\\.*$")))))
292 #$@(if (system-hurd?) 277 #$@(if (system-hurd?)
293 #~((add-after 'unpack 'skip-tests/hurd 278 #~((add-after 'unpack 'skip-tests/hurd
294 (lambda _ 279 (lambda _
@@ -301,6 +286,7 @@ from Markdown files.")
301 perl-module-build 286 perl-module-build
302 docbook-xsl 287 docbook-xsl
303 libxslt 288 libxslt
289 libxml2 ;xmlcatalog
304 ;; For tests. 290 ;; For tests.
305 docbook-sgml-4.1 291 docbook-sgml-4.1
306 docbook-xml-4.5 292 docbook-xml-4.5
@@ -311,6 +297,7 @@ from Markdown files.")
311 opensp 297 opensp
312 perl-gettext 298 perl-gettext
313 perl-pod-parser 299 perl-pod-parser
300 perl-pod-simple
314 perl-sgmls 301 perl-sgmls
315 perl-syntax-keyword-try 302 perl-syntax-keyword-try
316 perl-xs-parse-keyword 303 perl-xs-parse-keyword