[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
245/458: gnu: texlive-polyglossia: Refresh package definition.
From: |
guix-commits |
Subject: |
245/458: gnu: texlive-polyglossia: Refresh package definition. |
Date: |
Wed, 14 Jun 2023 05:22:42 -0400 (EDT) |
ngz pushed a commit to branch tex-team-next
in repository guix.
commit ac8e2f2b1c5f93121f0324c5785f4e24513956c4
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon May 15 23:21:39 2023 +0200
gnu: texlive-polyglossia: Refresh package definition.
* gnu/packages/tex.scm (texlive-polyglossia): Remove SIMPLE-TEXLIVE-PACKAGE
call.
[arguments]<#:phases>: Do not use Amiri font. Do not generate TeX format
files.
[native-inputs]: Remove TEXLIVE-BIN, TEXLIVE-ETOOLBOX, TEXLIVE-FONTSPEC,
TEXLIVE-KPATHSEA, TEXLIVE-LATEX-BASE, TEXLIVE-MAKECMDS,
TEXLIVE-TEX-INI-FILES
and TEXLIVE-TOOLS.
[propagated-inputs]: Remove TEXLIVE-HYPERREF, TEXLIVE-L3PACKAGES,
TEXLIVE-LUABIDI, TEXLIVE-TOOLS.
---
gnu/packages/tex.scm | 134 ++++++++++++++++++++-------------------------------
1 file changed, 51 insertions(+), 83 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 2a98775fce..122ae992b9 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -6392,93 +6392,62 @@ or symbol. It also provides compacted versions of
@code{enumerate} and
(define-public texlive-polyglossia
(package
- (inherit (simple-texlive-package
- "texlive-polyglossia"
- (list "source/latex/polyglossia/"
- ;; These files are not part of polyglossia.dtx
- "tex/latex/polyglossia/arabicnumbers.sty"
- "tex/latex/polyglossia/xpg-cyrillicnumbers.sty")
- (base32 "1p0hhclypv2zbs8h64c6sd689m9ym3vvpn966qpwpjxbymsrc49g")))
+ (name "texlive-polyglossia")
+ (version (number->string %texlive-revision))
+ (source (texlive-origin
+ name version
+ (list "doc/latex/polyglossia/"
+ "fonts/misc/xetex/fontmapping/polyglossia/"
+ "source/latex/polyglossia/"
+ "tex/latex/polyglossia/")
+ (base32
+ "1lkf06mr7p7p1fdkrnhmvj8iamzppjy952d79mc81cilkw5zskah")))
(outputs '("out" "doc"))
+ (build-system texlive-build-system)
(arguments
(list
- #:tex-directory "latex/polyglossia"
#:tex-format "xelatex"
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'build-and-install-xelatex.fmt
- (lambda* (#:key tex-format #:allow-other-keys)
- (invoke "fmtutil-sys" "--byfmt" tex-format "--fmtdir=web2c")
- ;; Extend the current TEXMF environment variable to make
- ;; available the newly built formats.
- (setenv "GUIX_TEXMF" (string-append (getcwd) ":"
- (getenv "GUIX_TEXMF")))
- ;; XXX: Extend the base (more limited) xelatex.fmt provided by
- ;; texlive-latex-base, otherwise packages using Polyglossia
- ;; would encounter the same lack of hyphenation support problem.
- (install-file "web2c/xetex/xelatex.fmt"
- (string-append #$output
- "/share/texmf-dist/web2c/xetex"))))
- (add-before 'build 'chdir
+ (add-after 'unpack 'substitute-fonts
(lambda _
- ;; This is so the build can find the files not part of the .dtx.
- (setenv "TEXINPUTS" (string-append (getcwd)
- "/tex/latex/polyglossia:"))))
- (add-after 'chdir 'substitute-nonfree-fonts
+ (substitute* "source/latex/polyglossia/polyglossia.dtx"
+ (("\\{Serto Jerusalem}") "{FreeSans}") ;non-free
+ ;; XXX: Amiri font would introduce a (native) dependency on
+ ;; webkitgtk! No, thanks.
+ (("\\{Amiri}") "{FreeSans}"))))
+ (add-after 'unpack 'extend-texmf
(lambda _
- (substitute* "polyglossia.dtx"
- (("\\{Serto Jerusalem}")
- "{FreeSans}"))))
- (add-after 'substitute-nonfree-fonts 'extract-dtx
- (lambda* (#:key tex-format #:allow-other-keys)
- (invoke tex-format "polyglossia.dtx"))))))
- (native-inputs (list fontconfig ;for XDG_DATA_DIRS (to locate fonts)
- font-amiri
- font-dejavu
- font-gfs-ambrosia
- font-gnu-freefont
- font-linuxlibertine
- font-sil-ezra
- texlive-latex-base
- texlive-babel
- texlive-bin ;for fmtutil.cnf
- texlive-bidi
- texlive-booktabs
- texlive-caption
- texlive-context
- texlive-fancyvrb
- texlive-etoolbox
- texlive-latex-fonts
- texlive-fontspec
- texlive-hyperref
- ;; TODO: Remove texlive-stringenc and
- ;; texlive-zapfding after texlive-hyperref propagates
- ;; them.
- texlive-stringenc
- texlive-zapfding
- texlive-graphics
- texlive-kpathsea ;for cp227.tcx & friends
- texlive-makecmds
- texlive-metalogo
- texlive-microtype
- texlive-paralist
- texlive-tools
- texlive-tex-ini-files)) ;for pdftexconfig
- ;; polyglossia.sty \RequirePackage or \\usepackage these other TexLive
- ;; packages.
- (propagated-inputs
- (list texlive-bidi
- texlive-etoolbox
- texlive-fontspec
+ ;; Extend the current TEXMF environment variable to make
+ ;; Polyglossia own libraries visible.
+ (setenv "GUIX_TEXMF"
+ (string-append (getcwd) ":"
+ (getenv "GUIX_TEXMF"))))))))
+ (native-inputs
+ (list font-dejavu
+ font-gfs-ambrosia
+ font-gnu-freefont
+ font-linuxlibertine
+ font-sil-ezra
+ fontconfig ;for XDG_DATA_DIRS (to locate fonts)
+ texlive-babel
+ texlive-bidi
+ texlive-booktabs
+ texlive-caption
+ texlive-context
+ texlive-fancyvrb
+ texlive-graphics
texlive-hyperref
- ;; TODO: Remove texlive-stringenc and
- ;; texlive-zapfding after texlive-hyperref propagates
- ;; them.
- texlive-stringenc
- texlive-zapfding
+ texlive-latex-fonts
+ texlive-metalogo
+ texlive-microtype
+ texlive-paralist))
+ (propagated-inputs
+ (list texlive-etoolbox
+ texlive-filehook
+ texlive-fontspec
+ texlive-iftex
texlive-makecmds
- texlive-l3packages ;expl3, l3keys2e, xparse
- texlive-tools
texlive-xkeyval))
(home-page "https://www.ctan.org/pkg/polyglossia")
(synopsis "Alternative to Babel for XeLaTeX and LuaLaTeX")
@@ -6491,25 +6460,24 @@ different writing system. It enables:
Loading the appropriate hyphenation patterns.
@item
Setting the script and language tags of the current font (if possible and
-available), using the package fontspec.
+available), using the package @code{fontspec}.
@item
Switching to a font assigned by the user to a particular script or language.
@item
Adjusting some typographical conventions in function of the current language
-(such as afterindent, frenchindent, spaces before or after punctuation marks,
-etc.)
+(such as @code{afterindent}, @code{frenchindent}, spaces before or after
+punctuation marks, etc.)
@item
Redefining the document strings (like @samp{chapter}, @samp{figure},
@samp{bibliography}). Adapting the formatting of dates (for non-gregorian
-calendars via external packages bundled with polyglossia: currently the
+calendars via external packages bundled with @code{polyglossia}: currently the
Hebrew, Islamic and Farsi calendars are supported).
@item
For languages that have their own numeration system, modifying the formatting
of numbers appropriately.
@item
Ensuring the proper directionality if the document contains languages
-written from right to left (via the packages bidi and luabidi, available
-separately).
+written from right to left.
@end itemize")
(license license:expat)))
- 205/458: gnu: texlive-csquotes: Refresh package definition., (continued)
- 205/458: gnu: texlive-csquotes: Refresh package definition., guix-commits, 2023/06/14
- 206/458: gnu: texlive-iftex: Refresh package definition., guix-commits, 2023/06/14
- 208/458: gnu: texlive-pstricks: Refresh package definition., guix-commits, 2023/06/14
- 209/458: gnu: texlive-beamer: Refresh package definition., guix-commits, 2023/06/14
- 217/458: gnu: texlive-wasy: Refresh package definition., guix-commits, 2023/06/14
- 220/458: gnu: texlive-dejavu: Refresh package definition., guix-commits, 2023/06/14
- 229/458: gnu: texlive-babel-swedish: Refresh package definition., guix-commits, 2023/06/14
- 231/458: gnu: texlive-babel-french: Refresh package definition., guix-commits, 2023/06/14
- 235/458: gnu: texlive-filemod: Refresh package definition., guix-commits, 2023/06/14
- 242/458: gnu: texlive-bidi: Fix build., guix-commits, 2023/06/14
- 245/458: gnu: texlive-polyglossia: Refresh package definition.,
guix-commits <=
- 246/458: gnu: texlive-letltxmacro: Refresh package definition., guix-commits, 2023/06/14
- 252/458: gnu: texlive-lh: Refresh package definition., guix-commits, 2023/06/14
- 253/458: gnu: texlive-acronym: Refresh package definition., guix-commits, 2023/06/14
- 260/458: gnu: texlive-etexcmds: Refresh package definition., guix-commits, 2023/06/14
- 257/458: gnu: texlive-atbegshi: Refresh package definition., guix-commits, 2023/06/14
- 265/458: gnu: texlive-kvsetkeys: Refresh package definition., guix-commits, 2023/06/14
- 268/458: gnu: texlive-uniquecounter: Refresh package definition., guix-commits, 2023/06/14
- 269/458: gnu: Add texlive-colorprofiles., guix-commits, 2023/06/14
- 273/458: gnu: texlive-unicode-data: Refresh package definition., guix-commits, 2023/06/14
- 296/458: gnu: texlive-palatino: Refresh package definition., guix-commits, 2023/06/14