actions.py 982 B

12345678910111213141516171819202122232425262728293031323334
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.export("CFLAGS", "%s -D_GNU_SOURCE" % get.CFLAGS())
  12. autotools.configure("--enable-nls \
  13. --localstatedir=/var/lib/locate \
  14. --without-included-regex \
  15. --disable-rpath \
  16. --disable-assert \
  17. --with-fts \
  18. --enable-leaf-optimisation \
  19. --enable-d_type-optimization")
  20. def build():
  21. autotools.make()
  22. def check():
  23. autotools.make("check")
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. pisitools.dodoc("ChangeLog", "NEWS", "TODO", "README")