/[gentoo-x86]/sci-libs/geos/geos-3.3.5.ebuild
Gentoo

Contents of /sci-libs/geos/geos-3.3.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Aug 11 15:24:48 2012 UTC (9 months, 1 week ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
x86 stable, bug #420125

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/geos/geos-3.3.5.ebuild,v 1.1 2012/07/17 07:43:05 patrick Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="python? 2"
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
10 inherit autotools eutils python
11
12 DESCRIPTION="Geometry engine library for Geographic Information Systems"
13 HOMEPAGE="http://trac.osgeo.org/geos/"
14 SRC_URI="http://download.osgeo.org/geos/${P}.tar.bz2"
15
16 LICENSE="LGPL-2.1"
17 SLOT="0"
18 KEYWORDS="~amd64 ~ppc ~ppc64 x86 ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris"
19 IUSE="doc php python ruby static-libs"
20
21 RDEPEND="php? ( dev-lang/php:5.3[-threads] )
22 ruby? ( dev-lang/ruby )"
23 DEPEND="${RDEPEND}
24 doc? ( app-doc/doxygen )
25 php? ( dev-lang/swig )
26 python? ( dev-lang/swig )
27 ruby? ( dev-lang/swig )"
28
29 pkg_setup() {
30 use python && python_pkg_setup
31 }
32
33 src_prepare() {
34 epatch \
35 "${FILESDIR}"/3.2.0-python.patch \
36 "${FILESDIR}"/3.2.0-darwin.patch \
37 "${FILESDIR}"/3.3.2-solaris-isnan.patch
38 eautoreconf
39 echo "#!${EPREFIX}/bin/bash" > py-compile
40 }
41
42 src_configure() {
43 econf \
44 $(use_enable python) \
45 $(use_enable ruby) \
46 $(use_enable php) \
47 $(use_enable static-libs static)
48 }
49
50 src_compile() {
51 emake
52 if use python; then
53 emake -C swig/python clean
54 python_copy_sources swig/python
55 building() {
56 emake \
57 PYTHON_CPPFLAGS="-I${EPREFIX}$(python_get_includedir)" \
58 PYTHON_LDFLAGS="$(python_get_library -l)" \
59 SWIG_PYTHON_CPPFLAGS="-I${EPREFIX}$(python_get_includedir)" \
60 pyexecdir="${EPREFIX}$(python_get_sitedir)" \
61 pythondir="${EPREFIX}$(python_get_sitedir)"
62 }
63 python_execute_function -s --source-dir swig/python building
64 fi
65 use doc && emake -C "${S}/doc" doxygen-html
66 }
67
68 src_install() {
69 default
70 if use python; then
71 installation() {
72 emake \
73 DESTDIR="${D}" \
74 pyexecdir="${EPREFIX}$(python_get_sitedir)" \
75 pythondir="${EPREFIX}$(python_get_sitedir)" \
76 install
77 }
78 python_execute_function -s --source-dir swig/python installation
79 python_clean_installation_image
80 fi
81 use doc && dohtml -r "${S}/doc" doxygen_docs/html/*
82 find "${ED}" -name '*.la' -exec rm -f {} +
83 }
84
85 pkg_postinst() {
86 use python && python_mod_optimize geos/geos.py
87 }
88
89 pkg_postrm() {
90 use python && python_mod_cleanup geos/geos.py
91 }

  ViewVC Help
Powered by ViewVC 1.1.13