blob: ecdb8e1ed202bb1e4939f197b5c4caff74c1360a (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/geos/geos-2.1.4.ebuild,v 1.1 2005/08/27 13:35:32 nakano Exp $
inherit eutils
DESCRIPTION="Geometry Engine - Open Source"
HOMEPAGE="http://geos.refractions.net"
SRC_URI="http://geos.refractions.net/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~ppc ~sparc"
IUSE="static doc python"
RDEPEND="virtual/libc"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )\
python? ( dev-lang/python dev-lang/swig )"
src_compile(){
cd ${S}
libtoolize --force
local myconf
myconf=""
if use static; then
myconf="$(use_enable static)"
fi
econf \
${myconf} \
|| die "Error: econf failed"
emake || die "Error: emake failed"
if use python; then
einfo "Compilling PyGEOS"
cd ${S}/swig/python
swig -c++ -python -modern -o geos_wrap.cxx ../geos.i
python setup.py build
fi
}
src_test() {
cd ${S}
make check || die "Tring make check without success."
# I think this test must be made after the PyGEOS installation
# if use python; then
# cd ${S}/swig/python
# python tests/runtests.py -v
# fi
}
src_install(){
into /usr
einstall
dodoc AUTHORS COPYING INSTALL NEWS README TODO
if use doc; then
cd ${S}/doc
make doxygen-html
dohtml -r doxygen_docs/html/*
fi
if use python; then
einfo "Intalling PyGEOS"
cd ${S}/swig/python
python setup.py install --prefix="${D}/usr/"
insinto /usr/share/doc/${PF}/python
doins README.txt tests/*.py
insinto /usr/share/doc/${PF}/python/cases
doins tests/cases/*
fi
}
|