actions.py 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import get
  8. def setup():
  9. autotools.configure("--enable-bittorrent \
  10. --enable-metalink \
  11. --enable-epoll \
  12. --enable-nls \
  13. --disable-rpath \
  14. --with-gnutls \
  15. --with-openssl \
  16. --with-sqlite3 \
  17. --with-libxml2 \
  18. --with-libcares \
  19. --with-libz \
  20. --with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt")
  21. def build():
  22. autotools.make("-C po update-gmo")
  23. autotools.make()
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. pisitools.dodoc("ABOUT*", "AUTHORS", "ChangeLog", "COPYING", "LICENSE*", "NEWS", "README*")