actions.py 1.1 KB

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 shelltools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.system("NOCONFIGURE=1 ./autogen.sh")
  12. #autotools.autoreconf("-fiv")
  13. autotools.configure("--prefix=/usr \
  14. --sysconfdir=/etc \
  15. --localstatedir=/var \
  16. --libexecdir=/usr/lib/caribou \
  17. --disable-maintainer-mode \
  18. --disable-schemas-compile \
  19. --disable-docs \
  20. --disable-static \
  21. --disable-gtk2-module \
  22. --enable-gtk3-module")
  23. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  24. def build():
  25. autotools.make()
  26. def install():
  27. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  28. pisitools.dodoc("AUTHORS", "ChangeLog","COPYING", "README", "NEWS")