git: 6a96b4e0eb64 - main - devel/py-flit-core: Simplify Makefile

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 12 Feb 2023 18:46:26 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6a96b4e0eb649d8ecbaabb395650ac4559545f62

commit 6a96b4e0eb649d8ecbaabb395650ac4559545f62
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-02-12 18:41:32 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-02-12 18:41:32 +0000

    devel/py-flit-core: Simplify Makefile
    
    - Simplify Makefile:
      - Remove unneeded substitution: it is OK in framework but unneeded in a single port
      - Use WRKSRC instead of BUILD_WRKSRC: same as above
      - Use long options for easier reading
      - Use DISTNAME for simplicity
    - Take maintainership
---
 devel/py-flit-core/Makefile | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/devel/py-flit-core/Makefile b/devel/py-flit-core/Makefile
index 09cd3de506c6..61ddb859a121 100644
--- a/devel/py-flit-core/Makefile
+++ b/devel/py-flit-core/Makefile
@@ -1,12 +1,12 @@
 PORTNAME=	flit-core
-DISTVERSION=	3.8.0
+PORTVERSION=	3.8.0
 PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTNAME=	${PORTNAME:C/[-_]+/_/g}-${DISTVERSIONFULL}
+DISTNAME=	flit_core-${PORTVERSION}
 
-MAINTAINER=	python@FreeBSD.org
+MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Distribution-building parts of Flit
 WWW=		https://github.com/pypa/flit/tree/main/flit_core
 
@@ -17,12 +17,12 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}testpath>=0:devel/py-testpath@${PY_FLAVOR}
 
 USES=		python
 USE_PYTHON=	allflavors autoplist concurrent pep517 pytest
-PEP517_BUILD_CMD=	${PYTHON_CMD} -m ${PORTNAME:C/[-_]+/_/g}.wheel
-PEP517_BUILD_DEPEND=
-PEP517_INSTALL_CMD=	${PYTHON_CMD} ${BUILD_WRKSRC}/bootstrap_install.py \
-			-i ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${BUILD_WRKSRC}/dist/${PORTNAME:C/[-_]+/_/g}-*.whl
-PEP517_INSTALL_DEPEND=
 
 NO_ARCH=	yes
 
+PEP517_BUILD_CMD=	${PYTHON_CMD} -m flit_core.wheel
+PEP517_BUILD_DEPEND=	# empty
+PEP517_INSTALL_CMD=	${PYTHON_CMD} ${WRKSRC}/bootstrap_install.py --installdir ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${WRKSRC}/dist/${DISTNAME}*.whl
+PEP517_INSTALL_DEPEND=	# empty
+
 .include <bsd.port.mk>