actions.py 1003 B

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. WorkDir = "%s-%s" % (get.srcNAME(), get.srcVERSION().replace("_", ""))
  11. def setup():
  12. #shelltools.unlink("acinclude.m4")
  13. autotools.autoreconf("-fi")
  14. autotools.configure("--disable-gtk-doc \
  15. --disable-static \
  16. --disable-man \
  17. --disable-gmdb2 \
  18. --with-unixodbc=/usr")
  19. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  20. def check():
  21. autotools.make("check")
  22. def build():
  23. autotools.make("-j1")
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "NEWS", "README", "TODO")