diff options
author | Sergey Skvortsov <skv@FreeBSD.org> | 2010-11-20 18:25:22 +0000 |
---|---|---|
committer | Sergey Skvortsov <skv@FreeBSD.org> | 2010-11-20 18:25:22 +0000 |
commit | 89fe94f66ef4942967605e5097f599152a762709 (patch) | |
tree | 25aa919c36c964dc7a4cb827f106621fc3e45746 /www/htmlcompressor | |
parent | 32e5c55fcd9d12e408d579a60de120a1f446270d (diff) | |
download | ports-89fe94f66ef4942967605e5097f599152a762709.tar.gz ports-89fe94f66ef4942967605e5097f599152a762709.zip |
Notes
Diffstat (limited to 'www/htmlcompressor')
-rw-r--r-- | www/htmlcompressor/Makefile | 36 | ||||
-rw-r--r-- | www/htmlcompressor/distinfo | 2 | ||||
-rw-r--r-- | www/htmlcompressor/files/htmlcompressor.in | 3 | ||||
-rw-r--r-- | www/htmlcompressor/pkg-descr | 8 |
4 files changed, 49 insertions, 0 deletions
diff --git a/www/htmlcompressor/Makefile b/www/htmlcompressor/Makefile new file mode 100644 index 000000000000..78a9d2383ed1 --- /dev/null +++ b/www/htmlcompressor/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: htmlcompressor +# Date created: 20 Nov 2010 +# Whom: Sergey Skvortsov <skv@protey.ru> +# +# $FreeBSD$ +# + +PORTNAME= htmlcompressor +PORTVERSION= 0.9.4 +CATEGORIES= www java +MASTER_SITES= GOOGLE_CODE +DISTNAME= ${PORTNAME}-${PORTVERSION}-src + +MAINTAINER= skv@FreeBSD.org +COMMENT= HTML/XML Compressor + +LICENSE= ASL +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +USE_ZIP= yes +USE_JAVA= yes +JAVA_VERSION= 1.4+ +NO_BUILD= yes + +PLIST_FILES= bin/htmlcompressor %%DATADIR%%/htmlcompressor.jar +PLIST_DIRS= %%DATADIR%% +SUB_FILES= htmlcompressor + +.include <bsd.port.pre.mk> + +do-install: + @${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/build/htmlcompressor-${PORTVERSION}.jar ${DATADIR}/htmlcompressor.jar + ${INSTALL_SCRIPT} ${WRKDIR}/htmlcompressor ${PREFIX}/bin + +.include <bsd.port.post.mk> diff --git a/www/htmlcompressor/distinfo b/www/htmlcompressor/distinfo new file mode 100644 index 000000000000..08677da6042a --- /dev/null +++ b/www/htmlcompressor/distinfo @@ -0,0 +1,2 @@ +SHA256 (htmlcompressor-0.9.4-src.zip) = 3d2fc9b5fe83734597de9a2deac57ed46809b70df7a08a01fdfb678e1c3148b3 +SIZE (htmlcompressor-0.9.4-src.zip) = 1399946 diff --git a/www/htmlcompressor/files/htmlcompressor.in b/www/htmlcompressor/files/htmlcompressor.in new file mode 100644 index 000000000000..a856d58be234 --- /dev/null +++ b/www/htmlcompressor/files/htmlcompressor.in @@ -0,0 +1,3 @@ +#!/bin/sh +# $FreeBSD$ +JAVA_VERSION="%%JAVA_VERSION%%" exec %%LOCALBASE%%/bin/java -jar %%DATADIR%%/htmlcompressor.jar $@ diff --git a/www/htmlcompressor/pkg-descr b/www/htmlcompressor/pkg-descr new file mode 100644 index 000000000000..9517754c8931 --- /dev/null +++ b/www/htmlcompressor/pkg-descr @@ -0,0 +1,8 @@ +Java HTML/XML Compressor is a very small, fast and easy to use library +that minifies given HTML or XML source by removing extra whitespaces, +comments and other unneeded characters without breaking the content +structure. As a result pages become smaller in size and load faster. + +A command-line version of the compressor is also included. + +WWW: http://code.google.com/p/htmlcompressor/ |