actions.py 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. #autotools.autoreconf("-vfi")
  12. autotools.configure("--enable-mmx \
  13. --enable-sse \
  14. --includedir=/usr/include \
  15. --datadir=/usr/share \
  16. --with-pic \
  17. --with-gio \
  18. --with-gtk \
  19. --with-cairo \
  20. --with-pango \
  21. --with-pangocairo \
  22. --with-gdk-pixbuf \
  23. --with-lensfun \
  24. --with-libjpeg \
  25. --with-libpng \
  26. --with-openexr \
  27. --with-sdl \
  28. --with-libopenraw \
  29. --with-jasper \
  30. --with-lua \
  31. --without-libavformat \
  32. --with-libv4l \
  33. --with-libspiro \
  34. --with-exiv2 \
  35. --with-umfpack \
  36. --disable-static \
  37. --disable-gtk-doc \
  38. --enable-gtk-doc-html=no \
  39. --disable-docs \
  40. --disable-workshop")
  41. #--with-librsvg \
  42. #--with-graphviz \
  43. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  44. def build():
  45. autotools.make()
  46. # disabled due sandbox violations
  47. #def check():
  48. # autotools.make("check")
  49. def install():
  50. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  51. #avoid file conflicts with gegl1.x
  52. pisitools.removeDir("/usr/bin")
  53. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "COPYING.LESSER", "NEWS", "README")