changeset 6424:0f55d81e0139

Merge pull request #18 from trueroad/install-required-fonts Install required fonts
author PhilHolmes <PhilEHolmes@gmail.com>
date Sun, 23 Aug 2015 11:31:11 +0100
parents e84fa9bddd3f (current diff) 3528d73476e7 (diff)
children 3a4b565d48b0 53af4d0a9416
files
diffstat 17 files changed, 527 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/gub/installer.py	Wed Apr 22 15:53:41 2015 +0100
+++ b/gub/installer.py	Sun Aug 23 11:31:11 2015 +0100
@@ -223,6 +223,8 @@
             'lib/fonts/[^hf]*',
             'share/mkspecs',
             'share/terminfo',
+# GUB's internal fonts directory settings
+            'etc/fonts/conf.d/98-gub-fonts-dir.conf',
             ]
 
         # FIXME: why are we removing these, we need these in a root image.
--- a/gub/specs/fontconfig.py	Wed Apr 22 15:53:41 2015 +0100
+++ b/gub/specs/fontconfig.py	Sun Aug 23 11:31:11 2015 +0100
@@ -21,9 +21,15 @@
 fonts within the system and select them according to requirements
 specified by applications.'''
 
-    source = 'http://fontconfig.org/release/fontconfig-2.8.0.tar.gz'
+    source = 'http://fontconfig.org/release/fontconfig-2.11.1.tar.bz2'
+    patches = [
+        # This patch will be unnecessary from fontconfig-2.11.91.
+        'fontconfig-2.11.1-texgyre-aliases.patch',
+        # This patch will be unnecessary from fontconfig-2.11.91.
+        'fontconfig-2.11.1-new-urw-aliases.patch',
+    ]
     #source = 'git://anongit.freedesktop.org/git/fontconfig?branch=master&revision=' + version
-    dependencies = ['libtool', 'expat-devel', 'freetype-devel', 'tools::freetype', 'tools::pkg-config']
+    dependencies = ['libtool', 'expat-devel', 'freetype-devel', 'tools::freetype', 'tools::pkg-config', 'tools::bzip2']
         # FIXME: system dir vs packaging install
         ## UGH  - this breaks  on Darwin!
         ## UGH2 - the added /cross/ breaks Cygwin; possibly need
@@ -86,7 +92,7 @@
         relax = ''
         if 'stat' in misc.librestrict ():
             relax = 'LIBRESTRICT_IGNORE=%(tools_prefix)s/bin/bash:%(tools_prefix)s/bin/make '
-        for i in ('fc-case', 'fc-lang', 'fc-glyphname', 'fc-arch'):
+        for i in ('fc-case', 'fc-lang', 'fc-glyphname'):
             self.system ('''
 cd %(builddir)s/%(i)s && %(relax)s make "CFLAGS=%(cflags)s" "LIBS=%(libs)s" CPPFLAGS= LD_LIBRARY_PATH=%(tools_prefix)s/lib LDFLAGS=-L%(tools_prefix)s/lib INCLUDES=
 ''', locals ())
@@ -97,8 +103,16 @@
 set FONTCONFIG_PATH=$INSTALLER_PREFIX/etc/fonts
 ''', 
              '%(install_prefix)s/etc/relocate/fontconfig.reloc')
-        
-        
+        self.dump ('''<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+        <!-- GUB's internal fonts directory -->
+        <dir>%(system_prefix)s/share/fonts</dir>
+        <dir>%(tools_prefix)s/share/fonts</dir>
+</fontconfig>
+''',
+             '%(install_prefix)s/etc/fonts/conf.d/98-gub-fonts-dir.conf')
+
 class Fontconfig__mingw (Fontconfig):
     def patch (self):
         Fontconfig.patch (self)
@@ -140,10 +154,20 @@
 class Fontconfig__tools (tools.AutoBuild):
     # FIXME: use mi to get to source?
     #source = 'git://anongit.freedesktop.org/git/fontconfig?revision=' + version
-    source = 'http://fontconfig.org/release/fontconfig-2.8.0.tar.gz'
+    source = 'http://fontconfig.org/release/fontconfig-2.11.1.tar.bz2'
     def patch (self):
         self.dump ('\nAC_SUBST(LT_AGE)', '%(srcdir)s/configure.in', mode='a', permissions=octal.o755)
         tools.AutoBuild.patch (self)
-    dependencies = ['libtool', 'freetype', 'expat', 'pkg-config']
+    dependencies = ['libtool', 'freetype', 'expat', 'pkg-config', 'bzip2']
     make_flags = ('man_MANS=' # either this, or add something like tools::docbook-utils
                 + ' DOCSRC="" ')
+    def install (self):
+        tools.AutoBuild.install (self)
+        self.dump ('''<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+        <!-- GUB's internal fonts directory -->
+        <dir>%(tools_prefix)s/share/fonts</dir>
+</fontconfig>
+''',
+             '%(install_prefix)s/etc/fonts/conf.d/98-gub-fonts-dir.conf')
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gub/specs/fonts-bitstream-charter.py	Sun Aug 23 11:31:11 2015 +0100
@@ -0,0 +1,14 @@
+from gub import tools
+from gub import build
+
+class Fonts_bitstream_charter (build.BinaryBuild):
+    source = 'http://mirrors.ctan.org/fonts/charter.zip'
+    def install (self):
+        self.system ('mkdir -p %(install_prefix)s/share/fonts/type1/bitstream/charter')
+        self.system ('cp %(srcdir)s/charter/*.afm %(install_prefix)s/share/fonts/type1/bitstream/charter/')
+        self.system ('cp %(srcdir)s/charter/*.pf? %(install_prefix)s/share/fonts/type1/bitstream/charter/')
+    def package (self):
+        build.AutoBuild.package (self)
+
+class Fonts_bitstream_charter__tools (tools.AutoBuild, Fonts_bitstream_charter):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gub/specs/fonts-bitstream-vera.py	Sun Aug 23 11:31:11 2015 +0100
@@ -0,0 +1,14 @@
+from gub import tools
+from gub import build
+
+class Fonts_bitstream_vera (build.BinaryBuild):
+    source = 'http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/ttf-bitstream-vera-1.10.tar.bz2'
+    dependencies = ['tools::bzip2']
+    def install (self):
+        self.system ('mkdir -p %(install_prefix)s/share/fonts/truetype/bitstream/vera')
+        self.system ('cp %(srcdir)s/*.ttf %(install_prefix)s/share/fonts/truetype/bitstream/vera/')
+    def package (self):
+        build.AutoBuild.package (self)
+
+class Fonts_bitstream_vera__tools (tools.AutoBuild, Fonts_bitstream_vera):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gub/specs/fonts-dejavu.py	Sun Aug 23 11:31:11 2015 +0100
@@ -0,0 +1,14 @@
+from gub import tools
+from gub import build
+
+class Fonts_dejavu (build.BinaryBuild):
+    source = 'http://sourceforge.net/projects/dejavu/files/dejavu/2.35/dejavu-fonts-ttf-2.35.tar.bz2'
+    dependencies = ['tools::bzip2']
+    def install (self):
+        self.system ('mkdir -p %(install_prefix)s/share/fonts/truetype/dejavu')
+        self.system ('cp %(srcdir)s/ttf/*.ttf %(install_prefix)s/share/fonts/truetype/dejavu/')
+    def package (self):
+        build.AutoBuild.package (self)
+
+class Fonts_dejavu__tools (tools.AutoBuild, Fonts_dejavu):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gub/specs/fonts-ipafont.py	Sun Aug 23 11:31:11 2015 +0100
@@ -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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gub/specs/fonts-liberation.py	Sun Aug 23 11:31:11 2015 +0100
@@ -0,0 +1,13 @@
+from gub import tools
+from gub import build
+
+class Fonts_liberation (build.BinaryBuild):
+    source = 'https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-2.00.1.tar.gz'
+    def install (self):
+        self.system ('mkdir -p %(install_prefix)s/share/fonts/truetype/liberation')
+        self.system ('cp %(srcdir)s/*.ttf %(install_prefix)s/share/fonts/truetype/liberation/')
+    def package (self):
+        build.AutoBuild.package (self)
+
+class Fonts_liberation__tools (tools.AutoBuild, Fonts_liberation):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gub/specs/fonts-libertine.py	Sun Aug 23 11:31:11 2015 +0100
@@ -0,0 +1,13 @@
+from gub import tools
+from gub import build
+
+class Fonts_libertine (build.BinaryBuild):
+    source = 'http://sourceforge.net/projects/linuxlibertine/files/linuxlibertine/5.3.0/LinLibertineOTF_5.3.0_2012_07_02.tgz&strip=0'
+    def install (self):
+        self.system ('mkdir -p %(install_prefix)s/share/fonts/opentype/linux-libertine')
+        self.system ('cp %(srcdir)s/*.otf %(install_prefix)s/share/fonts/opentype/linux-libertine/')
+    def package (self):
+        build.AutoBuild.package (self)
+
+class Fonts_libertine__tools (tools.AutoBuild, Fonts_libertine):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gub/specs/fonts-luximono.py	Sun Aug 23 11:31:11 2015 +0100
@@ -0,0 +1,14 @@
+from gub import tools
+from gub import build
+
+class Fonts_luximono (build.BinaryBuild):
+    source = 'http://mirrors.ctan.org/fonts/LuxiMono.zip'
+    def install (self):
+        self.system ('mkdir -p %(install_prefix)s/share/fonts/type1/luximono')
+        self.system ('cp %(srcdir)s/LuxiMono/*.afm %(install_prefix)s/share/fonts/type1/luximono/')
+        self.system ('cp %(srcdir)s/LuxiMono/*.pf? %(install_prefix)s/share/fonts/type1/luximono/')
+    def package (self):
+        build.AutoBuild.package (self)
+
+class Fonts_luximono__tools (tools.AutoBuild, Fonts_luximono):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gub/specs/fonts-texgyre.py	Sun Aug 23 11:31:11 2015 +0100
@@ -0,0 +1,13 @@
+from gub import tools
+from gub import build
+
+class Fonts_texgyre (build.BinaryBuild):
+    source = 'http://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg-2.005otf.zip'
+    def install (self):
+        self.system ('mkdir -p %(install_prefix)s/share/fonts/opentype/texgyre')
+        self.system ('cp %(srcdir)s/*.otf %(install_prefix)s/share/fonts/opentype/texgyre/')
+    def package (self):
+        build.AutoBuild.package (self)
+
+class Fonts_texgyre__tools (tools.AutoBuild, Fonts_texgyre):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gub/specs/fonts-urw-core35.py	Sun Aug 23 11:31:11 2015 +0100
@@ -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	Wed Apr 22 15:53:41 2015 +0100
+++ b/gub/specs/lilypond-doc.py	Sun Aug 23 11:31:11 2015 +0100
@@ -12,6 +12,14 @@
                 'tools::imagemagick',
                 'tools::rsync', # ugh, we depend on *rsync* !?
                 #'tools::texlive',
+                'tools::fonts-dejavu',
+                'tools::fonts-libertine',
+                'tools::fonts-bitstream-charter',
+                'tools::fonts-bitstream-vera',
+                'tools::fonts-liberation',
+                'tools::fonts-urw-core35',
+                'tools::fonts-luximono',
+                'tools::fonts-ipafont',
                 'system::makeinfo',
                 'system::zip',
                 ])
--- a/gub/specs/lilypond-test.py	Wed Apr 22 15:53:41 2015 +0100
+++ b/gub/specs/lilypond-test.py	Sun Aug 23 11:31:11 2015 +0100
@@ -5,6 +5,17 @@
 from gub.specs import lilypond
 
 class LilyPond_test (lilypond.LilyPond_base):
+    dependencies = (lilypond.LilyPond_base.dependencies
+                + [
+                'tools::fonts-dejavu',
+                'tools::fonts-libertine',
+                'tools::fonts-bitstream-charter',
+                'tools::fonts-bitstream-vera',
+                'tools::fonts-liberation',
+                'tools::fonts-urw-core35',
+                'tools::fonts-luximono',
+                'tools::fonts-ipafont',
+                ])
     @context.subst_method
     def test_ball (self):
         return '%(uploads)s/lilypond-%(version)s-%(build_number)s.test-output.tar.bz2'
--- a/gub/specs/lilypond.py	Wed Apr 22 15:53:41 2015 +0100
+++ b/gub/specs/lilypond.py	Sun Aug 23 11:31:11 2015 +0100
@@ -35,7 +35,7 @@
         'guile-devel',
         'pango-devel',
         'python-devel',
-        'urw-fonts',
+        'tools::fonts-texgyre',
 
         'tools::autoconf',
         'tools::bison',
@@ -61,7 +61,7 @@
                        + ' --enable-relocation'
                        + ' --enable-rpath'
                        + ' --disable-documentation'
-                       + ' --with-fonts-dir=%(system_prefix)s/share/fonts/default/Type1'
+                       + ' --with-texgyre-dir=%(tools_prefix)s/share/fonts/opentype/texgyre'
                        )
     make_flags = ' TARGET_PYTHON=/usr/bin/python'
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/fontconfig-2.11.1-new-urw-aliases.patch	Sun Aug 23 11:31:11 2015 +0100
@@ -0,0 +1,308 @@
+From b732bf057f4b3ec3bac539803005e9c42d056b2a Mon Sep 17 00:00:00 2001
+From: Akira TAGOH <akira@tagoh.org>
+Date: Thu, 6 Nov 2014 13:15:09 +0900
+Subject: Update aliases for new URW fonts
+
+Patch from Tom Yan
+
+https://bugs.freedesktop.org/show_bug.cgi?id=85225
+
+diff --git a/conf.d/30-metric-aliases.conf b/conf.d/30-metric-aliases.conf
+index 49a9602..cd1e924 100644
+--- a/conf.d/30-metric-aliases.conf
++++ b/conf.d/30-metric-aliases.conf
+@@ -6,17 +6,17 @@
+ 
+ Alias similar/metric-compatible families from various sources:
+ 
+-PostScript fonts:       URW fonts:            GUST fonts:        Windows fonts:
+-======================  ====================  =================  ==================
+-Helvetica               Nimbus Sans L         TeX Gyre Heros
+-Helvetica Condensed                           TeX Gyre Heros Cn
+-Times                   Nimbus Roman No9 L    TeX Gyre Termes
+-Courier                 Nimbus Mono L         TeX Gyre Cursor
+-ITC Avant Garde Gothic  URW Gothic L          TeX Gyre Adventor
+-ITC Bookman             URW Bookman L         TeX Gyre Bonum     Bookman Old Style
+-ITC Zapf Chancery       URW Chancery L        TeX Gyre Chorus
+-Palatino                URW Palladio L        TeX Gyre Pagella   Palatino Linotype
+-New Century Schoolbook  Century Schoolbook L  TeX Gyre Schola    Century Schoolbook
++PostScript fonts:       URW fonts:              GUST fonts:        Windows fonts:
++======================  ======================  =================  ==================
++Helvetica               Nimbus Sans             TeX Gyre Heros
++Helvetica Condensed     Nimbus Sans Narrow      TeX Gyre Heros Cn
++Times                   Nimbus Roman            TeX Gyre Termes
++Courier                 Nimbus Mono             TeX Gyre Cursor
++ITC Avant Garde Gothic  URW Gothic              TeX Gyre Adventor
++ITC Bookman             Bookman URW             TeX Gyre Bonum     Bookman Old Style
++ITC Zapf Chancery       Chancery URW            TeX Gyre Chorus
++Palatino                Palladio URW            TeX Gyre Pagella   Palatino Linotype
++New Century Schoolbook  Century SchoolBook URW  TeX Gyre Schola    Century Schoolbook
+ 
+ Microsoft fonts:  Liberation fonts:       Google CrOS core fonts:  StarOffice fonts:  AMT fonts:
+ ================  ======================  =======================  =================  ==============
+@@ -57,6 +57,13 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	</alias>
+ 
+ 	<alias binding="same">
++	  <family>Nimbus Sans</family>
++	  <default>
++	  <family>Helvetica</family>
++	  </default>
++	</alias>
++
++	<alias binding="same">
+ 	  <family>TeX Gyre Heros</family>
+ 	  <default>
+ 	  <family>Helvetica</family>
+@@ -64,6 +71,13 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	</alias>
+ 
+ 	<alias binding="same">
++	  <family>Nimbus Sans Narrow</family>
++	  <default>
++	  <family>Helvetica Condensed</family>
++	  </default>
++	</alias>
++
++	<alias binding="same">
+ 	  <family>TeX Gyre Heros Cn</family>
+ 	  <default>
+ 	  <family>Helvetica Condensed</family>
+@@ -78,6 +92,13 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	</alias>
+ 
+ 	<alias binding="same">
++	  <family>Nimbus Roman</family>
++	  <default>
++	  <family>Times</family>
++	  </default>
++	</alias>
++
++	<alias binding="same">
+ 	  <family>TeX Gyre Termes</family>
+ 	  <default>
+ 	  <family>Times</family>
+@@ -92,6 +113,13 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	</alias>
+ 
+ 	<alias binding="same">
++	  <family>Nimbus Mono</family>
++	  <default>
++	  <family>Courier</family>
++	  </default>
++	</alias>
++
++	<alias binding="same">
+ 	  <family>TeX Gyre Cursor</family>
+ 	  <default>
+ 	  <family>Courier</family>
+@@ -113,6 +141,13 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	</alias>
+ 
+ 	<alias binding="same">
++	  <family>URW Gothic</family>
++	  <default>
++	  <family>ITC Avant Garde Gothic</family>
++	  </default>
++	</alias>
++
++	<alias binding="same">
+ 	  <family>TeX Gyre Adventor</family>
+ 	  <default>
+ 	  <family>ITC Avant Garde Gothic</family>
+@@ -134,6 +169,13 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	</alias>
+ 
+ 	<alias binding="same">
++	  <family>Bookman URW</family>
++	  <default>
++	  <family>ITC Bookman</family>
++	  </default>
++	</alias>
++
++	<alias binding="same">
+ 	  <family>TeX Gyre Bonum</family>
+ 	  <default>
+ 	  <family>ITC Bookman</family>
+@@ -162,6 +204,13 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	</alias>
+ 
+ 	<alias binding="same">
++	  <family>Chancery URW</family>
++	  <default>
++	  <family>ITC Zapf Chancery</family>
++	  </default>
++	</alias>
++
++	<alias binding="same">
+ 	  <family>TeX Gyre Chorus</family>
+ 	  <default>
+ 	  <family>ITC Zapf Chancery</family>
+@@ -176,6 +225,13 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	</alias>
+ 
+ 	<alias binding="same">
++	  <family>Palladio URW</family>
++	  <default>
++	  <family>Palatino</family>
++	  </default>
++	</alias>
++
++	<alias binding="same">
+ 	  <family>TeX Gyre Pagella</family>
+ 	  <default>
+ 	  <family>Palatino</family>
+@@ -197,6 +253,13 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	</alias>
+ 
+ 	<alias binding="same">
++	  <family>Century SchoolBook URW</family>
++	  <default>
++	  <family>New Century Schoolbook</family>
++	  </default>
++	</alias>
++
++	<alias binding="same">
+ 	  <family>TeX Gyre Schola</family>
+ 	  <default>
+ 	  <family>New Century Schoolbook</family>
+@@ -401,6 +464,7 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	  <family>Helvetica</family>
+ 	  <accept>
+ 	  <family>TeX Gyre Heros</family>
++	  <family>Nimbus Sans</family>
+ 	  <family>Nimbus Sans L</family>
+ 	  </accept>
+ 	</alias>
+@@ -409,6 +473,7 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	  <family>Helvetica Condensed</family>
+ 	  <accept>
+ 	  <family>TeX Gyre Heros Cn</family>
++	  <family>Nimbus Sans Narrow</family>
+ 	  </accept>
+ 	</alias>
+ 
+@@ -416,6 +481,7 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	  <family>Times</family>
+ 	  <accept>
+ 	  <family>TeX Gyre Termes</family>
++	  <family>Nimbus Roman</family>
+ 	  <family>Nimbus Roman No9 L</family>
+ 	  </accept>
+ 	</alias>
+@@ -424,6 +490,7 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	  <family>Courier</family>
+ 	  <accept>
+ 	  <family>TeX Gyre Cursor</family>
++	  <family>Nimbus Mono</family>
+ 	  <family>Nimbus Mono L</family>
+ 	  </accept>
+ 	</alias>
+@@ -432,6 +499,7 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	  <family>ITC Avant Garde Gothic</family>
+ 	  <accept>
+ 	  <family>TeX Gyre Adventor</family>
++	  <family>URW Gothic</family>
+ 	  <family>URW Gothic L</family>
+ 	  </accept>
+ 	</alias>
+@@ -441,6 +509,7 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	  <accept>
+ 	  <family>Bookman Old Style</family>
+ 	  <family>TeX Gyre Bonum</family>
++	  <family>Bookman URW</family>
+ 	  <family>URW Bookman L</family>
+ 	  </accept>
+ 	</alias>
+@@ -449,6 +518,7 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	  <family>ITC Zapf Chancery</family>
+ 	  <accept>
+ 	  <family>TeX Gyre Chorus</family>
++	  <family>Chancery URW</family>
+ 	  <family>URW Chancery L</family>
+ 	  </accept>
+ 	</alias>
+@@ -458,6 +528,7 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	  <accept>
+ 	  <family>Palatino Linotype</family>
+ 	  <family>TeX Gyre Pagella</family>
++	  <family>Palladio URW</family>
+ 	  <family>URW Palladio L</family>
+ 	  </accept>
+ 	</alias>
+@@ -467,6 +538,7 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	  <accept>
+ 	  <family>Century Schoolbook</family>
+ 	  <family>TeX Gyre Schola</family>
++	  <family>Century SchoolBook URW</family>
+ 	  <family>Century Schoolbook L</family>
+ 	  </accept>
+ 	</alias>
+diff --git a/conf.d/45-latin.conf b/conf.d/45-latin.conf
+index 996fb81..72490f3 100644
+--- a/conf.d/45-latin.conf
++++ b/conf.d/45-latin.conf
+@@ -34,6 +34,10 @@
+ 		<default><family>serif</family></default>
+ 	</alias>
+ 	<alias>
++		<family>Nimbus Roman</family>
++		<default><family>serif</family></default>
++	</alias>
++	<alias>
+ 		<family>Luxi Serif</family>
+ 		<default><family>serif</family></default>
+ 	</alias>
+@@ -97,6 +101,10 @@
+ 		<default><family>sans-serif</family></default>
+ 	</alias>
+ 	<alias>
++		<family>Nimbus Sans</family>
++		<default><family>sans-serif</family></default>
++	</alias>
++	<alias>
+ 		<family>Luxi Sans</family>
+ 		<default><family>sans-serif</family></default>
+ 	</alias>
+@@ -151,6 +159,10 @@
+ 		<family>Nimbus Mono L</family>
+ 		<default><family>monospace</family></default>
+ 	</alias>
++	<alias>
++		<family>Nimbus Mono</family>
++		<default><family>monospace</family></default>
++	</alias>
+ <!--
+   Fantasy faces
+  -->
+diff --git a/conf.d/60-latin.conf b/conf.d/60-latin.conf
+index 2107e31..35600ea 100644
+--- a/conf.d/60-latin.conf
++++ b/conf.d/60-latin.conf
+@@ -10,6 +10,7 @@
+ 			<family>Thorndale AMT</family>
+ 			<family>Luxi Serif</family>
+ 			<family>Nimbus Roman No9 L</family>
++			<family>Nimbus Roman</family>
+ 			<family>Times</family>
+ 		</prefer>
+ 	</alias>
+@@ -23,6 +24,7 @@
+ 			<family>Albany AMT</family>
+ 			<family>Luxi Sans</family>
+ 			<family>Nimbus Sans L</family>
++			<family>Nimbus Sans</family>
+ 			<family>Helvetica</family>
+ 			<family>Lucida Sans Unicode</family>
+ 			<family>BPG Glaho International</family> <!-- lat,cyr,arab,geor -->
+@@ -40,6 +42,7 @@
+ 			<family>Cumberland AMT</family>
+ 			<family>Luxi Mono</family>
+ 			<family>Nimbus Mono L</family>
++			<family>Nimbus Mono</family>
+ 			<family>Courier</family>
+ 		</prefer>
+ 	</alias>
+-- 
+cgit v0.10.2
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/fontconfig-2.11.1-texgyre-aliases.patch	Sun Aug 23 11:31:11 2015 +0100
@@ -0,0 +1,43 @@
+From e7121de237a1873c3241a5b8451e7d00a3d41524 Mon Sep 17 00:00:00 2001
+From: Akira TAGOH <akira@tagoh.org>
+Date: Fri, 3 Oct 2014 12:26:42 +0900
+Subject: Revert "Bug 73291 - poppler does not show fl ligature"
+
+This reverts commit c6aa4d4bfcbed14f39d070fe7ef90a4b74642ee7.
+
+This issue has been fixed in poppler and we no longer need to patch it out in fontconfig.
+
+diff --git a/conf.d/30-metric-aliases.conf b/conf.d/30-metric-aliases.conf
+index 08c8ba3..49a9602 100644
+--- a/conf.d/30-metric-aliases.conf
++++ b/conf.d/30-metric-aliases.conf
+@@ -77,15 +77,12 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	  </default>
+ 	</alias>
+ 
+-<!--
+-     Due to Bug#73291, commented out those lines until the broken font are fixed.
+ 	<alias binding="same">
+ 	  <family>TeX Gyre Termes</family>
+ 	  <default>
+ 	  <family>Times</family>
+ 	  </default>
+ 	</alias>
+--->
+ 
+ 	<alias binding="same">
+ 	  <family>Nimbus Mono L</family>
+@@ -418,10 +415,7 @@ but in an order preferring similar designs first.  We do this in three steps:
+ 	<alias binding="same">
+ 	  <family>Times</family>
+ 	  <accept>
+-<!--
+-     Due to Bug#73291, commented out this line until the broken font are fixed.
+ 	  <family>TeX Gyre Termes</family>
+--->
+ 	  <family>Nimbus Roman No9 L</family>
+ 	  </accept>
+ 	</alias>
+-- 
+cgit v0.10.2
+
--- a/sourcefiles/lilypond-sharhead.sh	Wed Apr 22 15:53:41 2015 +0100
+++ b/sourcefiles/lilypond-sharhead.sh	Sun Aug 23 11:31:11 2015 +0100
@@ -246,17 +246,6 @@
     done
 cd - > /dev/null;
 
-
-## fontconfig lily fonts
-mkdir -p ${prefix}/usr/etc/fonts/conf.d
-cat <<EOF > ${prefix}/usr/etc/fonts/conf.d/00-lilypond.conf
-<?xml version="1.0"?>
-<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
-<fontconfig>
-        <dir>${prefix}/usr/share/lilypond/current/fonts/otf</dir>
-</fontconfig>
-EOF
-
 ###################
 ## uninstall script