actions.py 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. from pisi.actionsapi import perlmodules
  11. KeepSpecial=["libtool"]
  12. def setup():
  13. pisitools.dosed("configure.ac", "AC_PATH_XTRA")
  14. autotools.autoreconf("-fi")
  15. pisitools.dosed("configure", "DOCUMENTATION_RELATIVE_PATH=.*", "DOCUMENTATION_RELATIVE_PATH=%s/html" % get.srcNAME())
  16. autotools.configure("--with-x \
  17. --with-fpx \
  18. --with-jp2 \
  19. --with-xml \
  20. --with-wmf \
  21. --with-djvu \
  22. --with-perl \
  23. --with-zlib \
  24. --with-rsvg \
  25. --with-tiff \
  26. --with-jpeg \
  27. --with-gslib \
  28. --with-lcms2 \
  29. --with-bzlib \
  30. --without-dps \
  31. --enable-hdri \
  32. --without-fpx \
  33. --with-modules \
  34. --with-threads \
  35. --without-jbig \
  36. --enable-shared \
  37. --disable-static \
  38. --with-magick_plus_plus \
  39. PSDelegate=/usr/bin/gs \
  40. PCLDelegate=/usr/bin/gpcl6 \
  41. --docdir=/usr/share/doc/imagemagick \
  42. --with-perl-options='INSTALLDIRS=vendor' \
  43. --with-gs-font-dir=/usr/share/fonts/default/ghostscript")
  44. # fix unused direct dependency analysis
  45. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  46. def build():
  47. autotools.make()
  48. def install():
  49. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  50. pisitools.dodoc("LICENSE", "README*")
  51. pisitools.remove("/usr/lib/*.la")
  52. perlmodules.removePacklist()
  53. perlmodules.removePodfiles()