summaryrefslogtreecommitdiff
path: root/dev-python/pygraphviz
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 11:50:53 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 11:50:53 -0500
commit290aebdea65a02557706eaeda477fef0437b6a48 (patch)
treef87a939169a508a2e943570501b64cc16b411cda /dev-python/pygraphviz
parent6783ddcd4b73d9ce586a71770caed352bec93b16 (diff)
downloadbaldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.gz
baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.xz
baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.zip
Adding metadata
Diffstat (limited to 'dev-python/pygraphviz')
-rw-r--r--dev-python/pygraphviz/Manifest1
-rw-r--r--dev-python/pygraphviz/files/pygraphviz-1.14-graphviz-14.patch115
-rw-r--r--dev-python/pygraphviz/metadata.xml15
-rw-r--r--dev-python/pygraphviz/pygraphviz-1.14-r2.ebuild53
4 files changed, 0 insertions, 184 deletions
diff --git a/dev-python/pygraphviz/Manifest b/dev-python/pygraphviz/Manifest
deleted file mode 100644
index 474b5a37cf39..000000000000
--- a/dev-python/pygraphviz/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST pygraphviz-1.14.tar.gz 106003 BLAKE2B d56b16c6cc0fefeb258f6071424e20e38277bf76a8750ecbc1d9e2e8af5737ff79c78436bdf0d09c0e785e3b1bf90519b9bfd7014cf8373280c58e7057e2ba19 SHA512 867346303d560be21a37080e6d3ce0afe42119ee373f8cd872e853fee611d2c4cb56cc057023230fcf8ffbf03053ea92b9fc2ec6d5e682d6c6667b6727d87899
diff --git a/dev-python/pygraphviz/files/pygraphviz-1.14-graphviz-14.patch b/dev-python/pygraphviz/files/pygraphviz-1.14-graphviz-14.patch
deleted file mode 100644
index 98e85c4b9cdd..000000000000
--- a/dev-python/pygraphviz/files/pygraphviz-1.14-graphviz-14.patch
+++ /dev/null
@@ -1,115 +0,0 @@
-From ad6a9d0eaa0942be7ece6bb253eeea5f7dd2e9e7 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= <mcepl@cepl.eu>
-Date: Wed, 22 Oct 2025 19:51:56 +0200
-Subject: [PATCH] fix: correct signature of gvRenderData() function
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-For compatibility with graphviz 14.*
-
-Fixes: https://github.com/pygraphviz/pygraphviz/issues/567
-Replaces: https://github.com/pygraphviz/pygraphviz/pull/566
-Signed-off-by: Matěj Cepl <mcepl@cepl.eu>
---- a/pygraphviz/graphviz.i
-+++ b/pygraphviz/graphviz.i
-@@ -338,7 +338,12 @@ int gvRenderFilename(GVC_t *gvc, Agraph_t* g, char *format, char *filename);
- /* three lines are straight from the SWIG manual. */
- %include <cstring.i>
- %include <typemaps.i>
-+#if GRAPHVIZ_VERSION_MAJOR >= 14
-+%cstring_output_allocate_size(char **result, size_t* size, free(*$1));
-+int gvRenderData(GVC_t *gvc, Agraph_t* g, char *format, char **result, size_t *size);
-+#else
- %cstring_output_allocate_size(char **result, unsigned int* size, free(*$1));
- int gvRenderData(GVC_t *gvc, Agraph_t* g, char *format, char **result, unsigned int *size);
-+#endif
- /* Free memory allocated and pointed to by *result in gvRenderData */
- extern void gvFreeRenderData (char* data);
---- a/setup.py
-+++ b/setup.py
-@@ -1,15 +1,72 @@
- import sys
-+import os
-+import re
- from setuptools import setup, Extension
-
-+def get_graphviz_version():
-+ """
-+ Reads GRAPHVIZ_VERSION_MAJOR from the header file.
-+ Assumes the header is available at a known path during setup.
-+ """
-+ # NOTE: You may need to adjust this path based on your environment
-+ # or rely on the build system to have already installed it.
-+ header_path = '/usr/include/graphviz/graphviz_version.h'
-+
-+ if not os.path.exists(header_path):
-+ # Fallback/default if header file cannot be read during setup.
-+ # This should match your expected target version.
-+ raise RuntimeError(f"Graphviz header file not found at {header_path}.")
-+
-+ with open(header_path, 'r') as f:
-+ content = f.read()
-+ match = re.search(r'#define\s+GRAPHVIZ_VERSION_MAJOR\s+(\d+)', content)
-+ if match:
-+ return int(match.group(1))
-+ else:
-+ match = re.search(r'#define\s+PACKAGE_VERSION\s+"([0-9.]+)"', content)
-+ if match:
-+ maj_ver = match.group(1).split('.')[0]
-+ return int(maj_ver)
-+
-+ raise RuntimeError(f"GRAPHVIZ_VERSION_MAJOR macro not found in the header file!")
-+
- if __name__ == "__main__":
-- define_macros = [("SWIG_PYTHON_STRICT_BYTE_CHAR", None)]
-- if sys.platform == "win32":
-+ WINDOWS = sys.platform == "win32"
-+
-+ # Get the target version number
-+ gv_major_version = get_graphviz_version()
-+
-+ define_macros = []
-+ swig_options = []
-+
-+ if WINDOWS:
- define_macros.append(("GVDLL", None))
-
-+ swig_options.append("-DGRAPHVIZ_VERSION_MAJOR={}".format(str(gv_major_version)))
-+ print(f"Defining GRAPHVIZ_VERSION_MAJOR as: {gv_major_version}")
-+
-+ # List of search paths for where graphviz libs may be installed.
-+ # The graphviz library subdir contains the plugin libraries (e.g.
-+ # gvplugin_*). The main graphviz libs (cgraph etc.) are in the
-+ # parent dir
-+ library_search_paths = [
-+ "/usr/lib/x86_64-linux-gnu", # Ubuntu x86_64
-+ "/usr/lib/x86_64-linux-gnu/graphviz",
-+ "/opt/homebrew/lib", # Macos, homebrew aarch64
-+ "/opt/homebrew/lib/graphviz",
-+ "/usr/lib64", # Fedora
-+ "/usr/lib64/graphviz",
-+ "/usr/local/lib", # source install / macos homebrew x86_64
-+ "/usr/local/lib/graphviz",
-+ ]
-+
-+ # runtime_library_dirs must not be defined with windows else setup will fail
-+ extra_kwargs = {} if WINDOWS else {"runtime_library_dirs": library_search_paths}
-+
- extension = [
- Extension(
- name="pygraphviz._graphviz",
-- sources=["pygraphviz/graphviz_wrap.c"],
-+ sources=["pygraphviz/graphviz.i"],
- include_dirs=[],
- library_dirs=[],
- # cdt does not link to cgraph, whereas cgraph links to cdt.
-@@ -20,6 +77,8 @@ if __name__ == "__main__":
- # undefined symbol errors. seen under PyPy on Linux.)
- libraries=["cdt", "cgraph", "gvc"],
- define_macros=define_macros,
-+ swig_opts=swig_options,
-+ **extra_kwargs,
- )
- ]
-
diff --git a/dev-python/pygraphviz/metadata.xml b/dev-python/pygraphviz/metadata.xml
deleted file mode 100644
index 623f3361677a..000000000000
--- a/dev-python/pygraphviz/metadata.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/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>
- <origin>baldeagleos-repo</origin>
-</pkgmetadata>
diff --git a/dev-python/pygraphviz/pygraphviz-1.14-r2.ebuild b/dev-python/pygraphviz/pygraphviz-1.14-r2.ebuild
deleted file mode 100644
index af983f1d7b26..000000000000
--- a/dev-python/pygraphviz/pygraphviz-1.14-r2.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# 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
-PYTHON_COMPAT=( python3_{13..14} )
-
-inherit distutils-r1 pypi
-
-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.
-DEPEND="
- media-gfx/graphviz:=
-"
-RDEPEND="
- ${DEPEND}
-"
-BDEPEND="
- dev-lang/swig:0
-"
-
-EPYTEST_PLUGINS=()
-distutils_enable_tests pytest
-
-PATCHES=(
- # https://github.com/pygraphviz/pygraphviz/pull/573
- # (includes some setup.py changes from main due to rebase)
- "${FILESDIR}"/pygraphviz-1.14-graphviz-14.patch
-)
-
-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
-}