actions.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. pisitools.dosed("configure.ac", "(SCIM_HAS_CLUTTER=)yes", "\\1no")
  12. autotools.autoreconf("-vfi")
  13. shelltools.system("intltoolize --force")
  14. autotools.configure("\
  15. --with-x \
  16. --disable-static \
  17. --enable-ld-version-script \
  18. --x-includes=/usr/include/X11 \
  19. --x-libraries=/usr/lib \
  20. --disable-clutter-immodule \
  21. ")
  22. #--disable-panel-gtk \
  23. #--disable-setup-ui")
  24. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  25. def build():
  26. autotools.make()
  27. def install():
  28. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  29. #Remove scim-setup related stuff
  30. #pisitools.removeDir("/usr/share/pixmaps")
  31. #pisitools.removeDir("/usr/share/applications")
  32. #pisitools.removeDir("/usr/share/control-center-2.0")
  33. pisitools.dodoc("AUTHORS", "NEWS", "README*", "TODO", "THANKS")