Verified Commit 9b65d0f6 authored by sunpoet's avatar sunpoet
Browse files

devel/py-lxml5: Remove obsoleted port

Use devel/py-lxml instead.
parent 77f5cee8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5113,3 +5113,4 @@ devel/py-Levenshtein|devel/py-levenshtein|2026-02-07|Rename to match upstream
misc/py-natten|misc/py-NATTEN|2026-02-10|Rename to match name in PyPI
net/tcpkali||2026-02-10|Upstream dead and compromised
devel/py-hishel0|devel/py-hishel|2026-02-10|Remove obsoleted port. Use devel/py-hishel instead
devel/py-lxml5|devel/py-lxml|2026-02-10|Remove obsoleted port. Use devel/py-lxml instead
+0 −1
Original line number Diff line number Diff line
@@ -5268,7 +5268,6 @@
    SUBDIR += py-lxml
    SUBDIR += py-lxml-html-clean
    SUBDIR += py-lxml-stubs
    SUBDIR += py-lxml5
    SUBDIR += py-mac-vendor-lookup
    SUBDIR += py-macholib
    SUBDIR += py-madoka

devel/py-lxml5/Makefile

deleted100644 → 0
+0 −30
Original line number Diff line number Diff line
PORTNAME=	lxml
PORTVERSION=	5.4.0
PORTREVISION=	2
CATEGORIES=	devel python
MASTER_SITES=	PYPI \
		https://github.com/lxml/lxml/releases/download/lxml-${PORTVERSION}/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX=	5

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Pythonic XML processing library combining libxml2/libxslt
WWW=		https://lxml.de/ \
		https://github.com/lxml/lxml

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}

USES=		cpe gnome python
USE_GNOME=	libxml2 libxslt
USE_PYTHON=	autoplist concurrent cython pep517

CONFLICTS_INSTALL=	${PYTHON_PKGNAMEPREFIX}lxml ${PYTHON_PKGNAMEPREFIX}lxml5

post-install:
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +

.include <bsd.port.mk>

devel/py-lxml5/distinfo

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
TIMESTAMP = 1745936150
SHA256 (lxml-5.4.0.tar.gz) = d12832e1dbea4be280b22fd0ea7c9b87f0d8fc51ba06e92dc62d52f804f78ebd
SIZE (lxml-5.4.0.tar.gz) = 3679479

devel/py-lxml5/files/patch-cython

deleted100644 → 0
+0 −49
Original line number Diff line number Diff line
Obtained from:	https://github.com/lxml/lxml/commit/6a0f0f09e26d574e75848d0ca1ef00e97ee49658
		https://github.com/lxml/lxml/commit/99c81a6694f92dd09626f861f313505ab667b948

--- setupinfo.py.orig	2025-04-22 12:23:54 UTC
+++ setupinfo.py
@@ -176,34 +176,6 @@ def ext_modules(static_include_dirs, static_library_di
         from Cython.Build import cythonize
         result = cythonize(result, compiler_directives=cythonize_directives)
 
-        # Fix compiler warning due to missing pragma-push in Cython 3.0.9.
-        for ext in result:
-            for source_file in ext.sources:
-                if not source_file.endswith('.c'):
-                    continue
-                with open(source_file, 'rb') as f:
-                    lines = f.readlines()
-                if b'Generated by Cython 3.0.9' not in lines[0]:
-                    continue
-
-                modified = False
-                temp_file = source_file + ".tmp"
-                with open(temp_file, 'wb') as f:
-                    last_was_push = False
-                    for line in lines:
-                        if b'#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"' in line and not last_was_push:
-                            f.write(b"#pragma GCC diagnostic push\n")
-                            modified = True
-                        last_was_push = b'#pragma GCC diagnostic push' in line
-                        f.write(line)
-
-                if modified:
-                    print("Fixed Cython 3.0.9 generated source file " + source_file)
-                    os.unlink(source_file)
-                    os.rename(temp_file, source_file)
-                else:
-                    os.unlink(temp_file)
-
     # for backwards compatibility reasons, provide "etree[_api].h" also as "lxml.etree[_api].h"
     for header_filename in HEADER_FILES:
         src_file = os.path.join(SOURCE_PATH, 'lxml', header_filename)
@@ -367,6 +339,8 @@ def define_macros():
         macros.append(('LXML_UNICODE_STRINGS', '1'))
     if OPTION_WITH_COVERAGE:
         macros.append(('CYTHON_TRACE_NOGIL', '1'))
+        # coverage.py does not support Cython together with sys.monitoring.
+        macros.append(('CYTHON_USE_SYS_MONITORING', '0'))
     if OPTION_BUILD_LIBXML2XSLT:
         macros.append(('LIBXML_STATIC', None))
         macros.append(('LIBXSLT_STATIC', None))
Loading