Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pygraphviz/
Date: Thu, 20 Jan 2022 23:26:14
Message-Id: 1642721146.27b1e129ae1edde5756a1a2b4a189591c1f16902.mgorny@gentoo
1 commit: 27b1e129ae1edde5756a1a2b4a189591c1f16902
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 20 22:47:51 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 20 23:25:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27b1e129
7
8 dev-python/pygraphviz: Bump to 1.8
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pygraphviz/Manifest | 1 +
13 dev-python/pygraphviz/pygraphviz-1.8.ebuild | 42 +++++++++++++++++++++++++++++
14 2 files changed, 43 insertions(+)
15
16 diff --git a/dev-python/pygraphviz/Manifest b/dev-python/pygraphviz/Manifest
17 index 63c57d24a880..868e2686912e 100644
18 --- a/dev-python/pygraphviz/Manifest
19 +++ b/dev-python/pygraphviz/Manifest
20 @@ -1 +1,2 @@
21 DIST pygraphviz-1.7.zip 118754 BLAKE2B 36507fc862bec45a33bee3f89e7593a15639e7d98067e1c4ddf917558b7bc037b9d7607f7f017ad5980ba0e6805e63f05464efe8fd416ef70cb95709151714e3 SHA512 09438931d1930a70f7da94b0a12b449c0836ad707c6c8abed49bae0db162c136002d170398ed02dc56a5029269490ce3156d2d4b0f30602a11165bc0038998ea
22 +DIST pygraphviz-1.8.zip 119640 BLAKE2B a5c035085c503a06b0496a7ea4db0861e703d2811ab415f2d528dbc6c342d0fab1e9294f818cc4e49bdebba1b98456d6f34eea5628735193a6dde2c37035afce SHA512 f59d9452867167ba406d0e352700ec6bc80364318413a982eadb324c7817f92b9d09922b5fd90b603e2cf6f408390f862e003ef3f1fd3230390944f7d6ee7228
23
24 diff --git a/dev-python/pygraphviz/pygraphviz-1.8.ebuild b/dev-python/pygraphviz/pygraphviz-1.8.ebuild
25 new file mode 100644
26 index 000000000000..cc40c444bcd8
27 --- /dev/null
28 +++ b/dev-python/pygraphviz/pygraphviz-1.8.ebuild
29 @@ -0,0 +1,42 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Python wrapper for the Graphviz Agraph data structure"
40 +HOMEPAGE="https://pygraphviz.github.io/"
41 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~x86-linux ~ppc-macos ~x64-macos"
46 +
47 +# Note: only C API of graphviz is used, PYTHON_USEDEP unnecessary.
48 +RDEPEND="media-gfx/graphviz"
49 +DEPEND="${RDEPEND}"
50 +BDEPEND="
51 + app-arch/unzip
52 + dev-lang/swig:0
53 + test? ( dev-python/doctest-ignore-unicode[${PYTHON_USEDEP}] )"
54 +
55 +distutils_enable_tests pytest
56 +
57 +src_configure() {
58 + swig -python pygraphviz/graphviz.i || die
59 +}
60 +
61 +python_test() {
62 + cd "${BUILD_DIR}"/install || die
63 + epytest
64 +}
65 +
66 +python_install_all() {
67 + dodoc -r examples
68 + docompress -x /usr/share/doc/${PF}/examples
69 +
70 + distutils-r1_python_install_all
71 +}