diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2004-12-31 14:33:16 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2004-12-31 14:33:16 +0000 |
commit | 43f7b7f9d29276f4e5f39305f7cd5a5c52a7469c (patch) | |
tree | 969ecbfee59396aeb8a5a6e62546ef90e9dacf9b | |
parent | Update to 0.5 (diff) |
New port jzlib version 1.0.5: A re-implementation of zlib in pure Java
Notes
Notes:
svn path=/head/; revision=125606
-rw-r--r-- | archivers/Makefile | 1 | ||||
-rw-r--r-- | archivers/jzlib/Makefile | 63 | ||||
-rw-r--r-- | archivers/jzlib/distinfo | 2 | ||||
-rw-r--r-- | archivers/jzlib/pkg-descr | 19 |
4 files changed, 85 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile index ed0fab7fd7e7..fb076aa34706 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -25,6 +25,7 @@ SUBDIR += hffzip SUBDIR += hpack.non-usa.only SUBDIR += jzip.org + SUBDIR += jzlib SUBDIR += lbrate SUBDIR += lha SUBDIR += libarc diff --git a/archivers/jzlib/Makefile b/archivers/jzlib/Makefile new file mode 100644 index 000000000000..82689f70ed6a --- /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 000000000000..a483ff48a326 --- /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 000000000000..c8da46fb85a9 --- /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 |