[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
70/109: gnu: Add texlive-hyphen-turkmen.
From: |
guix-commits |
Subject: |
70/109: gnu: Add texlive-hyphen-turkmen. |
Date: |
Tue, 16 Jul 2019 08:22:49 -0400 (EDT) |
rekado pushed a commit to branch wip-texlive
in repository guix.
commit a7c1496dfb180b236a871a734368b7375229103e
Author: Ricardo Wurmus <address@hidden>
Date: Sat Jul 13 13:06:14 2019 +0200
gnu: Add texlive-hyphen-turkmen.
* gnu/packages/tex.scm (texlive-hyphen-turkmen): New variable.
---
gnu/packages/tex.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 80a85b5..0517a6e 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -2231,6 +2231,41 @@ fit into EC encoding, so support for Ottoman Turkish had
to be dropped to keep
compatibility with 8-bit engines.")
(license license:lppl1.0+))))
+(define-public texlive-hyphen-turkmen
+ (let ((template (texlive-hyphen-package
+ "texlive-hyphen-turkmen" "tk"
+ (list
"/source/generic/hyph-utf8/languages/tk/generate_patterns_tk.rb")
+ (base32
+ "1wlqx8wb0wsqhdv823brc3i8w1vf4m4bkb2vg917j5dq8p8p71aw"))))
+ (package
+ (inherit template)
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-before 'build 'build-patterns
+ (lambda _
+ (let ((target (string-append (getcwd)
+
"/tex/generic/hyph-utf8/patterns/tex")))
+ (mkdir-p target)
+ (with-directory-excursion
"source/generic/hyph-utf8/languages/tk/"
+ (substitute* "generate_patterns_tk.rb"
+ (("\\$file = File.new.*")
+ (string-append "$file = File.new(\"" target
+ "/hyph-tr.tex\",\"w\")\n")))
+ (invoke "ruby" "generate_patterns_tk.rb"))
+ #t)))
+ (add-after 'install 'install-hyph-tk.tex
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (target (string-append out "/share/texmf-dist/tex")))
+ (copy-recursively "tex" target)
+ #t)))))))
+ (synopsis "Hyphenation patterns for Turkmen")
+ (description "The package provides hyphenation patterns for Turkmen in
+T1/EC and UTF-8 encodings.")
+ (license license:public-domain))))
+
(define-public texlive-hyph-utf8
(package
(inherit (simple-texlive-package
- 68/109: gnu: Add texlive-hyphen-thai., (continued)
- 68/109: gnu: Add texlive-hyphen-thai., guix-commits, 2019/07/16
- 69/109: gnu: Add texlive-hyphen-turkish., guix-commits, 2019/07/16
- 55/109: gnu: Add texlive-hyphen-occitan., guix-commits, 2019/07/16
- 53/109: gnu: Add texlive-hyphen-mongolian., guix-commits, 2019/07/16
- 56/109: gnu: Add texlive-hyphen-piedmontese., guix-commits, 2019/07/16
- 58/109: gnu: Add texlive-hyphen-portuguese., guix-commits, 2019/07/16
- 59/109: gnu: Add texlive-hyphen-romanian., guix-commits, 2019/07/16
- 61/109: gnu: Add texlive-hyphen-russian., guix-commits, 2019/07/16
- 64/109: gnu: Add texlive-hyphen-slovak., guix-commits, 2019/07/16
- 66/109: gnu: Add texlive-hyphen-spanish., guix-commits, 2019/07/16
- 70/109: gnu: Add texlive-hyphen-turkmen.,
guix-commits <=
- 80/109: gnu: Add texlive-mflogo-font., guix-commits, 2019/07/16
- 77/109: gnu: Add texlive-latexconfig., guix-commits, 2019/07/16
- 78/109: gnu: Add texlive-docstrip., guix-commits, 2019/07/16
- 74/109: gnu: Add texlive-ukrhyph., guix-commits, 2019/07/16
- 83/109: gnu: Add texlive-lm., guix-commits, 2019/07/16
- 65/109: gnu: Add texlive-hyphen-slovenian., guix-commits, 2019/07/16
- 71/109: gnu: Add texlive-hyphen-ukrainian., guix-commits, 2019/07/16
- 67/109: gnu: Add texlive-hyphen-swedish., guix-commits, 2019/07/16
- 73/109: gnu: Add texlive-hyphen-welsh., guix-commits, 2019/07/16
- 72/109: gnu: Add texlive-hyphen-uppersorbian., guix-commits, 2019/07/16