12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- # -*- coding: utf-8 -*-
- #
- # Licensed under the GNU General Public License, version 3.
- # See the file http://www.gnu.org/licenses/gpl.txt
- from pisi.actionsapi import autotools
- from pisi.actionsapi import pisitools
- from pisi.actionsapi import shelltools
- from pisi.actionsapi import libtools
- from pisi.actionsapi import get
- def setup():
- #Make sure the system regenerates src/fcobjshash.h.
- shelltools.system("rm -rf src/fcobjshash.h")
- # Do not rebuild docs
- shelltools.export("HASDOCBOOK", "no")
-
- libtools.libtoolize("-f")
- autotools.autoreconf("-fi")
- autotools.configure("--disable-static \
- --disable-docs \
- --with-cache-dir=/var/cache/fontconfig \
- --with-default-fonts=/usr/share/fonts \
- --with-add-fonts=/usr/local/share/fonts")
- def build():
- autotools.make()
- def install():
- autotools.rawInstall("DESTDIR=%s" % get.installDIR())
- if get.buildTYPE() == "emul32": return
- pisitools.insinto("/etc/fonts", "fonts.conf", "fonts.conf.new")
- enabled_configs = ("10-sub-pixel-rgb.conf", "70-yes-bitmaps.conf")
- disabled_configs = ("10-sub-pixel-none.conf",)
- # for cfg in enabled_configs:
- # pisitools.dosym("/usr/share/fontconfig/conf.avail/%s" % cfg, "/etc/fonts/conf.d/%s" % cfg)
- #pisitools.dosym("../conf.avail/%s" % cfg, "/etc/fonts/conf.d/%s" % cfg)
- for cfg in disabled_configs:
- pisitools.remove("/usr/share/fontconfig/conf.avail/%s" % cfg)
- for i in ["fc-cat", "fc-list", "fc-match", "fc-cache"]:
- pisitools.doman("%s/*.1" % i)
- pisitools.doman("doc/*.3")
- pisitools.dodoc("AUTHORS", "COPYING", "README*", "doc/*.txt")
|