actions.py 845 B

1234567891011121314151617181920212223242526
  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. from pisi.actionsapi import pythonmodules
  11. shelltools.export("JOBS", get.makeJOBS().replace("-j", ""))
  12. def setup():
  13. shelltools.system("./bootstrap.py")
  14. shelltools.system("python waf configure --prefix=/usr --confdir=/etc/mpv --enable-zsh-comp --enable-libmpv-shared --enable-cdda --disable-libsmbclient")
  15. def build():
  16. shelltools.system("python waf build -v")
  17. def install():
  18. shelltools.system("DESTDIR=%s python waf install" % get.installDIR())
  19. pisitools.dodoc("Copyright", "RELEASE_NOTES", "README.md", "LICENSE")