From owner-dev-commits-ports-all@freebsd.org Tue Sep 21 03:51:30 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D75F86B2C56; Tue, 21 Sep 2021 03:51:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HD6t8278Pz4f6W; Tue, 21 Sep 2021 03:51:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 94D4F1CD77; Tue, 21 Sep 2021 03:51:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 18L3pNDt029742; Tue, 21 Sep 2021 03:51:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18L3pN9Z029741; Tue, 21 Sep 2021 03:51:23 GMT (envelope-from git) Date: Tue, 21 Sep 2021 03:51:23 GMT Message-Id: <202109210351.18L3pN9Z029741@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 295b07b7ff75 - main - devel/py-jsmin: Update to 3.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 295b07b7ff75affa9e225fc39d6c89eeb1641b25 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2021 03:51:31 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=295b07b7ff75affa9e225fc39d6c89eeb1641b25 commit 295b07b7ff75affa9e225fc39d6c89eeb1641b25 Author: Po-Chuan Hsieh AuthorDate: 2021-09-21 03:12:21 +0000 Commit: Po-Chuan Hsieh 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 PORTNAME= jsmin -PORTVERSION= 2.2.2 +PORTVERSION= 3.0.0 CATEGORIES= devel www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sunpoet@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 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