actions.py 994 B

1234567891011121314151617181920212223242526272829303132
  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/copyleft/gpl.txt.
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. def setup():
  10. # suppress compiler warnings
  11. pisitools.cflags.add("-Wno-unused-result -Wno-deprecated-declarations")
  12. #shelltools.export("CFLAGS", "-Wno-unused-result -Wno-deprecated-declarations")
  13. # Fix soname
  14. pisitools.dosed("src/Makefile.in", "^LIBSHARED.*", "LIBSHARED = libnids.so.%s" % get.srcVERSION().split(".", 1)[0])
  15. # disable static
  16. pisitools.dosed("src/Makefile.in", "\$\(INSTALL.*libnids.a.*")
  17. autotools.autoreconf("-vfi")
  18. autotools.configure("--enable-shared \
  19. --disable-static")
  20. def build():
  21. autotools.make()
  22. def install():
  23. autotools.rawInstall("install_prefix=%s" % get.installDIR())
  24. pisitools.dodoc("COPYING", "MISC", "README", "doc/*")