changeset 6419:b43931a7ce57

Add fonts `IPAfonts' Japanese fonts.
author Masamichi Hosoda <trueroad@trueroad.jp>
date Sun, 16 Aug 2015 01:06:13 +0900
parents bb0fccd81f63
children c7ab9af25a3b
files gub/specs/fonts-ipafont.py gub/specs/lilypond-doc.py
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gub/specs/fonts-ipafont.py	Sun Aug 16 01:06:13 2015 +0900
@@ -0,0 +1,13 @@
+from gub import tools
+from gub import build
+
+class Fonts_ipafont (build.BinaryBuild):
+    source = 'http://download.forest.impress.co.jp/pub/library/i/ipafont/10483/IPAfont00303.zip'
+    def install (self):
+        self.system ('mkdir -p %(install_prefix)s/share/fonts/opentype/ipafont')
+        self.system ('cp %(srcdir)s/IPAfont00303/*.ttf %(install_prefix)s/share/fonts/opentype/ipafont/')
+    def package (self):
+        build.AutoBuild.package (self)
+
+class Fonts_ipafont__tools (tools.AutoBuild, Fonts_ipafont):
+    pass
--- a/gub/specs/lilypond-doc.py	Sun Aug 16 01:05:16 2015 +0900
+++ b/gub/specs/lilypond-doc.py	Sun Aug 16 01:06:13 2015 +0900
@@ -19,6 +19,7 @@
                 'tools::fonts-liberation',
                 'tools::fonts-urw-core35',
                 'tools::fonts-luximono',
+                'tools::fonts-ipafont',
                 'system::makeinfo',
                 'system::zip',
                 ])