diff options
author | Adrian Almenar <strider@gentoo.org> | 2004-02-14 04:43:57 +0000 |
---|---|---|
committer | Adrian Almenar <strider@gentoo.org> | 2004-02-14 04:43:57 +0000 |
commit | a00606faf1017cdbe5d4f9e727f042d0aebc615f (patch) | |
tree | 903f71fdfb18a5e759888e4f508bb4452228ca61 | |
parent | Initial import of jzlib, needed for jsch. (Manifest recommit) (diff) | |
download | gentoo-2-a00606faf1017cdbe5d4f9e727f042d0aebc615f.tar.gz gentoo-2-a00606faf1017cdbe5d4f9e727f042d0aebc615f.tar.bz2 gentoo-2-a00606faf1017cdbe5d4f9e727f042d0aebc615f.zip |
Initial import of jzlib, needed for jsch.
-rw-r--r-- | dev-java/jzlib/ChangeLog | 3 | ||||
-rw-r--r-- | dev-java/jzlib/files/digest-jzlib-1.0.3 | 1 | ||||
-rw-r--r-- | dev-java/jzlib/files/jzlib_build.xml | 52 | ||||
-rw-r--r-- | dev-java/jzlib/jzlib-1.0.3.ebuild | 38 | ||||
-rw-r--r-- | dev-java/jzlib/metadata.xml | 5 |
5 files changed, 98 insertions, 1 deletions
diff --git a/dev-java/jzlib/ChangeLog b/dev-java/jzlib/ChangeLog index 900c82533b89..cb9eb8a22982 100644 --- a/dev-java/jzlib/ChangeLog +++ b/dev-java/jzlib/ChangeLog @@ -1,10 +1,11 @@ # ChangeLog for dev-java/jzlib # Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jzlib/ChangeLog,v 1.1 2004/02/14 04:42:26 strider Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/jzlib/ChangeLog,v 1.2 2004/02/14 04:43:57 strider Exp $ *jzlib-1.0.3 (14 Feb 2004) 14 Feb 2004; Adrian Almenar <strider@gentoo.org> jzlib-1.0.3.ebuild, metadata.xml, files/jzlib_build.xml: Initial import of jzlib, needed for jsch. + jzlib_build.xml taken from jzlib SRC RPM from Jpackage.org. diff --git a/dev-java/jzlib/files/digest-jzlib-1.0.3 b/dev-java/jzlib/files/digest-jzlib-1.0.3 new file mode 100644 index 000000000000..06424ce52470 --- /dev/null +++ b/dev-java/jzlib/files/digest-jzlib-1.0.3 @@ -0,0 +1 @@ +MD5 3fd5d22c18b28d2757b0910f5f87b89b jzlib-1.0.3.tar.gz 47688 diff --git a/dev-java/jzlib/files/jzlib_build.xml b/dev-java/jzlib/files/jzlib_build.xml new file mode 100644 index 000000000000..3027e50646b3 --- /dev/null +++ b/dev-java/jzlib/files/jzlib_build.xml @@ -0,0 +1,52 @@ +<project name="Jzlib" default="dist" basedir="."> + <description> +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. + </description> + <!-- set global properties for this build --> + <property name="version" value="1.0.3"/> + <property name="src" location="src"/> + <property name="build" location="build"/> + <property name="dist" location="dist"/> + <property name="javadoc" location="javadoc"/> + <property name="javac.debug" value="false"/> + <path id="project.cp"> + <pathelement location="${build}"/> + </path> + <target name="init"> + <!-- Create the build directory structure used by compile --> + <mkdir dir="${build}"/> + </target> + + <target name="compile" depends="init" + description="compile the source " > + <!-- Compile the java code from ${src} into ${build} --> + <javac srcdir="${src}" destdir="${build}" debug="${javac.debug}"> + </javac> + </target> + <target name="dist" depends="compile" + description="generate the distribution" > + <!-- Create the distribution directory --> + <mkdir dir="${dist}/lib"/> + + <!-- Put everything in ${build} into the jar file --> + <jar jarfile="${dist}/lib/jzlib-${version}.jar" basedir="${build}"/> + </target> + + <target name="clean" + description="clean up" > + <!-- Delete the ${build} and ${dist} directory trees --> + <delete dir="${build}"/> + <delete dir="${dist}"/> + <delete dir="${javadoc}"/> + </target> + + <target name="javadoc"> + <javadoc sourcepath="${src}" + destdir="${javadoc}" + > + <packageset dir="${src}"/> + </javadoc> + </target> +</project> diff --git a/dev-java/jzlib/jzlib-1.0.3.ebuild b/dev-java/jzlib/jzlib-1.0.3.ebuild new file mode 100644 index 000000000000..c19601d919c7 --- /dev/null +++ b/dev-java/jzlib/jzlib-1.0.3.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jzlib/jzlib-1.0.3.ebuild,v 1.1 2004/02/14 04:42:26 strider Exp $ + +DESCRIPTION="JZlib is a re-implementation of zlib in pure Java." +HOMEPAGE="http://www.jcraft.com/jzlib/" +SRC_URI="http://www.jcraft.com/${PN}/${PN}-${PV}.tar.gz" + +LICENSE="jcraft" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="doc jikes" +RESTRICT="nomirror" + +DEPEND=">=virtual/jdk-1.4 + >=dev-java/ant-1.4 + jikes? ( >=dev-java/jikes-1.17 )" +RDEPEND=">=virtual/jdk-1.4" + +src_compile() { + cp ${FILESDIR}/jzlib_build.xml build.xml + mkdir src + mv com/ src/ + local myc + + if [ -n "`use jikes`" ] ; then + myc="${myc} -Dbuild.compiler=jikes" + fi + + ANT_OPTS=${myc} ant || die "Failed Compiling" +} + +src_install() { + mv dist/lib/jzlib-${PV}.jar dist/lib/jzlib.jar + dojar dist/lib/jzlib.jar || die "Failed Installing" + dodoc LICENSE.txt README ChangeLog + cp -r example ${D}/usr/share/doc/${PN}-${PV} +} diff --git a/dev-java/jzlib/metadata.xml b/dev-java/jzlib/metadata.xml new file mode 100644 index 000000000000..838c00a4a448 --- /dev/null +++ b/dev-java/jzlib/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +</pkgmetadata> |