summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorSergey Skvortsov <skv@FreeBSD.org>2010-11-20 18:25:22 +0000
committerSergey Skvortsov <skv@FreeBSD.org>2010-11-20 18:25:22 +0000
commit89fe94f66ef4942967605e5097f599152a762709 (patch)
tree25aa919c36c964dc7a4cb827f106621fc3e45746 /www
parent- Add p5-Data-Rx 0.100110 (diff)
Add htmlcompressor 0.9.4, HTML/XML Compressor.
Notes
Notes: svn path=/head/; revision=264850
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/htmlcompressor/Makefile36
-rw-r--r--www/htmlcompressor/distinfo2
-rw-r--r--www/htmlcompressor/files/htmlcompressor.in3
-rw-r--r--www/htmlcompressor/pkg-descr8
5 files changed, 50 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index f57356753129..86e7844b46c1 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -309,6 +309,7 @@
SUBDIR += htdump
SUBDIR += html2hdml
SUBDIR += html2wml
+ SUBDIR += htmlcompressor
SUBDIR += htmlobject
SUBDIR += htmlpp
SUBDIR += http-analyze
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/