actions.py 776 B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import cmaketools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. j = "-DCMAKE_BUILD_TYPE=release \
  11. -DCMAKE_INSTALL_PREFIX=/usr \
  12. -DENABLE_DOCUMENTATION=ON \
  13. -DBUILD_SHARED_LIBS=ON \
  14. -DENABLE_UTILS=ON -L \
  15. "
  16. def setup():
  17. shelltools.system("./bootstrap")
  18. cmaketools.configure(j)
  19. def build():
  20. cmaketools.make()
  21. def install():
  22. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. for t in ["utils/nfs-cat", "utils/nfs-cp", "utils/nfs-ls"]:
  24. pisitools.dobin(t)
  25. pisitools.dodoc("COPYING", "README")