diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/pygraphviz | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/pygraphviz')
| -rw-r--r-- | dev-python/pygraphviz/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pygraphviz/files/pygraphviz-1.5-docs.patch | 29 | ||||
| -rw-r--r-- | dev-python/pygraphviz/metadata.xml | 18 | ||||
| -rw-r--r-- | dev-python/pygraphviz/pygraphviz-1.5.ebuild | 51 |
4 files changed, 99 insertions, 0 deletions
diff --git a/dev-python/pygraphviz/Manifest b/dev-python/pygraphviz/Manifest new file mode 100644 index 000000000000..2301c1c36acb --- /dev/null +++ b/dev-python/pygraphviz/Manifest @@ -0,0 +1 @@ +DIST pygraphviz-1.5.zip 117810 BLAKE2B e9139d6b8e01cacb3135b1ccd2fa8624c041b7a04848f66c7668c5acf55cf66380ab9f05193b1bb240133f0c01a21915e2314807fcde23246c287d22efb9450a SHA512 6d3df6642a7e23ecb6b687761480b80a3ee5886508ef50b81697041425be7d09d623bf46990c5cea3ef36817a28d9e5c2905eb32267296f55524fdedb2199ea2 diff --git a/dev-python/pygraphviz/files/pygraphviz-1.5-docs.patch b/dev-python/pygraphviz/files/pygraphviz-1.5-docs.patch new file mode 100644 index 000000000000..aed5c9075b88 --- /dev/null +++ b/dev-python/pygraphviz/files/pygraphviz-1.5-docs.patch @@ -0,0 +1,29 @@ + setup.py | 8 -------- + 1 file changed, 8 deletions(-) + +diff --git a/setup.py b/setup.py +index fc0a96f..98b7f58 100644 +--- a/setup.py ++++ b/setup.py +@@ -36,13 +36,6 @@ release.write_versionfile() + sys.path.pop(0) + + packages = ["pygraphviz", "pygraphviz.tests"] +-docdirbase = 'share/doc/pygraphviz-%s' % release.version +-data = [ +- (docdirbase, glob("*.txt")), +- (os.path.join(docdirbase, 'examples'), glob("examples/*.py")), +- (os.path.join(docdirbase, 'examples'), glob("examples/*.dat")), +- (os.path.join(docdirbase, 'examples'), glob("examples/*.dat.gz")), +-] + package_data = {'': ['*.txt'], } + + if __name__ == "__main__": +@@ -75,7 +68,6 @@ if __name__ == "__main__": + download_url=release.download_url, + classifiers=release.classifiers, + packages=packages, +- data_files=data, + ext_modules=extension, + cmdclass={ + 'install': AddExtensionInstallCommand, diff --git a/dev-python/pygraphviz/metadata.xml b/dev-python/pygraphviz/metadata.xml new file mode 100644 index 000000000000..8670f867b65c --- /dev/null +++ b/dev-python/pygraphviz/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en"> + Pygraphviz is a Python interface to the Graphviz graph layout and + visualization package. + With Pygraphviz you can create, edit, read, write, and draw graphs using + Python to access the Graphviz graph data structure and layout algorithms. +</longdescription> + <upstream> + <remote-id type="pypi">pygraphviz</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/pygraphviz/pygraphviz-1.5.ebuild b/dev-python/pygraphviz/pygraphviz-1.5.ebuild new file mode 100644 index 000000000000..e13abbc3ce6d --- /dev/null +++ b/dev-python/pygraphviz/pygraphviz-1.5.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Python wrapper for the Graphviz Agraph data structure" +HOMEPAGE="http://pygraphviz.github.io/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm64 ppc x86 ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="examples test" +RESTRICT="!test? ( test )" + +# Note: only C API of graphviz is used, PYTHON_USEDEP unnecessary. +RDEPEND="media-gfx/graphviz" +DEPEND="${RDEPEND} + dev-lang/swig:0 + test? ( + dev-python/doctest-ignore-unicode[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}"/${P}-docs.patch +) + +python_prepare_all() { + distutils-r1_python_prepare_all + swig -python pygraphviz/graphviz.i || die +} + +python_test() { + PYTHONPATH=${PYTHONPATH}:${BUILD_DIR}/lib/pygraphviz \ + nosetests -c setup.cfg -x -v || die +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + distutils-r1_python_install_all +} |
