actions.py 989 B

1234567891011121314151617181920212223242526272829
  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. # TODO: Add libchamplain (Contact Maps) support.
  7. from pisi.actionsapi import cmaketools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. # pisitools.dosed("CMakeLists.txt", "webkit2gtk-4.1", "webkit2gtk-5.0")
  12. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  13. -DSYSCONF_INSTALL_DIR=/etc \
  14. -DENABLE_INSTALLED_TESTS=OFF \
  15. -DENABLE_PST_IMPORT=OFF \
  16. -DENABLE_YTNEF=OFF \
  17. -DENABLE_CONTACT_MAPS=OFF \
  18. -DENABLE_TEXT_HIGHLIGHT=OFF")
  19. def build():
  20. cmaketools.make()
  21. def install():
  22. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. pisitools.dodoc("COPYING", "ChangeLog", "HACKING", "MAINTAINERS", "NEWS", "README.md")