Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 2014 08:55:29 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r364839 - in head/www: . py-slimit py-slimit/files
Message-ID:  <201408140855.s7E8tTDv071235@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Thu Aug 14 08:55:28 2014
New Revision: 364839
URL: http://svnweb.freebsd.org/changeset/ports/364839
QAT: https://qat.redports.org/buildarchive/r364839/

Log:
  www/py-slimit: JavaScript minifier written in Python
  
  SlimIt is a JavaScript minifier written in Python. It compiles
  JavaScript into more compact code so that it downloads and runs faster.
  
  SlimIt also provides a library that includes a JavaScript parser, lexer,
  pretty printer and a tree visitor.
  
  WWW: http://slimit.readthedocs.org
  
  PR:		191386 (with minor changes)
  Submitted by:	Melvyn Sopacua <melvyn at magemana dot nl>

Added:
  head/www/py-slimit/
  head/www/py-slimit/Makefile   (contents, props changed)
  head/www/py-slimit/distinfo   (contents, props changed)
  head/www/py-slimit/files/
  head/www/py-slimit/files/patch-setup.py   (contents, props changed)
  head/www/py-slimit/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Thu Aug 14 08:43:08 2014	(r364838)
+++ head/www/Makefile	Thu Aug 14 08:55:28 2014	(r364839)
@@ -1684,6 +1684,7 @@
     SUBDIR += py-selector
     SUBDIR += py-selenium
     SUBDIR += py-slimmer
+    SUBDIR += py-slimit
     SUBDIR += py-slumber
     SUBDIR += py-splinter
     SUBDIR += py-surl

Added: head/www/py-slimit/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-slimit/Makefile	Thu Aug 14 08:55:28 2014	(r364839)
@@ -0,0 +1,34 @@
+# $FreeBSD$
+
+PORTNAME=	slimit
+PORTVERSION=	0.8.1
+CATEGORIES=	www python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	melvyn@magemana.nl
+COMMENT=	JavaScript minifier written in Python
+
+LICENSE=	BSD3CLAUSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ply>=3.4:${PORTSDIR}/devel/py-ply
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ply>=3.4:${PORTSDIR}/devel/py-ply
+
+USES=			zip
+USE_PYTHON=		2
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
+
+# Maintainer: Reminder to keep testing python 3.x compatibility.
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} >= 300
+BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six
+pre-build:
+	@cd ${WRKSRC} && 2to3-${PYTHON_VER} -w src
+.endif
+
+regression-test: build
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.post.mk>

Added: head/www/py-slimit/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-slimit/distinfo	Thu Aug 14 08:55:28 2014	(r364839)
@@ -0,0 +1,2 @@
+SHA256 (slimit-0.8.1.zip) = f433dcef899f166b207b67d91d3f7344659cb33b8259818f084167244e17720b
+SIZE (slimit-0.8.1.zip) = 88217

Added: head/www/py-slimit/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-slimit/files/patch-setup.py	Thu Aug 14 08:55:28 2014	(r364839)
@@ -0,0 +1,11 @@
+--- setup.py.orig	2013-03-26 09:09:32.000000000 +0100
++++ setup.py	2014-08-01 21:18:22.838964037 +0200
+@@ -52,6 +52,7 @@
+     """,
+     classifiers=filter(None, classifiers.split('\n')),
+     long_description=read('README.rst') + '\n\n' + read('CHANGES'),
+-    extras_require={'test': []}
++    extras_require={'test': []},
++    test_suite='slimit.tests',
+     )
+ 

Added: head/www/py-slimit/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-slimit/pkg-descr	Thu Aug 14 08:55:28 2014	(r364839)
@@ -0,0 +1,7 @@
+SlimIt is a JavaScript minifier written in Python. It compiles
+JavaScript into more compact code so that it downloads and runs faster.
+
+SlimIt also provides a library that includes a JavaScript parser, lexer,
+pretty printer and a tree visitor.
+
+WWW: http://slimit.readthedocs.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408140855.s7E8tTDv071235>