actions.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 get
  10. #WorkDir = "libtorrent-rasterbar-%s" % get.srcVERSION()
  11. def setup():
  12. autotools.autoreconf("-vfi")
  13. autotools.configure("--disable-static \
  14. --enable-python-binding \
  15. --enable-encryption \
  16. --with-boost-filesystem=mt \
  17. --with-boost-thread=mt \
  18. --with-zlib=system \
  19. --with-libiconv \
  20. --with-libgeoip=system \
  21. --enable-export-all")
  22. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  23. def build():
  24. autotools.make("CXX=%s" % get.CXX())
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. #pisitools.removeDir("/usr/bin")
  28. pisitools.dohtml("docs/*")
  29. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "LICENSE")