actions.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. options = "--disable-static \
  11. --disable-rpath \
  12. --disable-silent-rules \
  13. --disable-guile \
  14. --enable-heartbeat-support \
  15. --without-tpm \
  16. --disable-valgrind-tests"
  17. if get.buildTYPE() == "emul32":
  18. options += " --disable-hardware-acceleration \
  19. --libdir=/usr/lib32 \
  20. --bindir=/usr/emul32/bin \
  21. --with-included-unistring \
  22. --without-zstd \
  23. --without-brotli \
  24. --enable-local-libopts \
  25. "
  26. autotools.configure(options)
  27. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  28. def build():
  29. autotools.make()
  30. def check():
  31. #some tests fail in emul32
  32. if not get.buildTYPE() == "emul32":
  33. autotools.make("check")
  34. def install():
  35. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  36. if get.buildTYPE() == "emul32":
  37. pisitools.removeDir("/usr/emul32")
  38. return
  39. pisitools.dodoc("AUTHORS*", "README*")