actions.py 755 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 shelltools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. shelltools.export("JOBS", get.makeJOBS().replace("-j", ""))
  10. def setup():
  11. shelltools.system("python waf configure --prefix=/usr --libdir=/usr/lib/")
  12. def build():
  13. shelltools.system("python waf build -v")
  14. def install():
  15. shelltools.system("DESTDIR=%s python waf install" % get.installDIR())
  16. pisitools.dodoc("NEWS", "COPYING", "README.md")
  17. pisitools.remove("/usr/bin/lv2specgen.py")
  18. pisitools.removeDir("/usr/bin/")
  19. pisitools.removeDir("/usr/share/lv2specgen/")