actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #shelltools.system("rm -rf lib/{boost,fmt,jpcre2,libebml,libmatroska,nlohmann-json,pugixml,utf8-cpp}")
  18. # pisitools.dosed("configure.in", "curl", deleteLine=True)
  19. shelltools.system("./autogen.sh")
  20. autotools.autoreconf("-fiv")
  21. autotools.configure("--with-flac \
  22. --enable-qt6 \
  23. --disable-qt5 \
  24. --disable-update-check \
  25. --with-boost-libdir=/usr/lib ")
  26. def build():
  27. shelltools.system("rake")
  28. def install():
  29. shelltools.system('rake install DESTDIR="%s"' % get.installDIR())
  30. pisitools.dodoc("COPYING*", "README*")