actions.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 cmaketools
  9. from pisi.actionsapi import get
  10. def setup():
  11. pisitools.flags.remove("-DNDEBUG")
  12. #shelltools.system("./autogen.sh")
  13. #autotools.configure("--prefix=/usr \
  14. #--disable-static \
  15. #--enable-shared")
  16. #pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  17. cmaketools.configure("-DBUILD_SHARED_LIBS=ON \
  18. -DSNAPPY_BUILD_TESTS=OFF \
  19. -DSNAPPY_BUILD_BENCHMARKS=OFF \
  20. -DCMAKE_INSTALL_LIBDIR=lib")
  21. def build():
  22. cmaketools.make()
  23. #def check():
  24. #cmaketools.make("test")
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. pisitools.dodoc("README.md", "COPYING", "AUTHORS")