actions.py 994 B

1234567891011121314151617181920212223242526272829303132333435
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import libtools
  10. from pisi.actionsapi import get
  11. def setup():
  12. shelltools.system("./autogen.sh")
  13. autotools.configure("--prefix=/usr \
  14. --sysconfdir=/etc/gpm \
  15. --sbindir=/usr/bin")
  16. #--libdir=/usr/lib \
  17. def build():
  18. autotools.make()
  19. def install():
  20. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  21. # Remove this when we can break abi
  22. pisitools.dosym("libgpm.so.2", "/usr/lib/libgpm.so")
  23. #remove static link
  24. pisitools.remove("/usr/lib/libgpm.a")
  25. pisitools.insinto("/etc/gpm", "conf/gpm-*.conf")
  26. pisitools.dodoc("COPYING", "README", "TODO", "doc/Announce", "doc/FAQ", "doc/README*")