summaryrefslogtreecommitdiff
path: root/dev-python/find-libpython
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-04-04 18:52:17 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-04-04 18:52:17 +0000
commite5e8bab3346a9a93a8acb773e397e67814a1ef37 (patch)
tree96af60c2c790992352bed09961ee1f750e9e448e /dev-python/find-libpython
parent65435267ad7c9892cb74615f13fc4c2984b75dfb (diff)
downloadbaldeagleos-repo-e5e8bab3346a9a93a8acb773e397e67814a1ef37.tar.gz
baldeagleos-repo-e5e8bab3346a9a93a8acb773e397e67814a1ef37.tar.xz
baldeagleos-repo-e5e8bab3346a9a93a8acb773e397e67814a1ef37.zip
Adding metadata
Diffstat (limited to 'dev-python/find-libpython')
-rw-r--r--dev-python/find-libpython/Manifest1
-rw-r--r--dev-python/find-libpython/files/find-libpython-0.4.0-fix-license-qa.patch29
-rw-r--r--dev-python/find-libpython/find-libpython-0.4.0.ebuild22
-rw-r--r--dev-python/find-libpython/metadata.xml38
4 files changed, 90 insertions, 0 deletions
diff --git a/dev-python/find-libpython/Manifest b/dev-python/find-libpython/Manifest
new file mode 100644
index 000000000000..cfa9b25b62c7
--- /dev/null
+++ b/dev-python/find-libpython/Manifest
@@ -0,0 +1 @@
+DIST find_libpython-0.4.0.tar.gz 8979 BLAKE2B 934d53ff9e04066fcd03c5e019eb00e64a1089e9811b3f181ed8947c330cbf13631cd6a197edfc525cb22b1cf126085f10e6df4faf5579bf8022285802929cb3 SHA512 259a5e85ab6e33e17a3b26f3752118e8b0d33f2d4844f7b7fd957ad0d2bb53f290c62d4d9d26cb93321e0b6de772b4052173f922ea978ed458da332fb667e342
diff --git a/dev-python/find-libpython/files/find-libpython-0.4.0-fix-license-qa.patch b/dev-python/find-libpython/files/find-libpython-0.4.0-fix-license-qa.patch
new file mode 100644
index 000000000000..814822fe01a7
--- /dev/null
+++ b/dev-python/find-libpython/files/find-libpython-0.4.0-fix-license-qa.patch
@@ -0,0 +1,29 @@
+From 3570824dfd3115d53523beeac6f346c279ddc569 Mon Sep 17 00:00:00 2001
+From: Huang Rui <vowstar@gmail.com>
+Date: Thu, 3 Apr 2025 16:17:42 +0800
+Subject: [PATCH] fix(setup): Update deprecated license classifier in setup.cfg
+
+- Remove deprecated MIT License classifier from setup.cfg
+- Keep remaining classifiers for Python 3 and software development
+
+Signed-off-by: Huang Rui <vowstar@gmail.com>
+---
+ setup.cfg | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/setup.cfg b/setup.cfg
+index 7f50ce27c5dc..b519197c7055 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -12,7 +12,6 @@
+ keywords =
+ libpython
+ classifiers =
+- License :: OSI Approved :: MIT License
+ Programming Language :: Python :: 3
+ Topic :: Software Development :: Libraries
+
+
+--
+2.49.0
+
diff --git a/dev-python/find-libpython/find-libpython-0.4.0.ebuild b/dev-python/find-libpython/find-libpython-0.4.0.ebuild
new file mode 100644
index 000000000000..fcc488c7ab91
--- /dev/null
+++ b/dev-python/find-libpython/find-libpython-0.4.0.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9,10,11,12,13} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1 pypi
+
+DESCRIPTION="Finds the libpython associated with the current Python environment"
+HOMEPAGE="https://github.com/ktbarrett/find_libpython"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+
+# Tests can't work inside network sandbox
+RESTRICT=test
+
+PATCHES=(
+ "${FILESDIR}/find-libpython-0.4.0-fix-license-qa.patch"
+)
diff --git a/dev-python/find-libpython/metadata.xml b/dev-python/find-libpython/metadata.xml
new file mode 100644
index 000000000000..5ee519717ff7
--- /dev/null
+++ b/dev-python/find-libpython/metadata.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>vowstar@gmail.com</email>
+ <name>Huang Rui</name>
+ </maintainer>
+ <longdescription lang="en">
+ find-libpython is a library designed to locate the path of the
+ libpython dynamic library in the current Python environment.
+ Supports various installation types including conda-managed,
+ system-managed, and other configurations. Works across Windows,
+ Mac OS/OS X, and major Linux distributions.
+ find_libpython is both a script and a Python package. Usage as
+ a script is useful for obtaining the libpython path in
+ makefile-based build systems. It can also determine the path
+ for embedding Python in processes written in other languages.
+ Recommended usage is to call the script in a subprocess without
+ arguments and parse the output.
+ </longdescription>
+ <longdescription lang="zh">
+ find-libpython 是一个用于定位当前 Python 环境中 libpython 动态库
+ 路径的库。支持多种安装方式,包括 conda 管理、系统管理或其他方式,
+ 可在 Windows、Mac OS/OS X 和各种 Linux 发行版上使用。
+ find_libpython 同时是一个脚本和 Python 包。作为脚本使用时,
+ 可用于在基于 makefile 的构建系统中获取 libpython 路径,
+ 或嵌入其他语言编写的进程中的 Python 解释器路径。
+ 推荐用法是无参数调用子进程中的脚本并解析输出。
+ </longdescription>
+ <upstream>
+ <maintainer>
+ <email>dev.ktbarrett@gmail.com</email>
+ <name>Takafumi Arakaki</name>
+ </maintainer>
+ <bugs-to>https://github.com/ktbarrett/find_libpython/issues</bugs-to>
+ </upstream>
+ <origin>gentoo-guru-overlay</origin>
+</pkgmetadata> \ No newline at end of file