actions.py 2.2 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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import perlmodules
  9. from pisi.actionsapi import get
  10. # .la files needed to load modules
  11. KeepSpecial = ["libtool"]
  12. def setup():
  13. # ghostscript is better than dps
  14. # unstable fpx support disabled
  15. # trio is for old systems not providing vsnprintf
  16. autotools.configure("--enable-openmp \
  17. --enable-shared \
  18. --disable-static \
  19. --disable-openmp \
  20. --with-threads \
  21. --with-modules \
  22. --with-magick-plus-plus \
  23. --with-perl \
  24. --with-bzlib \
  25. --without-dps \
  26. --without-fpx \
  27. --with-gslib \
  28. --with-jbig \
  29. --with-jpeg \
  30. --with-jp2 \
  31. --with-lcms \
  32. --with-png \
  33. --with-tiff \
  34. --without-trio \
  35. --with-ttf \
  36. --with-wmf \
  37. --with-fontpath=/usr/share/fonts \
  38. --with-gs-font-dir=/usr/share/fonts/default/ghostscript \
  39. --with-xml \
  40. --with-zlib \
  41. --with-x \
  42. --with-quantum-depth=16")
  43. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  44. def build():
  45. autotools.make()
  46. autotools.make("perl-build")
  47. def install():
  48. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  49. autotools.rawInstall("DESTDIR=%s -C PerlMagick" % get.installDIR())
  50. for d in ("demo/", "Changelog", "README.txt"):
  51. pisitools.insinto("/usr/share/doc/PerlMagick", "PerlMagick/%s" % d)
  52. pisitools.remove("/usr/lib/*.la")
  53. perlmodules.removePacklist()
  54. perlmodules.removePodfiles()