actions.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import libtools
  10. from pisi.actionsapi import get
  11. def setup():
  12. options = "--disable-static \
  13. --disable-sqlite \
  14. --enable-flac \
  15. --enable-alsa \
  16. --enable-largefile \
  17. --disable-gcc-pipe \
  18. --disable-jack \
  19. --disable-octave \
  20. --disable-gcc-werror \
  21. --disable-dependency-tracking"
  22. pisitools.dosed("examples/Makefile.am", "noinst_PROGRAMS", "check_PROGRAMS")
  23. pisitools.dosed("tests/Makefile.am", "noinst_PROGRAMS", "check_PROGRAMS")
  24. shelltools.unlink("M4/libtool.m4")
  25. for i in shelltools.ls("M4/lt*.m4"):
  26. shelltools.unlink(i)
  27. autotools.autoreconf("-fi -I M4")
  28. autotools.configure(options)
  29. pisitools.dosed("doc/Makefile", "^htmldocdir.*", "htmldocdir = /usr/share/doc/%s/html" % get.srcNAME())
  30. def build():
  31. autotools.make()
  32. def install():
  33. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  34. pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README")