git: 295b07b7ff75 - main - devel/py-jsmin: Update to 3.0.0
Po-Chuan Hsieh
sunpoet at FreeBSD.org
Tue Sep 21 03:51:31 UTC 2021
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=295b07b7ff75affa9e225fc39d6c89eeb1641b25
commit 295b07b7ff75affa9e225fc39d6c89eeb1641b25
Author: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-09-21 03:12:21 +0000
Commit: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-09-21 03:44:28 +0000
devel/py-jsmin: Update to 3.0.0
- Update WWW
- Take maintainership
Changes: https://github.com/tikitu/jsmin/blob/master/CHANGELOG.txt
---
devel/py-jsmin/Makefile | 18 +++++-------------
devel/py-jsmin/distinfo | 6 +++---
devel/py-jsmin/files/patch-jsmin-test.py | 19 +++++++++++++++++++
devel/py-jsmin/pkg-descr | 2 +-
4 files changed, 28 insertions(+), 17 deletions(-)
diff --git a/devel/py-jsmin/Makefile b/devel/py-jsmin/Makefile
index ad6591495345..5cdfc5e1d11c 100644
--- a/devel/py-jsmin/Makefile
+++ b/devel/py-jsmin/Makefile
@@ -1,31 +1,23 @@
# Created by: Po-Chien Lin <linpc at cs.nctu.edu.tw>
PORTNAME= jsmin
-PORTVERSION= 2.2.2
+PORTVERSION= 3.0.0
CATEGORIES= devel www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= sunpoet at FreeBSD.org
COMMENT= JavaScript minifier written in Python
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= python:3.6+
-USE_PYTHON= distutils autoplist
-NO_ARCH= yes
-
-DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
-PORTDOCS= PKG-INFO
+USE_PYTHON= autoplist concurrent distutils
-OPTIONS_DEFINE= DOCS
-
-post-install-DOCS-on:
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+NO_ARCH= yes
do-test:
- @(cd ${WRKSRC}/${PORTNAME} && ${PYTHON_CMD} test.py)
+ cd ${WRKSRC}/ && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} ${PYTHON_CMD} -m jsmin.test
.include <bsd.port.mk>
diff --git a/devel/py-jsmin/distinfo b/devel/py-jsmin/distinfo
index 8d3847661163..7845ee9eb843 100644
--- a/devel/py-jsmin/distinfo
+++ b/devel/py-jsmin/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1498915160
-SHA256 (jsmin-2.2.2.tar.gz) = b6df99b2cd1c75d9d342e4335b535789b8da9107ec748212706ef7bbe5c2553b
-SIZE (jsmin-2.2.2.tar.gz) = 12705
+TIMESTAMP = 1632037082
+SHA256 (jsmin-3.0.0.tar.gz) = 88fc1bd6033a47c5911dbcada7d279c7a8b7ad0841909590f6a742c20c4d2e08
+SIZE (jsmin-3.0.0.tar.gz) = 11519
diff --git a/devel/py-jsmin/files/patch-jsmin-test.py b/devel/py-jsmin/files/patch-jsmin-test.py
new file mode 100644
index 000000000000..e88efb9d182a
--- /dev/null
+++ b/devel/py-jsmin/files/patch-jsmin-test.py
@@ -0,0 +1,19 @@
+--- jsmin/test.py.orig 2021-09-16 18:39:59 UTC
++++ jsmin/test.py
+@@ -592,15 +592,7 @@ console.log('hello!');}/*! Copyright blah blah
+ class RegexTests(unittest.TestCase):
+
+ def regex_recognise(self, js):
+- if not jsmin.is_3:
+- if jsmin.cStringIO and not isinstance(js, unicode):
+- # strings can use cStringIO for a 3x performance
+- # improvement, but unicode (in python2) cannot
+- klass = jsmin.cStringIO.StringIO
+- else:
+- klass = jsmin.StringIO.StringIO
+- else:
+- klass = jsmin.io.StringIO
++ klass = jsmin.io.StringIO
+ ins = klass(js[2:])
+ outs = klass()
+ jsmin.JavascriptMinify(ins, outs).regex_literal(js[0], js[1])
diff --git a/devel/py-jsmin/pkg-descr b/devel/py-jsmin/pkg-descr
index a8b2b5275002..01b323938b74 100644
--- a/devel/py-jsmin/pkg-descr
+++ b/devel/py-jsmin/pkg-descr
@@ -1,3 +1,3 @@
JavaScript minifier written in Python.
-WWW: https://pypi.org/project/jsmin/
+WWW: https://github.com/tikitu/jsmin
More information about the dev-commits-ports-all
mailing list