git: f13a230d076b - main - textproc/py-jsx-lexer: Update to 1.0.0

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Sun, 27 Feb 2022 11:18:35 UTC
The branch main has been updated by kai:

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

commit f13a230d076b27337a8c9e6d3ca0a1e335b470c0
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-02-27 11:05:26 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-02-27 11:05:26 +0000

    textproc/py-jsx-lexer: Update to 1.0.0
    
    * Switch back to PyPI as sdists are there available again.
    
    * Modernize "do-test" target while I'm here.
    
    Changelog:
    
    https://github.com/fcurella/jsx-lexer/compare/v0.0.7...v1.0.0
    
    PR:             262060
    Approved by:    koobs (maintainer, implicit: MAINTAINER_POLICY)
    MFH:            No (not compatible with py-pygments in 2022Q1)
---
 textproc/py-jsx-lexer/Makefile | 14 ++++++--------
 textproc/py-jsx-lexer/distinfo |  6 +++---
 2 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/textproc/py-jsx-lexer/Makefile b/textproc/py-jsx-lexer/Makefile
index 2c0b4ffb5014..f665a5dcce50 100644
--- a/textproc/py-jsx-lexer/Makefile
+++ b/textproc/py-jsx-lexer/Makefile
@@ -1,27 +1,25 @@
 PORTNAME=	jsx-lexer
-PORTVERSION=	0.0.7
-PORTREVISION=	1
-DISTVERSIONPREFIX=v
+PORTVERSION=	1.0.0
 CATEGORIES=	textproc python
+MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	koobs@FreeBSD.org
 COMMENT=	JSX lexer for Pygments
 
 LICENSE=	MIT
-#LICENSE_FILE=	Not packaged yet in sdist
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pygments>=2.1:textproc/py-pygments@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pygments>=2.7:textproc/py-pygments@${PY_FLAVOR}
 
 USES=		python:3.6+
-USE_GITHUB=	yes # tests not in sdist
 USE_PYTHON=	autoplist distutils
 
-GH_ACCOUNT=	fcurella
+TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
 NO_ARCH=	yes
 
 do-test:
-	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m unittest -v
 
 .include <bsd.port.mk>
diff --git a/textproc/py-jsx-lexer/distinfo b/textproc/py-jsx-lexer/distinfo
index 2a6087072a08..2d673e16796e 100644
--- a/textproc/py-jsx-lexer/distinfo
+++ b/textproc/py-jsx-lexer/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1567760207
-SHA256 (fcurella-jsx-lexer-v0.0.7_GH0.tar.gz) = 0ee40ef9d210056b6e2d834bd57d5cf90f338b1ced2222f5b30a1b5ba71acd21
-SIZE (fcurella-jsx-lexer-v0.0.7_GH0.tar.gz) = 5437
+TIMESTAMP = 1645353964
+SHA256 (jsx-lexer-1.0.0.tar.gz) = b5f5270cad47b065417fd7bdb780199d5166bd4a88a2a0fd7412e90e7a59b5cc
+SIZE (jsx-lexer-1.0.0.tar.gz) = 6316