actions.py 823 B

123456789101112131415161718192021222324252627282930
  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 shelltools
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. pisitools.flags.remove("-DNDEBUG")
  11. shelltools.system("./autogen.sh")
  12. autotools.configure("--prefix=/usr \
  13. --disable-static \
  14. --enable-shared")
  15. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  16. def build():
  17. autotools.make()
  18. def build():
  19. autotools.make("check")
  20. def install():
  21. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. pisitools.dodoc("README", "COPYING", "ChangeLog", "NEWS", "AUTHORS")