blob: 833545c41f687e78d119c9fb825c7ce605a7c6d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/geos/geos-3.2.0.ebuild,v 1.2 2010/01/12 20:09:21 bicatali Exp $
EAPI=2
DESCRIPTION="Geometry engine library for Geographic Information Systems"
HOMEPAGE="http://geos.refractions.net"
SRC_URI="http://download.osgeo.org/geos/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris"
IUSE="doc python ruby"
RDEPEND="ruby? ( virtual/ruby )
python? ( virtual/python )"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
ruby? ( dev-lang/swig )
python? ( dev-lang/swig )"
src_prepare() {
# quick fix not worth for eautoreconf
sed -i \
-e 's|\/lib\/python|$libdir\/python|g' \
-e 's|.get_python_lib(0|.get_python_lib(1|g' \
configure || die
}
src_configure() {
econf $(use_enable python) $(use_enable ruby)
}
src_compile() {
emake || die "emake failed"
if use doc; then
cd "${S}/doc"
emake doxygen-html || die "doc generation failed"
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
rm -f "${D}"usr/lib*/python*/site-packages/geos/_geos.*a || die
dodoc AUTHORS NEWS README TODO
if use doc; then
cd "${S}/doc"
dohtml -r doxygen_docs/html/* || die
fi
}
|