actions.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. if get.buildTYPE() == "emul32":
  10. libexec = "/tmp"
  11. sysconf = "--sysconfdir=/tmp"
  12. else:
  13. libexec = "/usr/libexec/at-spi2"
  14. sysconf = ""
  15. def setup():
  16. autotools.autoreconf("-vif")
  17. autotools.configure("--disable-static \
  18. --disable-silent-rules \
  19. --disable-xevie \
  20. --libexecdir=%s\
  21. --with-dbus-daemondir=/usr/bin \
  22. %s \
  23. " % (libexec, sysconf))
  24. #pisitools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
  25. pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")
  26. pisitools.dosed("libtool", "( -shared )", " -Wl,--as-needed\\1")
  27. def build():
  28. autotools.make()
  29. def install():
  30. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  31. #pisitools.removeDir("/etc")
  32. if get.buildTYPE() == "emul32":
  33. pisitools.dosed("%s/usr/share/dbus-1/services" % get.installDIR(), "^(Exec=)\/tmp", r"\1/usr/libexec/at-spi2")
  34. pisitools.removeDir("/tmp")
  35. return
  36. pisitools.dodoc("AUTHORS", "COPYING", "README", "NEWS")