diff options
| author | Crucible <crucible@localhost> | 2026-10-16 03:06:02 -0500 |
|---|---|---|
| committer | Crucible <crucible@localhost> | 2026-10-16 03:06:02 -0500 |
| commit | c38023a8fad627dc9baa8ab92d01156d5448b897 (patch) | |
| tree | b40b18d1ce1748ec35c2d7a2c212d6bc959e72a1 /dev-python/pygraphviz | |
| parent | 5213c17484fd91256aee081e04094d9bca897128 (diff) | |
| download | srcux-c38023a8fad627dc9baa8ab92d01156d5448b897.tar.gz srcux-c38023a8fad627dc9baa8ab92d01156d5448b897.tar.xz srcux-c38023a8fad627dc9baa8ab92d01156d5448b897.zip | |
Publish srcux candidate 0000000709-20261016-030224
Diffstat (limited to 'dev-python/pygraphviz')
| -rw-r--r-- | dev-python/pygraphviz/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/pygraphviz/pygraphviz-2.0.4.ebuild | 63 |
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-python/pygraphviz/Manifest b/dev-python/pygraphviz/Manifest index d97ff01affef..c31c8b7c833c 100644 --- a/dev-python/pygraphviz/Manifest +++ b/dev-python/pygraphviz/Manifest @@ -5,3 +5,5 @@ DIST pygraphviz-2.0.2.tar.gz 82229 BLAKE2B 9c32c8a4a5f64321250a988daea5c8f5369f6 DIST pygraphviz-2.0.2.tar.gz.provenance 10225 BLAKE2B 06f08a01db8dcc1f94e5810862fc61422fd8eb3a2a6e80142f3e67297e9b2cea93a2728dbc6570a4436c612d84bcf354995251bbc18582a5d92221ffd836b4e9 SHA512 be0b620e5e0257420c861e3272429c993c4f04ebf5961520ef297d8f209ab320f7a5c567fd80a65f31e5b5b0a9d7456ab5d003c12221f7863b19f360d2145c5e DIST pygraphviz-2.0.3.tar.gz 82969 BLAKE2B 9b6da0d64b86997885de5a3eeb87175c91c1c5d8838d067c3c257bc1d1f1bcf3142adde5d8f553c6c40376641a597c41fb842fe14cae1538c62924343a29d13b SHA512 115c1d34f8a201e94b97baf2d10adda38fbf056c003a87ccb27fe729a57512031d57877c1e6a158f5238bb36b76570e7ada9e6f327ab316c87ba427452b3740e DIST pygraphviz-2.0.3.tar.gz.provenance 10221 BLAKE2B 4234a75c995cf795b7ca5b8ec8f8d5a9b357c346a4d0a1ef566156bc51f0be51b398e0b7c355faf38a63c3b9cc8ed162229063c32724fca92a6a2801febb1b40 SHA512 d93d646a659588e3926ce945327b4a201ff9a0f455e65deebe98102042ae708efc877b29a5546a37c47edd8bbf58dc0ea0bc880f1783dc35e7e5dd2d5d1203c9 +DIST pygraphviz-2.0.4.tar.gz 82048 BLAKE2B 79a016958616c92965bd3f3a89300e779bafbe445aedf81544cc3571f02c02e03d7db458fc4727cf83cff9caad7bd515f12b66edace69b8c704961eee7dc7745 SHA512 1d98ea5530ed54f844644a201d3787232dfb02881b46c142cf302cb4e5710b0fe071904a460e234f9ef2696f400df7979a825a568ccdfad3ccfa1636b0cc75c3 +DIST pygraphviz-2.0.4.tar.gz.provenance 9874 BLAKE2B d05624dba69c571abf0c7fdc503271fdc245b07012481ddd93d886be51d1202f1b5ef26904af04900c7156570d430d0ef9b6b9f98298f550e52c7ee457a175a7 SHA512 6c39927765928a066b1cbbbc17666b7a4526e4160488924488e71ff8e03d1bd31854ba08175570e9c18084e798fd4452cdbae6ced3d898604a9bf752c421c83d diff --git a/dev-python/pygraphviz/pygraphviz-2.0.4.ebuild b/dev-python/pygraphviz/pygraphviz-2.0.4.ebuild new file mode 100644 index 000000000000..b248bc96c7a5 --- /dev/null +++ b/dev-python/pygraphviz/pygraphviz-2.0.4.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYPI_VERIFY_REPO=https://github.com/pygraphviz/pygraphviz +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 flag-o-matic pypi toolchain-funcs + +DESCRIPTION="Python wrapper for the Graphviz Agraph data structure" +HOMEPAGE=" + https://pygraphviz.github.io/ + https://github.com/pygraphviz/pygraphviz/ + https://pypi.org/project/pygraphviz/ +" + +LICENSE="BSD" +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:=[cairo] +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + dev-lang/swig:0 +" + +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 +} + +python_install_all() { + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + + distutils-r1_python_install_all +} |
