summaryrefslogtreecommitdiff
path: root/dev-db/spatialite/spatialite-5.1.0-r3.ebuild
diff options
context:
space:
mode:
authorAlfred Wingate <parona@protonmail.com>2025-05-03 16:56:22 +0300
committerSam James <sam@gentoo.org>2025-06-09 04:09:44 +0100
commitac986e9744e0ef040ed040eb65f3f786b59bb481 (patch)
treed153abf76dd07fac57bdbe7859cb378e90268351 /dev-db/spatialite/spatialite-5.1.0-r3.ebuild
parent47df555c1c2d4474674ac27a4951a1077dab697a (diff)
downloadgentoo-ac986e9744e0ef040ed040eb65f3f786b59bb481.tar.gz
gentoo-ac986e9744e0ef040ed040eb65f3f786b59bb481.tar.bz2
gentoo-ac986e9744e0ef040ed040eb65f3f786b59bb481.zip
dev-db/spatialite: add dev-libs/libxml2 subslot op for incoming ABI break
Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/41919 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/spatialite/spatialite-5.1.0-r3.ebuild')
-rw-r--r--dev-db/spatialite/spatialite-5.1.0-r3.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-db/spatialite/spatialite-5.1.0-r3.ebuild b/dev-db/spatialite/spatialite-5.1.0-r3.ebuild
new file mode 100644
index 000000000000..dce860a3c2a2
--- /dev/null
+++ b/dev-db/spatialite/spatialite-5.1.0-r3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit libtool
+
+MY_PN="lib${PN}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="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 ~ppc ~ppc64 ~riscv x86"
+IUSE="+geos iconv +proj rttopo test +xls"
+REQUIRED_USE="test? ( iconv )"
+# Further poking required
+RESTRICT="test"
+
+RDEPEND="
+ >=dev-db/sqlite-3.7.5:3[extensions(+)]
+ dev-libs/libxml2:=
+ sys-libs/zlib[minizip]
+ geos? ( >=sci-libs/geos-3.11.0 )
+ proj? ( sci-libs/proj:= )
+ rttopo? ( sci-geosciences/librttopo )
+ xls? ( >=dev-libs/freexl-2.0.0[xml(+)] )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-macro-surgery.patch" )
+
+src_prepare() {
+ default
+ elibtoolize
+}
+
+src_configure() {
+ # 1) gcp disabled for now to preserve MPL licence
+ econf \
+ --disable-gcp \
+ --disable-examples \
+ --disable-static \
+ --enable-epsg \
+ --enable-libxml2 \
+ $(use_enable geos) \
+ $(use_enable geos geosadvanced) \
+ $(use_enable geos geos3100) \
+ $(use_enable geos geos3110) \
+ $(use_enable iconv) \
+ $(use_enable proj) \
+ $(use_enable rttopo) \
+ $(use_enable xls freexl)
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+}