actions.py 857 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env 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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. #def setup():
  11. #autotools.configure()
  12. prefix = "/usr"
  13. libdir = "/usr/lib"
  14. mandir = "/usr/share/man"
  15. def build():
  16. pisitools.dosed("Makefile", "/usr/local", "/usr")
  17. pisitools.dosed("libxdo.pc", "local/", "")
  18. autotools.make("WITHOUT_RPATH_FIX=1")
  19. def install():
  20. autotools.install("DESTDIR=%s PREFIX=/usr INSTALLLIB=/usr/lib INSTALLMAN=/usr/share/man" % get.installDIR())
  21. #autotools.install("DESTDIR=%s PREFIX=%s INSTALLLIB=%s INSTALLMAN=%s" % ( get.installDIR(), prefix, libdir, mandir))
  22. pisitools.dodoc("CHANGELIST")