aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Zverev <az@FreeBSD.org>2013-05-22 18:32:31 +0000
committerAndrej Zverev <az@FreeBSD.org>2013-05-22 18:32:31 +0000
commit4d0e7ff8b373f0003576cfaf04674977314acf95 (patch)
tree3820a33efe94a8e8979fbb9a143d19504fc15ed5
parentcd5ea0494fa009438d798a22e524b39b7ad8b935 (diff)
downloadports-4d0e7ff8b373f0003576cfaf04674977314acf95.tar.gz
ports-4d0e7ff8b373f0003576cfaf04674977314acf95.zip
Notes
-rw-r--r--www/htmlcompressor/Makefile19
-rw-r--r--www/htmlcompressor/distinfo4
-rw-r--r--www/htmlcompressor/files/htmlcompressor.in2
3 files changed, 13 insertions, 12 deletions
diff --git a/www/htmlcompressor/Makefile b/www/htmlcompressor/Makefile
index 8ef82445c884..1547eb7c94ed 100644
--- a/www/htmlcompressor/Makefile
+++ b/www/htmlcompressor/Makefile
@@ -2,31 +2,32 @@
# $FreeBSD$
PORTNAME= htmlcompressor
-PORTVERSION= 0.9.4
+PORTVERSION= 1.5.3
CATEGORIES= www java
MASTER_SITES= GOOGLE_CODE
-DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+DISTNAME= ${PORTNAME}-${PORTVERSION}.jar
+EXTRACT_SUFX= # empty
+EXTRACT_ONLY= # empty
MAINTAINER= ports@FreeBSD.org
COMMENT= HTML/XML Compressor
LICENSE= AL2
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-USE_ZIP= yes
+NO_WRKSUBDIR= yes
USE_JAVA= yes
-JAVA_VERSION= 1.6+
+JAVA_VERSION= 1.5+
NO_BUILD= yes
-PLIST_FILES= bin/htmlcompressor %%DATADIR%%/htmlcompressor.jar
-PLIST_DIRS= %%DATADIR%%
+PLIST_FILES= bin/htmlcompressor %%JAVAJARDIR%%/htmlcompressor.jar
+PLIST_DIRSTRY= %%JAVAJARDIR%%
SUB_FILES= htmlcompressor
.include <bsd.port.pre.mk>
do-install:
- @${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/build/htmlcompressor-${PORTVERSION}.jar ${DATADIR}/htmlcompressor.jar
+ @${MKDIR} ${JAVAJARDIR}
+ ${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${JAVAJARDIR}/htmlcompressor.jar
${INSTALL_SCRIPT} ${WRKDIR}/htmlcompressor ${PREFIX}/bin
.include <bsd.port.post.mk>
diff --git a/www/htmlcompressor/distinfo b/www/htmlcompressor/distinfo
index 08677da6042a..7a0ffb76f77c 100644
--- a/www/htmlcompressor/distinfo
+++ b/www/htmlcompressor/distinfo
@@ -1,2 +1,2 @@
-SHA256 (htmlcompressor-0.9.4-src.zip) = 3d2fc9b5fe83734597de9a2deac57ed46809b70df7a08a01fdfb678e1c3148b3
-SIZE (htmlcompressor-0.9.4-src.zip) = 1399946
+SHA256 (htmlcompressor-1.5.3.jar) = 88894e330cdb0e418e805136d424f4c262236b1aa3683e51037cdb66310cb0f9
+SIZE (htmlcompressor-1.5.3.jar) = 68685
diff --git a/www/htmlcompressor/files/htmlcompressor.in b/www/htmlcompressor/files/htmlcompressor.in
index a856d58be234..fd2e5eda0a3b 100644
--- a/www/htmlcompressor/files/htmlcompressor.in
+++ b/www/htmlcompressor/files/htmlcompressor.in
@@ -1,3 +1,3 @@
#!/bin/sh
# $FreeBSD$
-JAVA_VERSION="%%JAVA_VERSION%%" exec %%LOCALBASE%%/bin/java -jar %%DATADIR%%/htmlcompressor.jar $@
+JAVA_VERSION="%%JAVA_VERSION%%" exec %%LOCALBASE%%/bin/java -jar %%JAVAJARDIR%%/htmlcompressor.jar $@