diff options
author | lioux <lioux@FreeBSD.org> | 2004-12-31 14:33:16 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2004-12-31 14:33:16 +0000 |
commit | e1df34edacaddc1a4de7b333960feeb018600237 (patch) | |
tree | 0e3fff76fa9040343f849c6d774383cda08a82eb /archivers/jzlib | |
parent | 27a2de86660c6e47f2c3a21d3fdb7fbb441b228e (diff) | |
download | FreeBSD-ports-e1df34edacaddc1a4de7b333960feeb018600237.zip FreeBSD-ports-e1df34edacaddc1a4de7b333960feeb018600237.tar.gz |
New port jzlib version 1.0.5: A re-implementation of zlib in pure Java
Diffstat (limited to 'archivers/jzlib')
-rw-r--r-- | archivers/jzlib/Makefile | 63 | ||||
-rw-r--r-- | archivers/jzlib/distinfo | 2 | ||||
-rw-r--r-- | archivers/jzlib/pkg-descr | 19 |
3 files changed, 84 insertions, 0 deletions
diff --git a/archivers/jzlib/Makefile b/archivers/jzlib/Makefile new file mode 100644 index 0000000..82689f7 --- /dev/null +++ b/archivers/jzlib/Makefile @@ -0,0 +1,63 @@ +# New ports collection makefile for: jzlib +# Date created: Fri Dec 31 14:28:16 UTC 2004 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= jzlib +PORTVERSION= 1.0.5 +CATEGORIES= archivers java +MASTER_SITES= http://www.jcraft.com/jzlib/ + +MAINTAINER= lioux@FreeBSD.org +COMMENT= A re-implementation of zlib in pure Java + +USE_JAVA= yes +JAVA_VERSION= 1.4+ + +JAR_FILE= ${WRKSRC}/${PORTNAME}.jar + +DOC_FILES= \ + ChangeLog \ + LICENSE.txt \ + README +PORTDOCS= ${DOC_FILES} + +EXAMPLE_FILES= \ + README \ + test_deflate_inflate.java \ + test_dict_deflate_inflate.java \ + test_flush_sync.java \ + test_large_deflate_inflate.java \ + test_stream_deflate_inflate.java + +PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}.jar + +.for file in ${EXAMPLE_FILES} +PLIST_FILES+= %%EXAMPLESDIR%%/${file} +.endfor + +do-build: + @cd ${BUILD_WRKSRC} && ${FIND} com -name "*.java" | \ + ${XARGS} -n 10 -x \ + ${JAVAC} -classpath ${BUILD_WRKSRC} + @cd ${BUILD_WRKSRC} && ${FIND} com -name "*class" | \ + ${XARGS} \ + ${JAR} -cf ${PORTNAME}.jar + +do-install: +# docs +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +. for file in ${DOC_FILES} + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +. endfor +.endif +# examples + @${MKDIR} ${EXAMPLESDIR} + @${INSTALL_DATA} ${WRKSRC}/example/* ${EXAMPLESDIR} +# jar + @${INSTALL_DATA} ${JAR_FILE} ${JAVAJARDIR}/${PORTNAME}.jar + +.include <bsd.port.mk> diff --git a/archivers/jzlib/distinfo b/archivers/jzlib/distinfo new file mode 100644 index 0000000..a483ff4 --- /dev/null +++ b/archivers/jzlib/distinfo @@ -0,0 +1,2 @@ +MD5 (jzlib-1.0.5.tar.gz) = 8880066f474d94b6a629502e32ffafb8 +SIZE (jzlib-1.0.5.tar.gz) = 49791 diff --git a/archivers/jzlib/pkg-descr b/archivers/jzlib/pkg-descr new file mode 100644 index 0000000..c8da46f --- /dev/null +++ b/archivers/jzlib/pkg-descr @@ -0,0 +1,19 @@ +[ excerpt from developer's web site ] + +JZlib is a re-implementation of zlib in pure Java. The first and +final aim for hacking this stuff is to add the packet compression +support to pure Java SSH systems. + +- Why JZlib? + +Java Platform API provides packages 'java.util.zip.*' for accessing +to zlib, but that support is very limited if you need to use the +essence of zlib. For example, we needed to full access to zlib to +add the packet compression support to pure Java SSH system, but +they are useless for our requirements. The Internet draft SSH +Transport Layer Protocol says in the section '4.2 Compression' as +follows, + +WWW: http://www.jcraft.com/jzlib/ + +-- lioux@FreeBSD.org |