actions.py 1.1 KB

1234567891011121314151617181920212223242526272829
  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 pisitools
  7. from pisi.actionsapi import get
  8. from pisi.actionsapi import cmaketools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. pisitools.dosed("Dbus/interfaces/python/PythonInstall.cmake.in", "\@ROOT_PREFIX\@", get.installDIR())
  12. pisitools.dosed("Dbus/interfaces/bash/BashInstall.cmake.in", "\@ROOT_PREFIX\@", get.installDIR())
  13. cmaketools.configure()
  14. if not shelltools.isDirectory("weblets/src/webkit"):
  15. shelltools.makedirs("weblets/src/webkit")
  16. shelltools.sym("%s/weblets/src/webkit" % get.curDIR(), "weblets/src/webkit/webkit")
  17. for file in shelltools.ls("/usr/include/webkit-1.0/webkit"):
  18. shelltools.sym("/usr/include/webkit-1.0/webkit/%s" % file, "weblets/src/webkit/%s" % file)
  19. pisitools.dosed("weblets/src/applet-struct.h", "<webkit\/webkit.h>", '"webkit/webkit.h"')
  20. def build():
  21. cmaketools.make()
  22. def install():
  23. cmaketools.install()