actions.py 1.2 KB

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 shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. autotools.configure("--disable-static \
  12. --disable-dependency-tracking \
  13. --enable-python \
  14. --enable-ruby \
  15. --disable-php ")
  16. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  17. def build():
  18. autotools.make()
  19. autotools.make("check")
  20. shelltools.cd("doc")
  21. autotools.make("doxygen-html")
  22. def install():
  23. autotools.rawInstall("DESTDIR=%(D)s \
  24. PYTHON_PREFIX=%(D)s/usr/lib/%(V)s \
  25. PYTHON_EXEC_PREFIX=%(D)s/usr/lib/%(V)s" % {"D": get.installDIR(),
  26. "V": get.curPYTHON()})
  27. pisitools.insinto("/usr/share/doc/geos", "doc/doxygen_docs/html")
  28. pisitools.dodoc("README", "AUTHORS", "NEWS", "COPYING")