summaryrefslogtreecommitdiff
path: root/dev-python/m2crypto
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-02-16 07:20:22 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-02-16 07:20:22 +0000
commitfde29ad1862eccce949e94181db019cdc3661837 (patch)
tree5b93c92268b7544328e0d4d50bb2c8fd7c5ea30a /dev-python/m2crypto
parented0ac1916e17ae83e1cc0cecfede55a1a6233145 (diff)
downloadbaldeagleos-repo-fde29ad1862eccce949e94181db019cdc3661837.tar.gz
baldeagleos-repo-fde29ad1862eccce949e94181db019cdc3661837.tar.xz
baldeagleos-repo-fde29ad1862eccce949e94181db019cdc3661837.zip
Adding metadata
Diffstat (limited to 'dev-python/m2crypto')
-rw-r--r--dev-python/m2crypto/Manifest2
-rw-r--r--dev-python/m2crypto/files/patch-src_SWIG__lib11_compat_i23
-rw-r--r--dev-python/m2crypto/files/patch-src_SWIG__lib_i70
-rw-r--r--dev-python/m2crypto/files/patch-src_SWIG__threads_i50
-rw-r--r--dev-python/m2crypto/files/patch-src_SWIG__x509_i16
-rw-r--r--dev-python/m2crypto/m2crypto-0.46.2.ebuild70
-rw-r--r--dev-python/m2crypto/m2crypto-0.47.0.ebuild70
-rw-r--r--dev-python/m2crypto/metadata.xml14
8 files changed, 0 insertions, 315 deletions
diff --git a/dev-python/m2crypto/Manifest b/dev-python/m2crypto/Manifest
deleted file mode 100644
index 146cd46b54a7..000000000000
--- a/dev-python/m2crypto/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-DIST m2crypto-0.46.2.tar.gz 499931 BLAKE2B 1ce48566700e5bc74b3783ce0f73cc1137ee07b48ccb88eb1a722c408566cf6e0020d9cfd2889d443464c38afac225e5f3a3ea924ee3504e1a3b26a01dbcab1e SHA512 593ed3acd4e6add303c0cfd115bb311528f137b97b2cf84aa04aa3e4f4eec72601a13435a622305d7860d0fffb831ef5cd28547b6e2c24d0275e219b25d52633
-DIST m2crypto-0.47.0.tar.gz 526447 BLAKE2B fba86900a44e272bb55a25804d59bd7fbfe2652d261b2ece8918754fefc6c3d2ba25d47f327995760e657ce32f653c1747d2f5c88d1240938173b5448b7b0c36 SHA512 ad1f9e8a155055287689dc502900d5cf7df6defacf2da4f923683f2041ab7999ea1d2fac7105053e362778c3326c9aad36f8ce9bd5810a0ea1bb33f1e91dffc8
diff --git a/dev-python/m2crypto/files/patch-src_SWIG__lib11_compat_i b/dev-python/m2crypto/files/patch-src_SWIG__lib11_compat_i
deleted file mode 100644
index c2600fea04a6..000000000000
--- a/dev-python/m2crypto/files/patch-src_SWIG__lib11_compat_i
+++ /dev/null
@@ -1,23 +0,0 @@
-Provide CRYPTO_zalloc to fix build with LibreSSL
-
-Index: src/SWIG/_lib11_compat.i
---- src/SWIG/_lib11_compat.i.orig
-+++ src/SWIG/_lib11_compat.i
-@@ -8,7 +8,7 @@
- */
-
- %{
--#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
-
- #include <string.h>
- #include <openssl/engine.h>
-@@ -24,6 +24,8 @@ static void *CRYPTO_zalloc(size_t num, const char *fil
- return ret;
- }
-
-+#endif
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
- #include <openssl/bn.h>
-
- #ifndef BN_F_BN_GENCB_NEW
diff --git a/dev-python/m2crypto/files/patch-src_SWIG__lib_i b/dev-python/m2crypto/files/patch-src_SWIG__lib_i
deleted file mode 100644
index 952b7198b214..000000000000
--- a/dev-python/m2crypto/files/patch-src_SWIG__lib_i
+++ /dev/null
@@ -1,70 +0,0 @@
-Fix build with LibreSSL
-
-Index: src/SWIG/_lib.i
---- src/SWIG/_lib.i.orig
-+++ src/SWIG/_lib.i
-@@ -21,7 +21,7 @@
-
- %{
- /* OpenSSL 1.0.2 copmatbility shim */
--#if OPENSSL_VERSION_NUMBER < 0x10002000L
-+#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(LIBRESSL_VERSION_NUMBER)
- typedef void (*OPENSSL_sk_freefunc)(void *);
- typedef void *(*OPENSSL_sk_copyfunc)(const void *);
- typedef struct stack_st OPENSSL_STACK;
-@@ -31,47 +31,21 @@ typedef struct stack_st OPENSSL_STACK;
-
- void OPENSSL_sk_free(OPENSSL_STACK *st)
- {
-- if (st == NULL)
-- return;
-- OPENSSL_free(st->data);
-- OPENSSL_free(st);
-+ sk_free(st);
- }
-
- OPENSSL_STACK *OPENSSL_sk_deep_copy(const OPENSSL_STACK *sk,
- OPENSSL_sk_copyfunc copy_func,
- OPENSSL_sk_freefunc free_func)
- {
-- OPENSSL_STACK *ret;
-- int i;
-+ /* Do not support this. It relies on UB via function pointer casting. */
-+ return NULL;
-+}
-
-- if (sk->num < 0)
-- return NULL;
--
-- if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL)
-- return NULL;
--
-- /* direct structure assignment */
-- *ret = *sk;
--
-- ret->num_alloc = sk->num > MIN_NODES ? (size_t)sk->num : MIN_NODES;
-- ret->data = OPENSSL_zalloc(sizeof(*ret->data) * ret->num_alloc);
-- if (ret->data == NULL) {
-- OPENSSL_free(ret);
-- return NULL;
-- }
--
-- for (i = 0; i < ret->num; ++i) {
-- if (sk->data[i] == NULL)
-- continue;
-- if ((ret->data[i] = copy_func(sk->data[i])) == NULL) {
-- while (--i >= 0)
-- if (ret->data[i] != NULL)
-- free_func((void *)ret->data[i]);
-- OPENSSL_sk_free(ret);
-- return NULL;
-- }
-- }
-- return ret;
-+int sk_find_ex(OPENSSL_STACK *sk, void *wanted)
-+{
-+ /* Let's see if anything fails. */
-+ return -1;
- }
- #endif /* OpenSSL 1.0.2 copmatbility shim */
-
diff --git a/dev-python/m2crypto/files/patch-src_SWIG__threads_i b/dev-python/m2crypto/files/patch-src_SWIG__threads_i
deleted file mode 100644
index b0a93a2f5a61..000000000000
--- a/dev-python/m2crypto/files/patch-src_SWIG__threads_i
+++ /dev/null
@@ -1,50 +0,0 @@
-Fix build with LibreSSL
-
-Index: src/SWIG/_threads.i
---- src/SWIG/_threads.i.orig
-+++ src/SWIG/_threads.i
-@@ -5,7 +5,7 @@
- #include <pythread.h>
- #include <openssl/crypto.h>
-
--#if defined(THREADING) && OPENSSL_VERSION_NUMBER < 0x10100000L
-+#if defined(THREADING) && OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
- #define CRYPTO_num_locks() (CRYPTO_NUM_LOCKS)
- static PyThread_type_lock lock_cs[CRYPTO_num_locks()];
- static long lock_count[CRYPTO_num_locks()];
-@@ -13,7 +13,7 @@ static int thread_mode = 0;
- #endif
-
- void threading_locking_callback(int mode, int type, const char *file, int line) {
--#if defined(THREADING) && OPENSSL_VERSION_NUMBER < 0x10100000L
-+#if defined(THREADING) && OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
- if (mode & CRYPTO_LOCK) {
- PyThread_acquire_lock(lock_cs[type], WAIT_LOCK);
- lock_count[type]++;
-@@ -25,7 +25,7 @@ void threading_locking_callback(int mode, int type, co
- }
-
- unsigned long threading_id_callback(void) {
--#if defined(THREADING) && OPENSSL_VERSION_NUMBER < 0x10100000L
-+#if defined(THREADING) && OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
- return (unsigned long)PyThread_get_thread_ident();
- #else
- return (unsigned long)0;
-@@ -35,7 +35,7 @@ unsigned long threading_id_callback(void) {
-
- %inline %{
- void threading_init(void) {
--#if defined(THREADING) && OPENSSL_VERSION_NUMBER < 0x10100000L
-+#if defined(THREADING) && OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
- int i;
- if (!thread_mode) {
- for (i=0; i<CRYPTO_num_locks(); i++) {
-@@ -50,7 +50,7 @@ void threading_init(void) {
- }
-
- void threading_cleanup(void) {
--#if defined(THREADING) && OPENSSL_VERSION_NUMBER < 0x10100000L
-+#if defined(THREADING) && OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
- int i;
- if (thread_mode) {
- CRYPTO_set_locking_callback(NULL);
diff --git a/dev-python/m2crypto/files/patch-src_SWIG__x509_i b/dev-python/m2crypto/files/patch-src_SWIG__x509_i
deleted file mode 100644
index 0e1d20a51801..000000000000
--- a/dev-python/m2crypto/files/patch-src_SWIG__x509_i
+++ /dev/null
@@ -1,16 +0,0 @@
-X509_check_trust() was removed from the public API
-
-Index: src/SWIG/_x509.i
---- src/SWIG/_x509.i.orig
-+++ src/SWIG/_x509.i
-@@ -108,8 +108,10 @@ extern int X509_cmp_current_time(ASN1_TIME *);
-
- %rename(x509_check_purpose) X509_check_purpose;
- extern int X509_check_purpose(X509 *, int, int);
-+#ifndef LIBRESSL_VERSION_NUMBER
- %rename(x509_check_trust) X509_check_trust;
- extern int X509_check_trust(X509 *, int, int);
-+#endif
-
- %rename(x509_write_pem) PEM_write_bio_X509;
- %threadallow PEM_write_bio_X509;
diff --git a/dev-python/m2crypto/m2crypto-0.46.2.ebuild b/dev-python/m2crypto/m2crypto-0.46.2.ebuild
deleted file mode 100644
index 96fd67c2a593..000000000000
--- a/dev-python/m2crypto/m2crypto-0.46.2.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 2021-2025 Liguros Authors
-# Distributed under the terms of the GNU General Public License v2
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..14} )
-PYTHON_REQ_USE="threads(+)"
-
-inherit distutils-r1 toolchain-funcs
-
-DESCRIPTION="A Python crypto and SSL toolkit"
-HOMEPAGE="https://sr.ht/~mcepl/m2crypto/ https://pypi.org/project/M2Crypto/"
-SRC_URI="
- https://git.sr.ht/~mcepl/m2crypto/archive/${PV}.tar.gz -> ${P}.tar.gz
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
-IUSE="libressl"
-
-BDEPEND="
- >=dev-lang/swig-2.0.9
-"
-RDEPEND="
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( >=dev-libs/libressl-3.5.0:0= )
-"
-DEPEND="${RDEPEND}"
-
-swig_define() {
- local x
- for x; do
- if tc-cpp-is-true "defined(${x})"; then
- SWIG_FEATURES+=" -D${x}"
- fi
- done
-}
-
-src_prepare() {
- if use libressl; then
- eapply -p0 ${FILESDIR}/patch-src_SWIG__x509_i
- eapply -p0 ${FILESDIR}/patch-src_SWIG__lib11_compat_i
- eapply -p0 ${FILESDIR}/patch-src_SWIG__lib_i
- eapply -p0 ${FILESDIR}/patch-src_SWIG__threads_i
- fi
-
- sed -e 's:test_server_simple_timeouts:_&:' \
- -i tests/test_ssl.py || die
- distutils-r1_src_prepare
-}
-
-python_compile() {
- # setup.py looks at platform.machine() to determine swig options.
- # For exotic ABIs, we need to give swig a hint.
- local -x SWIG_FEATURES=
-
- # https://bugs.gentoo.org/617946
- swig_define __ILP32__
- # https://bugs.gentoo.org/674112
- swig_define __ARM_PCS_VFP
-
- distutils-r1_python_compile
-}
-
-python_test() {
- "${EPYTHON}" -m unittest -b -v tests.alltests.suite ||
- die "Tests failed for ${EPYTHON}"
-}
diff --git a/dev-python/m2crypto/m2crypto-0.47.0.ebuild b/dev-python/m2crypto/m2crypto-0.47.0.ebuild
deleted file mode 100644
index 201e003c497e..000000000000
--- a/dev-python/m2crypto/m2crypto-0.47.0.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 2021-2026 Liguros Authors
-# Distributed under the terms of the GNU General Public License v2
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..14} )
-PYTHON_REQ_USE="threads(+)"
-
-inherit distutils-r1 toolchain-funcs
-
-DESCRIPTION="A Python crypto and SSL toolkit"
-HOMEPAGE="https://sr.ht/~mcepl/m2crypto/ https://pypi.org/project/M2Crypto/"
-SRC_URI="
- https://git.sr.ht/~mcepl/m2crypto/archive/${PV}.tar.gz -> ${P}.tar.gz
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
-IUSE="libressl"
-
-BDEPEND="
- >=dev-lang/swig-2.0.9
-"
-RDEPEND="
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( >=dev-libs/libressl-3.5.0:0= )
-"
-DEPEND="${RDEPEND}"
-
-swig_define() {
- local x
- for x; do
- if tc-cpp-is-true "defined(${x})"; then
- SWIG_FEATURES+=" -D${x}"
- fi
- done
-}
-
-src_prepare() {
- if use libressl; then
- eapply -p0 ${FILESDIR}/patch-src_SWIG__x509_i
- eapply -p0 ${FILESDIR}/patch-src_SWIG__lib11_compat_i
- eapply -p0 ${FILESDIR}/patch-src_SWIG__lib_i
- eapply -p0 ${FILESDIR}/patch-src_SWIG__threads_i
- fi
-
- sed -e 's:test_server_simple_timeouts:_&:' \
- -i tests/test_ssl.py || die
- distutils-r1_src_prepare
-}
-
-python_compile() {
- # setup.py looks at platform.machine() to determine swig options.
- # For exotic ABIs, we need to give swig a hint.
- local -x SWIG_FEATURES=
-
- # https://bugs.gentoo.org/617946
- swig_define __ILP32__
- # https://bugs.gentoo.org/674112
- swig_define __ARM_PCS_VFP
-
- distutils-r1_python_compile
-}
-
-python_test() {
- "${EPYTHON}" -m unittest -b -v tests.alltests.suite ||
- die "Tests failed for ${EPYTHON}"
-}
diff --git a/dev-python/m2crypto/metadata.xml b/dev-python/m2crypto/metadata.xml
deleted file mode 100644
index d58e6b044b8a..000000000000
--- a/dev-python/m2crypto/metadata.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>dev@liguros.net</email>
- <name>Development</name>
- </maintainer>
- <maintainer type="project">
- <email>python@gentoo.org</email>
- <name>Python</name>
- </maintainer>
-
- <origin>ports</origin>
-</pkgmetadata> \ No newline at end of file