Skip to content

Commit

Permalink
dev-db/spatialite: Workaround build with >=sci-libs/proj-6
Browse files Browse the repository at this point in the history
Thanks-to: Dmitry Suloev <[email protected]>
Closes: https://bugs.gentoo.org/685668
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Oct 20, 2019
1 parent d23e4cc commit edc61c2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dev-db/spatialite/spatialite-4.3.0a.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

EAPI=6

inherit flag-o-matic

MY_PN="lib${PN}"
MY_P="${MY_PN}-${PV}"

Expand All @@ -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 )
"
Expand All @@ -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 \
Expand Down

0 comments on commit edc61c2

Please sign in to comment.