actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 2
  5. # See the file http://www.gnu.org/copyleft/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. # hmmm, we should do the hal mounting with gnome-mount?
  12. autotools.autoreconf("-fi")
  13. autotools.configure("--disable-selinux \
  14. --disable-static \
  15. --enable-samba --with-samba-includes=/usr/include/samba-4.0 \
  16. --disable-hal --enable-avahi --disable-howl")
  17. pisitools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
  18. pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")
  19. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  20. def build():
  21. shelltools.export("GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL", "1")
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. pisitools.dodoc("TODO", "NEWS", "README", "HACKING", "AUTHORS", "ChangeLog")