* [bug#74393] [PATCH 0/2] gnu: texinfo-7: Use external modules.
@ 2024-11-17 10:52 gemmaro
2024-11-17 11:21 ` [bug#74393] [PATCH 1/2] gnu: Add perl-unicode-eastasianwidth gemmaro
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: gemmaro @ 2024-11-17 10:52 UTC (permalink / raw)
To: 74393; +Cc: gemmaro
Hello,
This makes Texinfo version 7 to use packaged external modules instead of
bundled sources. It also adds a dependency package.
Thank you,
gemmaro.
gemmaro (2):
gnu: Add perl-unicode-eastasianwidth.
gnu: texinfo-7: Use external modules.
gnu/packages/perl.scm | 21 +++++++++++++++++++++
gnu/packages/texinfo.scm | 10 +++++++++-
2 files changed, 30 insertions(+), 1 deletion(-)
base-commit: 0e1ffbc7f5f060f89c890472377a6102f27f6e9b
--
2.46.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#74393] [PATCH 1/2] gnu: Add perl-unicode-eastasianwidth.
2024-11-17 10:52 [bug#74393] [PATCH 0/2] gnu: texinfo-7: Use external modules gemmaro
@ 2024-11-17 11:21 ` gemmaro
2024-11-17 11:21 ` [bug#74393] [PATCH 2/2] gnu: texinfo-7: Use external modules gemmaro
2024-12-19 15:10 ` [bug#74393] [PATCH v2 1/2] gnu: Add perl-unicode-eastasianwidth gemmaro
2 siblings, 0 replies; 6+ messages in thread
From: gemmaro @ 2024-11-17 11:21 UTC (permalink / raw)
To: 74393; +Cc: gemmaro, gemmaro
* gnu/packages/perl.scm (perl-unicode-eastasianwidth): New variable.
Change-Id: I3b9eb2a15bf77aa64109dbd2836ac1d71aa509f0
---
gnu/packages/perl.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index faaac13bf1..4d7f9a2854 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -11830,6 +11830,27 @@ (define-public perl-unicode-collate
;; license.
(license (list (package-license perl) license:expat))))
+(define-public perl-unicode-eastasianwidth
+ (package
+ (name "perl-unicode-eastasianwidth")
+ (version "12.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/A/AU/AUDREYT/Unicode-EastAsianWidth-"
+ version ".tar.gz"))
+ (sha256
+ (base32 "1x0gm5akah6x1ypykipywlm2hi95mhqjrnipc5zggragdj9gsnra"))))
+ (build-system perl-build-system)
+ (home-page "https://metacpan.org/release/Unicode-EastAsianWidth")
+ (synopsis "East Asian Width properties")
+ (description
+ "This module provides user-defined Unicode properties that deal with width
+status of East Asian characters, as specified in
+@url{https://www.unicode.org/reports/tr11/,Unicode® Standard Annex #11}.")
+ (license license:cc0)))
+
(define-public perl-unicode-linebreak
(package
(name "perl-unicode-linebreak")
--
2.46.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#74393] [PATCH 2/2] gnu: texinfo-7: Use external modules.
2024-11-17 10:52 [bug#74393] [PATCH 0/2] gnu: texinfo-7: Use external modules gemmaro
2024-11-17 11:21 ` [bug#74393] [PATCH 1/2] gnu: Add perl-unicode-eastasianwidth gemmaro
@ 2024-11-17 11:21 ` gemmaro
2024-12-18 12:03 ` Ludovic Courtès
2024-12-19 15:10 ` [bug#74393] [PATCH v2 1/2] gnu: Add perl-unicode-eastasianwidth gemmaro
2 siblings, 1 reply; 6+ messages in thread
From: gemmaro @ 2024-11-17 11:21 UTC (permalink / raw)
To: 74393; +Cc: gemmaro, gemmaro
* gnu/packages/texinfo.scm (texinfo-7): Use external modules
rather than bundled ones.
[inputs]: Add perl-unicode-eastasianwidth, perl-text-unidecode,
and perl-libintl-perl.
[arguments]<#:configure-flags>: Add a phase
to enable the use of external modules.
Change-Id: Ife2cdec50affb5287d5ad850b0ef80c6048b4b32
---
gnu/packages/texinfo.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/texinfo.scm b/gnu/packages/texinfo.scm
index 81afdaf7a7..ac10af59fc 100644
--- a/gnu/packages/texinfo.scm
+++ b/gnu/packages/texinfo.scm
@@ -116,9 +116,17 @@ (define-public texinfo-7
(base32
"10kcdb3pf7yakniccvv0krchs2fh3vh1rvhvnqr98ll3cbj3gbii"))))
(inputs (modify-inputs (package-inputs texinfo)
- (append perl-archive-zip))) ;needed for 'tex2any --epub3'
+ (append perl-archive-zip ;needed for 'tex2any --epub3'
+ perl-unicode-eastasianwidth perl-text-unidecode
+ perl-libintl-perl)))
(arguments
(substitute-keyword-arguments (package-arguments texinfo)
+ ((#:configure-flags flags
+ ''())
+ #~(cons* "--with-external-Unicode-EastAsianWidth"
+ "--with-external-Text-Unidecode"
+ "--with-external-libintl-perl"
+ #$flags))
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
(add-after 'install 'wrap-program
--
2.46.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#74393] [PATCH 2/2] gnu: texinfo-7: Use external modules.
2024-11-17 11:21 ` [bug#74393] [PATCH 2/2] gnu: texinfo-7: Use external modules gemmaro
@ 2024-12-18 12:03 ` Ludovic Courtès
0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2024-12-18 12:03 UTC (permalink / raw)
To: gemmaro; +Cc: 74393
Hi,
gemmaro <gemmaro.dev@gmail.com> skribis:
> * gnu/packages/texinfo.scm (texinfo-7): Use external modules
> rather than bundled ones.
> [inputs]: Add perl-unicode-eastasianwidth, perl-text-unidecode,
> and perl-libintl-perl.
> [arguments]<#:configure-flags>: Add a phase
> to enable the use of external modules.
>
> Change-Id: Ife2cdec50affb5287d5ad850b0ef80c6048b4b32
Nice.
> + (append perl-archive-zip ;needed for 'tex2any --epub3'
> + perl-unicode-eastasianwidth perl-text-unidecode
> + perl-libintl-perl)))
> (arguments
> (substitute-keyword-arguments (package-arguments texinfo)
> + ((#:configure-flags flags
> + ''())
> + #~(cons* "--with-external-Unicode-EastAsianWidth"
> + "--with-external-Text-Unidecode"
> + "--with-external-libintl-perl"
> + #$flags))
I believe the ‘wrap-program’ phase needs to be adjusted accordingly so
that all the Perl modules are found. Right now, with these patches, I
get:
--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix shell texinfo@7 -- makeinfo --version
Can't locate Locale/Messages.pm in @INC (you may need to install the Locale::Messages module) (@INC contains: /gnu/store/5nj6cj127n61skayphscg7icpq34brab-texinfo-7.1.1/lib/texinfo /gnu/store/5nj6cj127n61skayphscg7icpq34brab-texinfo-7.1.1/share/texinfo /gnu/store/5nj6cj127n61skayphscg7icpq34brab-texinfo-7.1.1/share/texinfo /gnu/store/jfmknbgrxmbp7gg0g4gx2bnx70z2y998-perl-archive-zip-1.68/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi /gnu/store/jfmknbgrxmbp7gg0g4gx2bnx70z2y998-perl-archive-zip-1.68/lib/perl5/site_perl/5.36.0 /home/ludo/.guix-home/profile/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi /home/ludo/.guix-home/profile/lib/perl5/site_perl/5.36.0 /home/ludo/.guix-home/profile/lib/perl5/site_perl /home/ludo/.guix-home/profile/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi /home/ludo/.guix-home/profile/lib/perl5/site_perl/5.36.0 /home/ludo/.guix-home/profile/lib/perl5/site_perl /gnu/store/prf2zax6rxl3l179d1qxn6hkm726jyj4-perl-5.36.0/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi /gnu/store/prf2zax6rxl3l179d1qxn6hkm726jyj4-perl-5.36.0/lib/perl5/site_perl/5.36.0 /gnu/store/prf2zax6rxl3l179d1qxn6hkm726jyj4-perl-5.36.0/lib/perl5/5.36.0/x86_64-linux-thread-multi /gnu/store/prf2zax6rxl3l179d1qxn6hkm726jyj4-perl-5.36.0/lib/perl5/5.36.0) at /gnu/store/5nj6cj127n61skayphscg7icpq34brab-texinfo-7.1.1/bin/.texi2any-real line 127.
BEGIN failed--compilation aborted at /gnu/store/5nj6cj127n61skayphscg7icpq34brab-texinfo-7.1.1/bin/.texi2any-real line 127.
--8<---------------cut here---------------end--------------->8---
Could you take a look and send updated patches?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#74393] [PATCH v2 1/2] gnu: Add perl-unicode-eastasianwidth.
2024-11-17 10:52 [bug#74393] [PATCH 0/2] gnu: texinfo-7: Use external modules gemmaro
2024-11-17 11:21 ` [bug#74393] [PATCH 1/2] gnu: Add perl-unicode-eastasianwidth gemmaro
2024-11-17 11:21 ` [bug#74393] [PATCH 2/2] gnu: texinfo-7: Use external modules gemmaro
@ 2024-12-19 15:10 ` gemmaro
2024-12-19 15:10 ` [bug#74393] [PATCH v2 2/2] gnu: texinfo-7: Use external modules gemmaro
2 siblings, 1 reply; 6+ messages in thread
From: gemmaro @ 2024-12-19 15:10 UTC (permalink / raw)
To: 74393; +Cc: gemmaro, gemmaro, Ludovic Courtès
* gnu/packages/perl.scm (perl-unicode-eastasianwidth): New variable.
Change-Id: I3b9eb2a15bf77aa64109dbd2836ac1d71aa509f0
---
gnu/packages/perl.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 702369caf7..382a1d3e61 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -11926,6 +11926,27 @@ (define-public perl-unicode-collate
;; license.
(license (list (package-license perl) license:expat))))
+(define-public perl-unicode-eastasianwidth
+ (package
+ (name "perl-unicode-eastasianwidth")
+ (version "12.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/A/AU/AUDREYT/Unicode-EastAsianWidth-"
+ version ".tar.gz"))
+ (sha256
+ (base32 "1x0gm5akah6x1ypykipywlm2hi95mhqjrnipc5zggragdj9gsnra"))))
+ (build-system perl-build-system)
+ (home-page "https://metacpan.org/release/Unicode-EastAsianWidth")
+ (synopsis "East Asian Width properties")
+ (description
+ "This module provides user-defined Unicode properties that deal with width
+status of East Asian characters, as specified in
+@url{https://www.unicode.org/reports/tr11/,Unicode® Standard Annex #11}.")
+ (license license:cc0)))
+
(define-public perl-unicode-linebreak
(package
(name "perl-unicode-linebreak")
--
2.46.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#74393] [PATCH v2 2/2] gnu: texinfo-7: Use external modules.
2024-12-19 15:10 ` [bug#74393] [PATCH v2 1/2] gnu: Add perl-unicode-eastasianwidth gemmaro
@ 2024-12-19 15:10 ` gemmaro
0 siblings, 0 replies; 6+ messages in thread
From: gemmaro @ 2024-12-19 15:10 UTC (permalink / raw)
To: 74393; +Cc: gemmaro, gemmaro, Ludovic Courtès
* gnu/packages/texinfo.scm (texinfo-7): Use external modules
rather than bundled ones.
[inputs]: Add perl-unicode-eastasianwidth, perl-text-unidecode,
and perl-libintl-perl.
[arguments]<#:configure-flags>: Add a phase
to enable the use of external modules.
<#:phases>: Add Perl modules to the PERL5LIB variable of the texi2any program
in the wrap-program phase.
Change-Id: Ife2cdec50affb5287d5ad850b0ef80c6048b4b32
---
gnu/packages/texinfo.scm | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/texinfo.scm b/gnu/packages/texinfo.scm
index 13c780897e..d389e4d60e 100644
--- a/gnu/packages/texinfo.scm
+++ b/gnu/packages/texinfo.scm
@@ -120,9 +120,17 @@ (define-public texinfo-7
(base32
"10kcdb3pf7yakniccvv0krchs2fh3vh1rvhvnqr98ll3cbj3gbii"))))
(inputs (modify-inputs (package-inputs texinfo)
- (append perl-archive-zip))) ;needed for 'tex2any --epub3'
+ (append perl-archive-zip ;needed for 'tex2any --epub3'
+ perl-unicode-eastasianwidth perl-text-unidecode
+ perl-libintl-perl)))
(arguments
(substitute-keyword-arguments (package-arguments texinfo)
+ ((#:configure-flags flags
+ ''())
+ #~(cons* "--with-external-Unicode-EastAsianWidth"
+ "--with-external-Text-Unidecode"
+ "--with-external-libintl-perl"
+ #$flags))
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
(add-after 'install 'wrap-program
@@ -136,9 +144,15 @@ (define-public texinfo-7
(and (eq? 'directory (stat:type stat))
(string=? (basename file)
"Archive")))
- #:directories? #t))))
+ #:directories? #t)))
+ (mods (map (lambda (mod)
+ (string-append (assoc-ref inputs mod)
+ "/lib/perl5/site_perl"))
+ '("perl-unicode-eastasianwidth"
+ "perl-text-unidecode" "perl-libintl-perl"))))
(wrap-program program
- `("PERL5LIB" prefix (,(dirname zip)))))))))))))
+ `("PERL5LIB" prefix
+ ,(cons* (dirname zip) mods))))))))))))
(define-public texinfo-5
(package (inherit texinfo)
--
2.46.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-12-19 15:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-17 10:52 [bug#74393] [PATCH 0/2] gnu: texinfo-7: Use external modules gemmaro
2024-11-17 11:21 ` [bug#74393] [PATCH 1/2] gnu: Add perl-unicode-eastasianwidth gemmaro
2024-11-17 11:21 ` [bug#74393] [PATCH 2/2] gnu: texinfo-7: Use external modules gemmaro
2024-12-18 12:03 ` Ludovic Courtès
2024-12-19 15:10 ` [bug#74393] [PATCH v2 1/2] gnu: Add perl-unicode-eastasianwidth gemmaro
2024-12-19 15:10 ` [bug#74393] [PATCH v2 2/2] gnu: texinfo-7: Use external modules gemmaro
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.