git: 9346728b6f83 - main - devel/py-xattr: Convert to USE_PYTHON=pep517

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 23 Jul 2025 07:27:23 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9346728b6f8360342b6eb07dac3a3e162159555c

commit 9346728b6f8360342b6eb07dac3a3e162159555c
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-07-23 07:19:51 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-07-23 07:23:18 +0000

    devel/py-xattr: Convert to USE_PYTHON=pep517
    
    - Update version requirement of *_DEPENDS
    - Update pkg-descr
    - Bump PORTREVISION for package change
    - Take maintainership
---
 devel/py-xattr/Makefile                   | 14 ++++++++------
 devel/py-xattr/files/patch-pyproject.toml | 10 ++++++++++
 devel/py-xattr/pkg-descr                  | 13 ++++++++++---
 3 files changed, 28 insertions(+), 9 deletions(-)

diff --git a/devel/py-xattr/Makefile b/devel/py-xattr/Makefile
index 307a7ae5cb89..b7e35136c9a7 100644
--- a/devel/py-xattr/Makefile
+++ b/devel/py-xattr/Makefile
@@ -1,24 +1,26 @@
 PORTNAME=	xattr
 PORTVERSION=	1.2.0
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Python wrapper for extended filesystem attributes
 WWW=		https://github.com/xattr/xattr
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR}
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.16.0:devel/py-cffi@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.16.0:devel/py-cffi@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	autoplist concurrent pep517
 
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/xattr/_lib*.so
+	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
 
 .include <bsd.port.mk>
diff --git a/devel/py-xattr/files/patch-pyproject.toml b/devel/py-xattr/files/patch-pyproject.toml
new file mode 100644
index 000000000000..4ffc819a00e9
--- /dev/null
+++ b/devel/py-xattr/files/patch-pyproject.toml
@@ -0,0 +1,10 @@
+--- pyproject.toml.orig	2025-07-14 02:33:11 UTC
++++ pyproject.toml
+@@ -1,6 +1,6 @@ requires = [
+ [build-system]
+ requires = [
+-    "setuptools>=68",
++    "setuptools>=61",
+     "wheel",
+     "cffi>=1.16.0",
+ ]
diff --git a/devel/py-xattr/pkg-descr b/devel/py-xattr/pkg-descr
index e9562c337e2f..8e53e039c9ab 100644
--- a/devel/py-xattr/pkg-descr
+++ b/devel/py-xattr/pkg-descr
@@ -1,3 +1,10 @@
-Extended attributes extend the basic attributes of files and directories
-in the file system.  They are stored as name:data pairs associated with
-file system objects (files, directories, symlinks, etc).
+xattr is a Python wrapper for extended filesystem attributes.
+
+xattr also ships with an xattr command line tool for viewing and editing
+extended filesystem attributes. On platforms that support or ship with the attr
+package, you may prefer to use the getfattr and setfattr command line tools from
+the attr package.
+
+Extended attributes extend the basic attributes of files and directories in the
+file system. They are stored as name:data pairs associated with file system
+objects (files, directories, symlinks, etc).