actions.py 803 B

1234567891011121314151617181920212223242526
  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.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. WorkDir = "fonts"
  10. def install():
  11. pisitools.dodir("/usr/share/fonts/default/ghostscript")
  12. pisitools.insinto("/usr/share/fonts/default/ghostscript", "*")
  13. # Remove fonts.* files as they will be generated by xorg-app pakhandler
  14. for f in ["scale", "dir"]:
  15. pisitools.remove("/usr/share/fonts/default/ghostscript/fonts.%s" % f)
  16. docs = ["COPYING", "ChangeLog", "README", "README.tweaks", "TODO"]
  17. for f in docs:
  18. pisitools.remove("/usr/share/fonts/default/ghostscript/%s" % f)
  19. pisitools.dodoc(f)