actions.py 958 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import get
  10. def build():
  11. autotools.make('FC-LANG="" BLOCKS="/usr/share/unicode/ucd/Blocks.txt" UNICODEDATA="/usr/share/unicode/ucd/UnicodeData.txt"')
  12. def check():
  13. autotools.make("check")
  14. def install():
  15. pisitools.insinto("/usr/share/fonts/dejavu", "build/*.ttf")
  16. # Create symlinks for fontconfig files
  17. for conf in shelltools.ls("fontconfig"):
  18. pisitools.insinto("/etc/fonts/conf.avail", "fontconfig/%s" % conf)
  19. pisitools.dosym("/etc/fonts/conf.avail/%s" % conf, "/etc/fonts/conf.d/%s" % conf)
  20. pisitools.dosym("/usr/share/fonts/dejavu" , "/etc/X11/fontpath.d/dejavu")
  21. pisitools.dodoc("AUTHORS", "LICENSE", "NEWS")