actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. #needed by mozilla patch
  12. autotools.autoreconf("-vfi")
  13. options = "--disable-dependency-tracking \
  14. --disable-static \
  15. --with-jpeg \
  16. --with-tiff \
  17. --with-zlib \
  18. --with-python"
  19. if get.buildTYPE() == "emul32":
  20. options += " --without-python"
  21. autotools.configure(options)
  22. def build():
  23. #needed by mozilla patch, swig must be run again
  24. shelltools.cd("python")
  25. shelltools.system("./swig_lcms")
  26. shelltools.cd("..")
  27. autotools.make()
  28. def install():
  29. autotools.rawInstall('DESTDIR=%s \
  30. BINDIR=%s/usr/bin \
  31. includedir=/usr/include' % (get.installDIR(), get.installDIR()))
  32. pisitools.insinto("/usr/share/lcms/profiles", "testbed/*.icm")
  33. pisitools.dodoc("AUTHORS", "README*", "NEWS", "doc/*")