actions.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. # suppress compiler warnings
  12. pisitools.cxxflags.add("-Wno-suggest-override -Wno-maybe-uninitialized")
  13. autotools.configure("--disable-static \
  14. --disable-dependency-tracking \
  15. --enable-python \
  16. --enable-ruby \
  17. --disable-php ")
  18. # fix unused direct dependency analysis
  19. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  20. def build():
  21. autotools.make()
  22. shelltools.cd("doc")
  23. autotools.make("doxygen-html")
  24. def check():
  25. autotools.make("check")
  26. def install():
  27. autotools.rawInstall("DESTDIR=%(D)s \
  28. PYTHON_PREFIX=%(D)s/usr/lib/%(V)s \
  29. PYTHON_EXEC_PREFIX=%(D)s/usr/lib/%(V)s" % {"D": get.installDIR(),
  30. "V": get.curPYTHON()})
  31. pisitools.insinto("/usr/share/doc/geos", "doc/doxygen_docs/html")
  32. pisitools.dodoc("README*", "COPYING")