actions.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #sandbox error fixed
  11. #pisitools.dosed("data/dconf/Makefile.am", "dconf update", "")
  12. #pisitools.dosed("data/dconf/Makefile.in", "dconf update", "")
  13. autotools.configure("--prefix=/usr \
  14. --sysconfdir=/etc \
  15. --libexecdir=/usr/lib/ibus \
  16. --disable-gconf \
  17. --disable-emoji-dict \
  18. --enable-dconf \
  19. --enable-wayland \
  20. --enable-vala \
  21. --enable-ui \
  22. --enable-gtk-doc \
  23. --enable-python-library \
  24. --with-python=python \
  25. --enable-gtk3 \
  26. --enable-gtk2")
  27. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  28. def build():
  29. autotools.make()
  30. def install():
  31. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  32. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README")