changeset 6416:97a36ef06236

Add fonts `urw-core35' for `Nimbus Sans'
author Masamichi Hosoda <trueroad@trueroad.jp>
date Sun, 16 Aug 2015 01:02:47 +0900
parents d68b58defe61
children bc9194b63db2
files gub/specs/fonts-urw-core35.py gub/specs/lilypond-doc.py
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gub/specs/fonts-urw-core35.py	Sun Aug 16 01:02:47 2015 +0900
@@ -0,0 +1,14 @@
+from gub import tools
+from gub import build
+
+class Fonts_urw_core35 (build.BinaryBuild):
+    source = 'git://git.ghostscript.com/urw-core35-fonts.git'
+    def install (self):
+        self.system ('mkdir -p %(install_prefix)s/share/fonts/type1/urw-core35')
+        self.system ('cp %(srcdir)s/*.afm %(install_prefix)s/share/fonts/type1/urw-core35/')
+        self.system ('cp %(srcdir)s/*.pf? %(install_prefix)s/share/fonts/type1/urw-core35/')
+    def package (self):
+        build.AutoBuild.package (self)
+
+class Fonts_urw_core35__tools (tools.AutoBuild, Fonts_urw_core35):
+    pass
--- a/gub/specs/lilypond-doc.py	Sun Aug 16 01:00:20 2015 +0900
+++ b/gub/specs/lilypond-doc.py	Sun Aug 16 01:02:47 2015 +0900
@@ -16,6 +16,7 @@
                 'tools::fonts-bitstream-charter',
                 'tools::fonts-bitstream-vera',
                 'tools::fonts-liberation',
+                'tools::fonts-urw-core35',
                 'system::makeinfo',
                 'system::zip',
                 ])