actions.py 2.5 KB

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