1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 )
8 inherit autotools eutils python-single-r1 python-utils-r1
10 DESCRIPTION="Geometry engine library for Geographic Information Systems"
11 HOMEPAGE="http://trac.osgeo.org/geos/"
12 SRC_URI="http://download.osgeo.org/geos/${P}.tar.bz2"
16 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris"
17 IUSE="doc php python ruby static-libs"
20 php? ( >=dev-lang/php-5.3[-threads] )
21 ruby? ( dev-lang/ruby )
24 doc? ( app-doc/doxygen )
25 php? ( dev-lang/swig )
26 python? ( dev-lang/swig ${PYTHON_DEPS} )
27 ruby? ( dev-lang/swig )
31 epatch "${FILESDIR}"/3.4.2-solaris-isnan.patch \
32 "${FILESDIR}"/3.4.2-ruby_so_name.patch
34 echo "#!${EPREFIX}/bin/bash" > py-compile
39 $(use_enable python) \
42 $(use_enable static-libs static)
48 use doc && emake -C "${S}/doc" doxygen-html
52 emake DESTDIR="${D}" install
54 use doc && dohtml -r doc/doxygen_docs/html/*
55 use python && python_optimize "${D}$(python_get_sitedir)"/geos/
57 find "${ED}" -name '*.la' -exec rm -f {} +