46 lines
1 KiB
Bash
46 lines
1 KiB
Bash
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-db/spatialite/spatialite-3.0.1.ebuild,v 1.4 2013/08/28 16:05:43 floppym Exp $
|
|
|
|
EAPI=4
|
|
|
|
MY_PN="lib${PN}"
|
|
MY_P="${MY_PN}-${PV}"
|
|
|
|
inherit multilib
|
|
|
|
DESCRIPTION="A complete Spatial DBMS in a nutshell built upon sqlite"
|
|
HOMEPAGE="http://www.gaia-gis.it/gaia-sins/"
|
|
SRC_URI="http://www.gaia-gis.it/gaia-sins/${MY_PN}-sources/${MY_P}.tar.gz"
|
|
|
|
LICENSE="MPL-1.1"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
|
IUSE="+geos iconv +proj +xls"
|
|
|
|
RDEPEND=">=dev-db/sqlite-3.7.5:3[extensions(+)]
|
|
geos? ( >=sci-libs/geos-3.3 )
|
|
proj? ( sci-libs/proj )
|
|
xls? ( dev-libs/freexl )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
S=${WORKDIR}/${MY_P}
|
|
|
|
src_configure() {
|
|
econf \
|
|
--disable-static \
|
|
--enable-geocallbacks \
|
|
--enable-epsg \
|
|
$(use_enable geos) \
|
|
$(use_enable geos geosadvanced) \
|
|
$(use_enable iconv) \
|
|
$(use_enable proj) \
|
|
$(use_enable xls freexl)
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
find "${ED}" -name '*.la' -exec rm -f {} +
|
|
}
|