[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
245/452: gnu: texlive-polyglossia: Refresh package definition.
From: |
guix-commits |
Subject: |
245/452: gnu: texlive-polyglossia: Refresh package definition. |
Date: |
Fri, 9 Jun 2023 13:43:30 -0400 (EDT) |
ngz pushed a commit to branch tex-team-next
in repository guix.
commit 00e043a5253c79c1fd13ee856038216372f727ec
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)))
- 121/452: gnu: texlive-fonts-iwona -> texlive-iwona., (continued)
- 121/452: gnu: texlive-fonts-iwona -> texlive-iwona., guix-commits, 2023/06/09
- 112/452: gnu: texlive-latex-bussproofs -> texlive-bussproofs., guix-commits, 2023/06/09
- 130/452: gnu: texlive-ydoc: Refresh package definition., guix-commits, 2023/06/09
- 169/452: gnu: texlive-endfloat: Refresh package definition., guix-commits, 2023/06/09
- 205/452: gnu: texlive-csquotes: Refresh package definition., guix-commits, 2023/06/09
- 225/452: gnu: Add texlive-xmltexconfig., guix-commits, 2023/06/09
- 230/452: gnu: texlive-csplain: Refresh package definition., guix-commits, 2023/06/09
- 231/452: gnu: texlive-babel-french: Refresh package definition., guix-commits, 2023/06/09
- 239/452: gnu: texlive-capt-of: Refresh package definition., guix-commits, 2023/06/09
- 241/452: gnu: texlive-metalogo: Refresh package definition., guix-commits, 2023/06/09
- 245/452: gnu: texlive-polyglossia: Refresh package definition.,
guix-commits <=
- 250/452: gnu: texlive-pdfpages: Refresh package definition., guix-commits, 2023/06/09
- 252/452: gnu: texlive-lh: Refresh package definition., guix-commits, 2023/06/09
- 258/452: gnu: texlive-bigintcalc: Refresh package definition., guix-commits, 2023/06/09
- 273/452: gnu: texlive-unicode-data: Refresh package definition., guix-commits, 2023/06/09
- 278/452: gnu: texlive-epstopdf-pkg: Refresh package definition., guix-commits, 2023/06/09
- 262/452: gnu: texlive-infwarerr: Refresh package definition., guix-commits, 2023/06/09
- 267/452: gnu: texlive-pdfescape: Refresh package definition., guix-commits, 2023/06/09
- 260/452: gnu: texlive-etexcmds: Refresh package definition., guix-commits, 2023/06/09
- 282/452: gnu: texlive-hycolor: Refresh package definition., guix-commits, 2023/06/09
- 286/452: gnu: texlive-rerunfilecheck: Refresh package definition., guix-commits, 2023/06/09