You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-db/spatialite/spatialite-5.1.0.ebuild

56 lines
1.3 KiB

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="lib${PN}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="A complete Spatial DBMS in a nutshell built upon sqlite"
HOMEPAGE="https://www.gaia-gis.it/gaia-sins/"
SRC_URI="https://www.gaia-gis.it/gaia-sins/${MY_PN}-sources/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="MPL-1.1"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~x86"
IUSE="+geos iconv +proj rttopo test +xls +xml"
# Further poking required
RESTRICT="test"
RDEPEND="
>=dev-db/sqlite-3.7.5:3[extensions(+)]
sys-libs/zlib[minizip]
geos? ( >=sci-libs/geos-3.11.0 )
proj? ( sci-libs/proj:= )
xls? ( >=dev-libs/freexl-2.0.0 )
xml? ( dev-libs/libxml2 )
rttopo? ( sci-geosciences/librttopo )
"
DEPEND="${RDEPEND}"
REQUIRED_USE="test? ( iconv )"
src_configure() {
# 1) gcp disabled for now to preserve MPL licence
econf \
--disable-gcp \
--disable-examples \
--disable-static \
--enable-epsg \
$(use_enable rttopo) \
$(use_enable geos) \
$(use_enable geos geosadvanced) \
$(use_enable geos geos3100) \
$(use_enable geos geos3110) \
$(use_enable iconv) \
$(use_enable proj) \
$(use_enable xls freexl) \
$(use_enable xml libxml2)
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}