actions.py 1010 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import get
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. def setup():
  10. options = "--with-glib=yes \
  11. --with-freetype=yes \
  12. --with-cairo=yes \
  13. --with-icu=yes \
  14. --with-gobject=yes \
  15. --with-graphite2=yes"
  16. if get.buildTYPE() == "emul32":
  17. options += "--with-glib=yes \
  18. --with-graphite2=no \
  19. --with-cairo=yes \
  20. --with-icu=yes"
  21. autotools.configure(options)
  22. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  23. def build():
  24. autotools.make()
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README")