actions.py 1.3 KB

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