actions.py 982 B

123456789101112131415161718192021222324252627282930313233343536
  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 shelltools
  9. from pisi.actionsapi import get
  10. i = "--enable-introspection \
  11. --enable-vala=yes \
  12. --disable-static \
  13. --disable-gtk-doc \
  14. --disable-perl-bindings \
  15. --disable-gsettings-backend \
  16. "
  17. def setup():
  18. #shelltools.system("NOCONFIGURE=1 ./autogen.sh")
  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.dodoc("AUTHORS", "COPYING", "NEWS", "README*")