actions.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import cmaketools
  9. from pisi.actionsapi import get
  10. def setup():
  11. #shelltools.system("""sed -i 's:DESTINATION man/man1:DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1":g' \
  12. #doc/CMakeLists.txt""")
  13. # --shared and --release are default parameters, however we just write them
  14. # to down to avoid confusing wheter it's a static/shared or release/debug
  15. # package at the first look :)
  16. cmaketools.configure("-B build \
  17. -DMAN_INSTALL_DIR=/usr/share/man/man1 \
  18. -DCMAKE_INSTALL_PREFIX:PATH='/usr'")
  19. def build():
  20. cmaketools.make("-C build")
  21. def install():
  22. shelltools.cd("build")
  23. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. pisitools.doman("../doc/doxygen.1")
  25. # The makefile included is there to generate the html files
  26. # The user itself should execute it
  27. pisitools.insinto(get.docDIR() + "/doxygen" , "../examples")
  28. shelltools.cd("..")
  29. pisitools.dodoc("LANGUAGE.HOWTO", "LICENSE", "README*", "VERSION")