summaryrefslogtreecommitdiff
path: root/dev-db/spatialite/spatialite-5.1.0-r1.ebuild
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-01-03 10:05:37 +0000
committerSam James <sam@gentoo.org>2024-01-03 10:06:38 +0000
commit45b8c3f13cd57daf17fe0c8d7a5752af43bcc248 (patch)
tree184b5b4145aa0fc93208d4c43e4f7927b1557b22 /dev-db/spatialite/spatialite-5.1.0-r1.ebuild
parentb25bdbd1e6cde98098706137af52fcc2e1352f80 (diff)
downloadgentoo-45b8c3f13cd57daf17fe0c8d7a5752af43bcc248.tar.gz
gentoo-45b8c3f13cd57daf17fe0c8d7a5752af43bcc248.tar.bz2
gentoo-45b8c3f13cd57daf17fe0c8d7a5752af43bcc248.zip
dev-db/spatialite: fixup freexl dep, require XML
We need freexl's XML support for freexl_open_ods but also doesn't make sense to have optional XML in spatialite as then feels like USE="-xml" but with XLS support isn't tested much upstream. Closes: https://bugs.gentoo.org/920326 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/spatialite/spatialite-5.1.0-r1.ebuild')
-rw-r--r--dev-db/spatialite/spatialite-5.1.0-r1.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-db/spatialite/spatialite-5.1.0-r1.ebuild b/dev-db/spatialite/spatialite-5.1.0-r1.ebuild
new file mode 100644
index 000000000000..a509af0c9b1a
--- /dev/null
+++ b/dev-db/spatialite/spatialite-5.1.0-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 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"
+# 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:= )
+ xls? ( >=dev-libs/freexl-2.0.0[xml(+)] )
+ 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 \
+ --enable-libxml2 \
+ $(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)
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+}