Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyproj/
Date: Sun, 30 Oct 2022 12:32:43
Message-Id: 1667133145.5cc950a3a9d3ca757dd1e38bfff8318ffa798826.sam@gentoo
1 commit: 5cc950a3a9d3ca757dd1e38bfff8318ffa798826
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 30 12:32:25 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 30 12:32:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cc950a3
7
8 dev-python/pyproj: fix build w/ lld (respect libdir)
9
10 Closes: https://bugs.gentoo.org/730316
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-python/pyproj/pyproj-3.4.0.ebuild | 7 +++++++
14 1 file changed, 7 insertions(+)
15
16 diff --git a/dev-python/pyproj/pyproj-3.4.0.ebuild b/dev-python/pyproj/pyproj-3.4.0.ebuild
17 index bffdc509c1a8..c0065b0c9ead 100644
18 --- a/dev-python/pyproj/pyproj-3.4.0.ebuild
19 +++ b/dev-python/pyproj/pyproj-3.4.0.ebuild
20 @@ -47,6 +47,13 @@ distutils_enable_sphinx docs \
21 dev-python/furo
22 distutils_enable_tests pytest
23
24 +src_configure() {
25 + # Avoid greedily trying -L/usr/lib, etc
26 + # https://github.com/pyproj4/pyproj/blob/main/setup.py#L76
27 + export PROJ_LIBDIR="${ESYSROOT}/usr/$(get_libdir)"
28 + export PROJ_INCDIR="${ESYSROOT}/usr/include"
29 +}
30 +
31 python_test() {
32 rm -rf pyproj || die
33 epytest -m "not network" test