actions.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. shelltools.export("AUTOPOINT", "true")
  12. autotools.configure("--with-python \
  13. --without-ldap \
  14. --without-sasl \
  15. --with-popt \
  16. --disable-rpath \
  17. --enable-gtk-doc-html=no \
  18. --disable-gtk-doc")
  19. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  20. shelltools.system("sed -i 's/SUBDIRS = po docs/SUBDIRS = po/' Makefile")
  21. def build():
  22. autotools.make()
  23. autotools.make("-C po update-gmo")
  24. def install():
  25. autotools.rawInstall("DESTDIR='%s'" % get.installDIR())
  26. pisitools.dodoc("ABOUT*", "AUTHORS", "COPYING", "NEWS", "README")