actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. # Disable automagic curl dep used for online update checking
  11. shelltools.export("CURL_CFLAGS", "")
  12. shelltools.export("CURL_LIBS", "")
  13. # Sets number of threads for a parallel build
  14. shelltools.export("DRAKETHREADS", get.makeJOBS().replace("-j", ""))
  15. pisitools.flags.add("-DBOOST_FILESYSTEM_VERSION=3")
  16. def setup():
  17. # pisitools.dosed("configure.in", "curl", deleteLine=True)
  18. autotools.autoreconf("-fiv")
  19. autotools.configure("--enable-gui \
  20. --without-curl \
  21. --with-flac \
  22. --with-boost-libdir=/usr/lib ")
  23. def build():
  24. shelltools.system("rake")
  25. def install():
  26. shelltools.system('rake install DESTDIR="%s"' % get.installDIR())
  27. pisitools.dodoc("AUTHORS", "NEWS*", "README*")