[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/109: gnu: Add texlive-hyphen-armenian.
From: |
guix-commits |
Subject: |
18/109: gnu: Add texlive-hyphen-armenian. |
Date: |
Tue, 16 Jul 2019 08:22:40 -0400 (EDT) |
rekado pushed a commit to branch wip-texlive
in repository guix.
commit edfb735c770dfee406abbfee5ce3f95b00397d72
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
- 11/109: gnu: Add texlive-dehyph-exptl., (continued)
- 11/109: gnu: Add texlive-dehyph-exptl., guix-commits, 2019/07/16
- 07/109: gnu: Add texlive-hyphen-package., guix-commits, 2019/07/16
- 10/109: gnu: Add texlive-hyph-utf8., guix-commits, 2019/07/16
- 13/109: gnu: texlive-fonts-cm: Remove cm-type1., guix-commits, 2019/07/16
- 09/109: gnu: Add texlive-hyphen-base., guix-commits, 2019/07/16
- 08/109: gnu: Add texlive-unicode-data., guix-commits, 2019/07/16
- 12/109: gnu: texlive-dvips: Implement with simple-texlive-package., guix-commits, 2019/07/16
- 17/109: gnu: Add texlive-hyphen-ancientgreek., guix-commits, 2019/07/16
- 16/109: gnu: Add texlive-hyphen-afrikaans., guix-commits, 2019/07/16
- 15/109: gnu: Add texlive-tex-ini-files., guix-commits, 2019/07/16
- 18/109: gnu: Add texlive-hyphen-armenian.,
guix-commits <=
- 14/109: gnu: texlive-fonts-cm: Use simple-texlive-package., guix-commits, 2019/07/16
- 22/109: gnu: Add texlive-hyphen-bulgarian., guix-commits, 2019/07/16
- 29/109: gnu: Add texlive-hyphen-danish., guix-commits, 2019/07/16
- 21/109: gnu: Add texlive-hyphen-belarusian., guix-commits, 2019/07/16
- 20/109: gnu: Add texlive-mkpattern., guix-commits, 2019/07/16
- 28/109: gnu: Add texlive-hyphen-czech., guix-commits, 2019/07/16
- 30/109: gnu: Add texlive-hyphen-dutch., guix-commits, 2019/07/16
- 19/109: gnu: Add texlive-hyphen-basque., guix-commits, 2019/07/16
- 23/109: gnu: Add texlive-hyphen-catalan., guix-commits, 2019/07/16
- 27/109: gnu: Add texlive-hyphen-croatian., guix-commits, 2019/07/16