actions.py 1005 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. i = "--enable-notifications \
  10. --enable-introspection \
  11. --enable-gio-unix \
  12. --enable-gudev \
  13. --enable-exif \
  14. --enable-pcre \
  15. --disable-static \
  16. --disable-gtk-doc \
  17. "
  18. def setup():
  19. autotools.configure(i)
  20. #pisitools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
  21. #pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")
  22. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  23. def build():
  24. autotools.make()
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. pisitools.removeDir("usr/lib/systemd")
  28. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "FAQ", "HACKING", "NEWS*", "README*", "THANKS")