actions.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.makedirs("test/TokenizerTest/objects")
  12. shelltools.makedirs("build")
  13. shelltools.cd("build")
  14. cmaketools.configure("-DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
  15. -DPODOFO_HAVE_JPEG_LIB=1 \
  16. -DPODOFO_HAVE_PNG_LIB=1 \
  17. -DPODOFO_HAVE_TIFF_LIB=1 \
  18. -DWANT_FONTCONFIG=1 \
  19. -DPODOFO_BUILD_SHARED=TRUE \
  20. -DPODOFO_BUILD_STATIC=FALSE \
  21. -DWANT_BOOST=1", sourceDir="..")
  22. #-DUSE_STLPORT=1"
  23. def build():
  24. shelltools.cd("build")
  25. cmaketools.make()
  26. def install():
  27. shelltools.cd("build")
  28. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  29. shelltools.cd("..")
  30. pisitools.dodoc("AUTHORS*", "COPYING", "TODO*")
  31. # pisitools.dohtml("README.html", "FAQ.html")