actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 get
  9. WorkDir = "."
  10. SkipFiles = [".pc", "filelist", "patches", "pisiBuildState"]
  11. def setup():
  12. pisitools.dosed("*/Makefile.am", r"/doc/\$\(PACKAGE\)", "/doc/xorg-proto")
  13. for package in shelltools.ls("."):
  14. if package in SkipFiles:
  15. continue
  16. shelltools.cd(package)
  17. autotools.autoreconf("-vif")
  18. autotools.configure("--without-xmlto --without-fop")
  19. shelltools.cd("../")
  20. def build():
  21. for package in shelltools.ls("."):
  22. if package in SkipFiles:
  23. continue
  24. shelltools.cd(package)
  25. autotools.make()
  26. shelltools.cd("../")
  27. def install():
  28. for package in shelltools.ls("."):
  29. if package in SkipFiles:
  30. continue
  31. shelltools.cd(package)
  32. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  33. shelltools.cd("../")