actions.py 1009 B

123456789101112131415161718192021222324252627282930313233
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.export("AT_M4DIR", "m4")
  12. autotools.autoreconf("-vfi")
  13. autotools.configure('--disable-dependency-tracking \
  14. --enable-nls \
  15. --enable-vcut \
  16. --enable-ogg123 \
  17. --with-flac \
  18. --with-speex \
  19. --with-kate \
  20. --docdir="/%s/%s"' % (get.docDIR(), get.srcNAME()))
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. pisitools.removeDir("/usr/share/doc")
  26. pisitools.dodoc("CHANGES", "COPYING", "AUTHORS", "README", "ogg123/ogg123rc-example")