commit: 5cc950a3a9d3ca757dd1e38bfff8318ffa798826 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Oct 30 12:32:25 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Oct 30 12:32:25 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cc950a3
dev-python/pyproj: fix build w/ lld (respect libdir) Closes: https://bugs.gentoo.org/730316 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-python/pyproj/pyproj-3.4.0.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev-python/pyproj/pyproj-3.4.0.ebuild b/dev-python/pyproj/pyproj-3.4.0.ebuild index bffdc509c1a8..c0065b0c9ead 100644 --- a/dev-python/pyproj/pyproj-3.4.0.ebuild +++ b/dev-python/pyproj/pyproj-3.4.0.ebuild @@ -47,6 +47,13 @@ distutils_enable_sphinx docs \ dev-python/furo distutils_enable_tests pytest +src_configure() { + # Avoid greedily trying -L/usr/lib, etc + # https://github.com/pyproj4/pyproj/blob/main/setup.py#L76 + export PROJ_LIBDIR="${ESYSROOT}/usr/$(get_libdir)" + export PROJ_INCDIR="${ESYSROOT}/usr/include" +} + python_test() { rm -rf pyproj || die epytest -m "not network" test