actions.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 cmaketools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import mesontools
  10. from pisi.actionsapi import get
  11. def setup():
  12. # pisitools.dosed("libproxy/cmake/modules/pacrunner_mozjs.cmk", "mozjs-68", "mozjs-78")
  13. # shelltools.makedirs("build")
  14. # shelltools.cd("build")
  15. # cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  16. # -DBIPR=0 \
  17. # -DCMAKE_SKIP_RPATH=ON \
  18. # -DCMAKE_BUILD_TYPE=Release \
  19. # -DPERL_VENDORINSTALL=yes \
  20. # -DWITH_WEBKIT3:BOOL=ON \
  21. # -DWITH_VALA=yes \
  22. # -DCMAKE_CXX_FLAGS='%s' \
  23. # -DCMAKE_C_FLAGS='%s' \
  24. # -DWITH_MOZJS:BOOL=ON" % (get.CXXFLAGS(), get.CFLAGS()), sourceDir="..")
  25. mesontools.configure()
  26. def build():
  27. # shelltools.cd("build")
  28. # cmaketools.make()
  29. mesontools.build()
  30. def install():
  31. # shelltools.cd("build")
  32. # cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  33. mesontools.install()
  34. # shelltools.cd("..")
  35. pisitools.dodoc("README*", "COPYING")