actions.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. def setup():
  10. # fix sandbox violations when attempt to read "/missing.xml"
  11. pisitools.dosed("testapi.c", "\/missing.xml", "missing.xml")
  12. options = "--with-zlib \
  13. --with-readline \
  14. --enable-ipv6 \
  15. --disable-static \
  16. --with-threads \
  17. --with-history \
  18. "
  19. if get.buildTYPE() == "emul32":
  20. options += " --bindir=/emul32/bin \
  21. --without-python"
  22. else: options += " --with-python"
  23. autotools.configure(options)
  24. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  25. def build():
  26. autotools.make()
  27. def check():
  28. autotools.make("check")
  29. def install():
  30. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  31. if get.buildTYPE() == "emul32" or "i686":
  32. pisitools.removeDir("/usr/share/gtk-doc")
  33. return
  34. pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "TODO")