actions.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 perlmodules
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import pisitools
  10. from pisi.actionsapi import get
  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-gs-font-dir=/usr/share/fonts/default/ghostscript \
  17. --docdir=/usr/share/doc/imagemagick \
  18. --enable-hdri \
  19. --enable-shared \
  20. --disable-static \
  21. --with-modules \
  22. --with-perl \
  23. --with-perl-options='INSTALLDIRS=vendor' \
  24. --with-x \
  25. --with-threads \
  26. --with-magick_plus_plus \
  27. --with-gslib \
  28. --with-wmf \
  29. --with-lcms2 \
  30. --with-rsvg \
  31. --with-xml \
  32. --with-djvu \
  33. --with-bzlib \
  34. --with-zlib \
  35. --with-fpx \
  36. --with-tiff \
  37. --with-jp2 \
  38. --with-jpeg \
  39. --without-jbig \
  40. --without-fpx \
  41. --without-dps")
  42. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  43. def build():
  44. autotools.make()
  45. def install():
  46. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  47. pisitools.dodoc("AUTHORS.txt", "ChangeLog", "LICENSE", "NEWS.txt")
  48. pisitools.remove("/usr/lib/*.la")
  49. perlmodules.removePacklist()
  50. perlmodules.removePodfiles()