From 0e47ba8f6ea8d9ccbcad8bd89a35280e7e7e9d1e Mon Sep 17 00:00:00 2001 From: Ruslan Makhmatkhanov Date: Mon, 7 Jan 2013 06:16:27 +0000 Subject: [PATCH] JavaScript minifier. WWW: http://pypi.python.org/pypi/jsmin PR: 174564 Submitted by: Po-Chien Lin --- devel/Makefile | 1 + devel/py-jsmin/Makefile | 32 ++++++++++++++++++++++++++++++++ devel/py-jsmin/distinfo | 2 ++ devel/py-jsmin/pkg-descr | 3 +++ 4 files changed, 38 insertions(+) create mode 100644 devel/py-jsmin/Makefile create mode 100644 devel/py-jsmin/distinfo create mode 100644 devel/py-jsmin/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index f92f0ba942b6..fbe17ec8411a 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3450,6 +3450,7 @@ SUBDIR += py-iterpipes SUBDIR += py-itools SUBDIR += py-jcc + SUBDIR += py-jsmin SUBDIR += py-json-py SUBDIR += py-jsonlib SUBDIR += py-jsonlib2 diff --git a/devel/py-jsmin/Makefile b/devel/py-jsmin/Makefile new file mode 100644 index 000000000000..bf308164adce --- /dev/null +++ b/devel/py-jsmin/Makefile @@ -0,0 +1,32 @@ +# Created by: Po-Chien Lin +# $FreeBSD$ + +PORTNAME= jsmin +PORTVERSION= 2.0.2 +CATEGORIES= devel www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= linpc@cs.nctu.edu.tw +COMMENT= JavaScript minifier written in Python + +USE_PYTHON= yes +USE_PYDISTUTILS=easy_install + +DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} +PORTDOCS= PKG-INFO + +PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% + +.include + +post-install: +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR} +.endif + +regression-test: + @(cd ${WRKSRC}/${PORTNAME} && ${PYTHON_CMD} test.py) + +.include diff --git a/devel/py-jsmin/distinfo b/devel/py-jsmin/distinfo new file mode 100644 index 000000000000..3c58c3b1cd23 --- /dev/null +++ b/devel/py-jsmin/distinfo @@ -0,0 +1,2 @@ +SHA256 (jsmin-2.0.2.tar.gz) = 544349a6665b85719185d1253047ea5e0aa21251e67e2e2f32d0f5772cd2d431 +SIZE (jsmin-2.0.2.tar.gz) = 5402 diff --git a/devel/py-jsmin/pkg-descr b/devel/py-jsmin/pkg-descr new file mode 100644 index 000000000000..3bdcb817624d --- /dev/null +++ b/devel/py-jsmin/pkg-descr @@ -0,0 +1,3 @@ +JavaScript minifier. + +WWW: http://pypi.python.org/pypi/jsmin