12345678910111213141516171819202122232425262728293031323334353637383940 |
- #!/usr/bin/python
- # -*- coding: utf-8 -*-
- #
- # Licensed under the GNU General Public License, version 3.
- # See the file http://www.gnu.org/licenses/gpl.txt
- from pisi.actionsapi import get
- from pisi.actionsapi import autotools
- from pisi.actionsapi import pisitools
- from pisi.actionsapi import shelltools
- def setup():
- # suppress compiler warnings
- pisitools.cxxflags.add("-Wno-suggest-override -Wno-maybe-uninitialized")
- autotools.configure("--disable-static \
- --disable-dependency-tracking \
- --enable-python \
- --enable-ruby \
- --disable-php ")
-
- # fix unused direct dependency analysis
- pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
- def build():
- autotools.make()
- shelltools.cd("doc")
- autotools.make("doxygen-html")
- def check():
- autotools.make("check")
-
- def install():
- autotools.rawInstall("DESTDIR=%(D)s \
- PYTHON_PREFIX=%(D)s/usr/lib/%(V)s \
- PYTHON_EXEC_PREFIX=%(D)s/usr/lib/%(V)s" % {"D": get.installDIR(),
- "V": get.curPYTHON()})
- pisitools.insinto("/usr/share/doc/geos", "doc/doxygen_docs/html")
- pisitools.dodoc("README*", "COPYING")
|