summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-09-05 03:04:32 -0500
committerroot <root@alpha.trunkmasters.com>2026-09-05 03:04:32 -0500
commitd1f18a9f11dde5cf862fd7c32c6d33a0a9114736 (patch)
tree2263b6d9a132eda0bd86f48e54c00d8383a6b517 /dev-python
parent58d5b6df48974566c90f6b21e09f15dddad2134b (diff)
downloadbaldeagleos-repo-d1f18a9f11dde5cf862fd7c32c6d33a0a9114736.tar.gz
baldeagleos-repo-d1f18a9f11dde5cf862fd7c32c6d33a0a9114736.tar.xz
baldeagleos-repo-d1f18a9f11dde5cf862fd7c32c6d33a0a9114736.zip
Adding metadata
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pygraphviz/pygraphviz-2.0.1-r1.ebuild (renamed from dev-python/pygraphviz/pygraphviz-2.0.1.ebuild)19
1 files changed, 17 insertions, 2 deletions
diff --git a/dev-python/pygraphviz/pygraphviz-2.0.1.ebuild b/dev-python/pygraphviz/pygraphviz-2.0.1-r1.ebuild
index 1b95f0660a32..5d609463ea77 100644
--- a/dev-python/pygraphviz/pygraphviz-2.0.1.ebuild
+++ b/dev-python/pygraphviz/pygraphviz-2.0.1-r1.ebuild
@@ -8,7 +8,7 @@ DISTUTILS_USE_PEP517=setuptools
PYPI_VERIFY_REPO=https://github.com/pygraphviz/pygraphviz
PYTHON_COMPAT=( python3_{13..14} )
-inherit distutils-r1 pypi
+inherit distutils-r1 flag-o-matic pypi toolchain-funcs
DESCRIPTION="Python wrapper for the Graphviz Agraph data structure"
HOMEPAGE="
@@ -22,8 +22,9 @@ SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv ~x86 ~x64-macos"
# Note: only C API of graphviz is used, PYTHON_USEDEP unnecessary.
+# [cairo] is actually pangocairo, needed for gvplugin_pango.
DEPEND="
- media-gfx/graphviz:=
+ media-gfx/graphviz:=[cairo]
"
RDEPEND="
${DEPEND}
@@ -35,6 +36,20 @@ BDEPEND="
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
+src_configure() {
+ # set to a meaningless path, it hardcodes /lib anyway; at least it
+ # will stop it from adding a bunch of wrong RUNPATHs
+ export GRAPHVIZ_PREFIX=${T}
+
+ # upstream's solution to "not one of the random hardcoded paths" is
+ # literally "add a bunch of -I -L flags yourself"
+ append-cppflags $($(tc-getPKG_CONFIG) --cflags libcdt || die)
+ local libdir=$($(tc-getPKG_CONFIG) --variable=libdir libcdt || die)
+ # the build system will pass a bunch of "-l"s anyway
+ append-ldflags $($(tc-getPKG_CONFIG) --libs-only-L libcdt || die) \
+ -L"${libdir}/graphviz" -Wl,-rpath,"${libdir}/graphviz"
+}
+
python_test() {
rm -rf pygraphviz || die
epytest --pyargs pygraphviz