actions.py 863 B

123456789101112131415161718192021222324252627282930313233343536
  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 get
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. options = "--with-pic \
  12. --enable-ogg \
  13. --enable-sse \
  14. --disable-doxygen-docs \
  15. --disable-dependency-tracking \
  16. --disable-xmms-plugin \
  17. --disable-static"
  18. autotools.autoconf()
  19. autotools.configure(options)
  20. def build():
  21. autotools.make()
  22. #def check():
  23. #autotools.make("check")
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. pisitools.removeDir("/usr/share/doc/")
  27. pisitools.dohtml("doc/html/*")