[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/110: gnu: Add texlive-hyphen-armenian.
From: |
guix-commits |
Subject: |
18/110: gnu: Add texlive-hyphen-armenian. |
Date: |
Tue, 23 Jul 2019 15:44:24 -0400 (EDT) |
rekado pushed a commit to branch wip-texlive
in repository guix.
commit 5c1b79f2564b1d0a5df6fa2c871f90b7e7cd1c27
Author: Ricardo Wurmus <address@hidden>
Date: Tue Jul 9 11:53:55 2019 +0200
gnu: Add texlive-hyphen-armenian.
* gnu/packages/tex.scm (texlive-hyphen-armenian): New variable.
---
gnu/packages/tex.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 9c3db44..273c720 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -1385,6 +1385,42 @@ language.")
Greek.")
(license license:lppl1.3+)))
+(define-public texlive-hyphen-armenian
+ (let ((template (texlive-hyphen-package
+ "texlive-hyphen-armenian" "hy"
+ (list
"/source/generic/hyph-utf8/languages/hy/generate_patterns_hy.rb")
+ (base32
+ "0z666y580w1kpxssdanz67ykq257lf11a1mnp1jrn08zijvfrw9c"))))
+ (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/hy/"
+ (substitute* "generate_patterns_hy.rb"
+ (("\\$file = File.new.*")
+ (string-append "$file = File.new(\"" target
+ "/hyph-hy.tex\",\"w\")\n")))
+ (invoke "ruby" "generate_patterns_hy.rb"))
+ #t)))
+ (add-after 'install 'install-hyph-hy.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 Armenian")
+ (description "The package provides hyphenation patterns for the Armenian
+language.")
+ ;; Any version of the LGPL.
+ (license license:lgpl3+))))
+
(define-public texlive-hyph-utf8
(package
(inherit (simple-texlive-package
- 21/110: gnu: Add texlive-hyphen-belarusian., (continued)
- 21/110: gnu: Add texlive-hyphen-belarusian., guix-commits, 2019/07/23
- 23/110: gnu: Add texlive-hyphen-catalan., guix-commits, 2019/07/23
- 26/110: gnu: Add texlive-hyphen-coptic., guix-commits, 2019/07/23
- 27/110: gnu: Add texlive-hyphen-croatian., guix-commits, 2019/07/23
- 28/110: gnu: Add texlive-hyphen-czech., guix-commits, 2019/07/23
- 20/110: gnu: Add texlive-mkpattern., guix-commits, 2019/07/23
- 22/110: gnu: Add texlive-hyphen-bulgarian., guix-commits, 2019/07/23
- 17/110: gnu: Add texlive-hyphen-ancientgreek., guix-commits, 2019/07/23
- 19/110: gnu: Add texlive-hyphen-basque., guix-commits, 2019/07/23
- 10/110: gnu: Add texlive-hyph-utf8., guix-commits, 2019/07/23
- 18/110: gnu: Add texlive-hyphen-armenian.,
guix-commits <=
- 25/110: gnu: Add texlive-hyphen-churchslavonic., guix-commits, 2019/07/23
- 24/110: gnu: Add texlive-hyphen-chinese., guix-commits, 2019/07/23
- 29/110: gnu: Add texlive-hyphen-danish., guix-commits, 2019/07/23
- 31/110: gnu: Add texlive-hyphen-english., guix-commits, 2019/07/23
- 35/110: gnu: Add texlive-hyphen-finnish., guix-commits, 2019/07/23
- 34/110: gnu: Add texlive-hyphen-ethiopic., guix-commits, 2019/07/23
- 36/110: gnu: Add texlive-hyphen-french., guix-commits, 2019/07/23
- 39/110: gnu: Add texlive-hyphen-georgian., guix-commits, 2019/07/23
- 32/110: gnu: Add texlive-hyphen-esperanto., guix-commits, 2019/07/23
- 30/110: gnu: Add texlive-hyphen-dutch., guix-commits, 2019/07/23