commit:     edc61c208f0045cf5335a130d0dbad2909241073
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 20 13:31:11 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Oct 20 14:19:36 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edc61c20

dev-db/spatialite: Workaround build with >=sci-libs/proj-6

Thanks-to: Dmitry Suloev <SuloevDmitry <AT> gmail.com>
Closes: https://bugs.gentoo.org/685668
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 dev-db/spatialite/spatialite-4.3.0a.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dev-db/spatialite/spatialite-4.3.0a.ebuild 
b/dev-db/spatialite/spatialite-4.3.0a.ebuild
index 796d1774d60..3fb9d3d53dd 100644
--- a/dev-db/spatialite/spatialite-4.3.0a.ebuild
+++ b/dev-db/spatialite/spatialite-4.3.0a.ebuild
@@ -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 \

Reply via email to