mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
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>
This commit is contained in:
parent
fb4f0f0bc1
commit
613ec2dacd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364839
5 changed files with 55 additions and 0 deletions
|
@ -1684,6 +1684,7 @@
|
||||||
SUBDIR += py-selector
|
SUBDIR += py-selector
|
||||||
SUBDIR += py-selenium
|
SUBDIR += py-selenium
|
||||||
SUBDIR += py-slimmer
|
SUBDIR += py-slimmer
|
||||||
|
SUBDIR += py-slimit
|
||||||
SUBDIR += py-slumber
|
SUBDIR += py-slumber
|
||||||
SUBDIR += py-splinter
|
SUBDIR += py-splinter
|
||||||
SUBDIR += py-surl
|
SUBDIR += py-surl
|
||||||
|
|
34
www/py-slimit/Makefile
Normal file
34
www/py-slimit/Makefile
Normal file
|
@ -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>
|
2
www/py-slimit/distinfo
Normal file
2
www/py-slimit/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SHA256 (slimit-0.8.1.zip) = f433dcef899f166b207b67d91d3f7344659cb33b8259818f084167244e17720b
|
||||||
|
SIZE (slimit-0.8.1.zip) = 88217
|
11
www/py-slimit/files/patch-setup.py
Normal file
11
www/py-slimit/files/patch-setup.py
Normal file
|
@ -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',
|
||||||
|
)
|
||||||
|
|
7
www/py-slimit/pkg-descr
Normal file
7
www/py-slimit/pkg-descr
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue