dev-db/spatialite: Workaround build with >=sci-libs/proj-6
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 20 Oct 2019 13:31:11 +0000 (15:31 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 20 Oct 2019 14:19:36 +0000 (16:19 +0200)
Thanks-to: Dmitry Suloev <SuloevDmitry@gmail.com>
Closes: https://bugs.gentoo.org/685668
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
dev-db/spatialite/spatialite-4.3.0a.ebuild

index 796d1774d60cfad0f7a2a68c72ab2b3bb6e2b61f..3fb9d3d53dd81bafa2649254be0abcfc2805eff6 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI=6
 
+inherit flag-o-matic
+
 MY_PN="lib${PN}"
 MY_P="${MY_PN}-${PV}"
 
@@ -19,7 +21,7 @@ RDEPEND="
        >=dev-db/sqlite-3.7.5:3[extensions(+)]
        sys-libs/zlib
        geos? ( >=sci-libs/geos-3.4 )
-       proj? ( sci-libs/proj )
+       proj? ( sci-libs/proj:= )
        xls? ( dev-libs/freexl )
        xml? ( dev-libs/libxml2 )
 "
@@ -30,6 +32,9 @@ REQUIRED_USE="test? ( iconv )"
 S="${WORKDIR}/${MY_P}"
 
 src_configure() {
+       if use proj && has_version ">=sci-libs/proj-6.0.0"; then
+               append-flags "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
+       fi
        econf \
                --disable-examples \
                --disable-static \