actions.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. pisitools.flags.add("-flto -ffat-lto-objects")
  12. autotools.autoreconf("-vfi")
  13. autotools.configure("--disable-static \
  14. --enable-xlib \
  15. --disable-drm \
  16. --enable-xml \
  17. --enable-ft \
  18. --enable-ps \
  19. --enable-pdf \
  20. --enable-svg \
  21. --enable-tee \
  22. --enable-gl \
  23. --enable-gobject \
  24. --disable-gtk-doc")
  25. pisitools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
  26. pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")
  27. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  28. def build():
  29. autotools.make()
  30. def install():
  31. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  32. pisitools.removeDir("/usr/share/gtk-doc")
  33. pisitools.dodoc("AUTHORS", "README", "ChangeLog", "NEWS", "COPYING", "COPYING-LGPL-2.1", "COPYING-MPL-1.1")