actions.py 1.1 KB

123456789101112131415161718192021222324252627282930
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. #This command disables applications using cmake from attempting to install files in /usr/lib64/
  11. pisitools.dosed('Modules/GNUInstallDirs.cmake', '"lib64"', '"lib"')
  12. autotools.rawConfigure("--parallel=%s \
  13. --system-libs \
  14. --no-qt-gui \
  15. --prefix=/usr \
  16. --no-system-jsoncpp \
  17. --no-system-librhash \
  18. --no-system-cppdap \
  19. --datadir=/share/cmake \
  20. --docdir=/share/doc/cmake \
  21. --mandir=/share/man" % get.makeJOBS().replace("-j", ""))
  22. def build():
  23. autotools.make()
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())