diff options
author | Sergey Skvortsov <skv@FreeBSD.org> | 2008-04-25 11:59:49 +0000 |
---|---|---|
committer | Sergey Skvortsov <skv@FreeBSD.org> | 2008-04-25 11:59:49 +0000 |
commit | 890ff10abf0332ce2d300ef7965c752823d1c631 (patch) | |
tree | 84e0fda11db1ffa1641e30ba77ce964a295cf1a1 /www | |
parent | e0ac7561958d106be9c5b2814745d3d3a17ef675 (diff) | |
download | ports-890ff10abf0332ce2d300ef7965c752823d1c631.tar.gz ports-890ff10abf0332ce2d300ef7965c752823d1c631.zip |
Add yuicompressor 2.3.5, the Yahoo! JavaScript and CSS Compressor.
Notes
Notes:
svn path=/head/; revision=211925
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/yuicompressor/Makefile | 40 | ||||
-rw-r--r-- | www/yuicompressor/distinfo | 3 | ||||
-rw-r--r-- | www/yuicompressor/files/yuicompressor.in | 2 | ||||
-rw-r--r-- | www/yuicompressor/pkg-descr | 17 |
5 files changed, 63 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index dbe4f2648db0..70a9f98cd070 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1480,6 +1480,7 @@ SUBDIR += yahoo-ui SUBDIR += yaws SUBDIR += youtube_dl + SUBDIR += yuicompressor SUBDIR += zend-framework SUBDIR += zenphoto SUBDIR += zerowait-httpd diff --git a/www/yuicompressor/Makefile b/www/yuicompressor/Makefile new file mode 100644 index 000000000000..abd876840bf3 --- /dev/null +++ b/www/yuicompressor/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: yuicompressor +# Date created: 25 Apr 2008 +# Whom: Sergey Skvortsov <skv@protey.ru> +# +# $FreeBSD$ +# + +PORTNAME= yuicompressor +PORTVERSION= 2.3.5 +CATEGORIES= www java +MASTER_SITES= http://www.julienlecomte.net/yuicompressor/ + +MAINTAINER= skv@FreeBSD.org +COMMENT= The Yahoo! JavaScript and CSS Compressor + +USE_ZIP= yes +USE_JAVA= yes +JAVA_VERSION= 1.4+ +NO_BUILD= yes + +PLIST_FILES= bin/yuicompressor %%DATADIR%%/yuicompressor.jar +PLIST_DIRS= %%DATADIR%% +SUB_FILES= yuicompressor + +PORTDOCS= README + +.include <bsd.port.pre.mk> + +do-install: + @${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/build/yuicompressor-${PORTVERSION}.jar ${DATADIR}/yuicompressor.jar + ${INSTALL_SCRIPT} ${WRKDIR}/yuicompressor ${PREFIX}/bin + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/README ${DOCSDIR} +.endif + +.include <bsd.port.post.mk> diff --git a/www/yuicompressor/distinfo b/www/yuicompressor/distinfo new file mode 100644 index 000000000000..7f3e4024c8a9 --- /dev/null +++ b/www/yuicompressor/distinfo @@ -0,0 +1,3 @@ +MD5 (yuicompressor-2.3.5.zip) = 235b2daaeecc9b5cee51bb2987dc1290 +SHA256 (yuicompressor-2.3.5.zip) = ca6f306e0b307cfcd4f2f93c74d470b104a9d7c24d71df0e497fc40f24e5023a +SIZE (yuicompressor-2.3.5.zip) = 1686522 diff --git a/www/yuicompressor/files/yuicompressor.in b/www/yuicompressor/files/yuicompressor.in new file mode 100644 index 000000000000..890b5418cae0 --- /dev/null +++ b/www/yuicompressor/files/yuicompressor.in @@ -0,0 +1,2 @@ +#!/bin/sh +JAVA_VERSION="%%JAVA_VERSION%%" exec %%LOCALBASE%%/bin/java -jar %%DATADIR%%/yuicompressor.jar $@ diff --git a/www/yuicompressor/pkg-descr b/www/yuicompressor/pkg-descr new file mode 100644 index 000000000000..995e03b3c7b2 --- /dev/null +++ b/www/yuicompressor/pkg-descr @@ -0,0 +1,17 @@ +YUI Compressor is JavaScript and CSS minificator. + +YUI Compressor is written in Java and relies on Rhino to tokenize the +source JavaScript file. It starts by analyzing the source JavaScript +file to understand how it is structured. It then prints out the token +stream, omitting as many white space characters as possible, and +replacing all local symbols by a 1 (or 2, or 3) letter symbol wherever +such a substitution is appropriate (in the face of evil features such as +eval or with, the YUI Compressor takes a defensive approach by not +obfuscating any of the scopes containing the evil statement). + +The CSS compression algorithm uses a set of finely tuned regular +expressions to compress the source CSS file. The YUI Compressor is +open-source, so don't hesitate to look at the code to understand exactly +how it works. + +WWW: http://developer.yahoo.com/yui/compressor/ |