diff options
Diffstat (limited to 'dev-java/jisp')
-rw-r--r-- | dev-java/jisp/Manifest | 1 | ||||
-rw-r--r-- | dev-java/jisp/files/build-2.5.1.xml | 55 | ||||
-rw-r--r-- | dev-java/jisp/files/jisp-2.5.1-java15.patch | 46 | ||||
-rw-r--r-- | dev-java/jisp/jisp-2.5.1-r2.ebuild | 43 | ||||
-rw-r--r-- | dev-java/jisp/jisp-2.5.1-r3.ebuild | 36 | ||||
-rw-r--r-- | dev-java/jisp/metadata.xml | 5 |
6 files changed, 186 insertions, 0 deletions
diff --git a/dev-java/jisp/Manifest b/dev-java/jisp/Manifest new file mode 100644 index 000000000000..9fed833d76e9 --- /dev/null +++ b/dev-java/jisp/Manifest @@ -0,0 +1 @@ +DIST jisp-2.5.1-source.tar.gz 63282 SHA256 fc45285b818f69aa92cab72f8a87a070eba9e8ee2c199b9d0e170fb2cf7ab7ba SHA512 b82bea547e6725e37285a5d332daeb8ecf300a6f69004845a308a3ee87f143e7a7e8be34925fd288523e36eea64479010915306ac33871b3bf4310c54a1c26d0 WHIRLPOOL 850f0b617066c30f347ff2d5c0e78b423be3ef062bd481f5610f43774a64421df7ca59613b30deceb152b055479b6392a9474d82094f25acdaa4ca4dc6df21af diff --git a/dev-java/jisp/files/build-2.5.1.xml b/dev-java/jisp/files/build-2.5.1.xml new file mode 100644 index 000000000000..1b8684e5d786 --- /dev/null +++ b/dev-java/jisp/files/build-2.5.1.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--- + @author: Saleem Abdulrasool <compnerd@gentoo.org> + @date: 5/9/2005 + @revision: 1.0_alpha + + @notes: Call using the following: ant -f build.xml -Dproject.name=${project name} -Dpackage.name=${package name} +--> + +<project name="Gentoo_Builder" default="jar" basedir="."> + <property name="src" value="src"/> + <property name="build" value="build"/> + <property name="dist" value="dist"/> + + <property name="pkg" value="${package.name}"/> + <property name="jar" value="${project.name}.jar"/> + + <!-- Override any defined properties --> + <property file="build.properties"/> + + <target name="init"> + <tstamp/> + <mkdir dir="${build}"/> + <mkdir dir="${dist}"/> + <mkdir dir="${dist}/doc"/> + </target> + + <target name="compile" depends="init"> + <javac srcdir="${src}" destdir="${build}" classpath="${classpath}"/> + </target> + + <target name="manifest" depends="init"> + <manifest file="${build}/MANIFEST.MF" mode="update"> + <attribute name="Built-By" value="Gentoo Portage"/> + </manifest> + </target> + + <target name="jar" depends="compile,manifest"> + <jar jarfile="${dist}/${jar}" manifest="${build}/MANIFEST.MF"> + <fileset dir="${build}"/> + <fileset dir="." includes="svfl.txt"/> + </jar> + </target> + + <target name="javadoc" depends="compile"> + <javadoc destdir="${dist}/doc/api"> + <fileset dir="${src}"/> + </javadoc> + </target> + + <target name="clean"> + <delete dir="${build}"/> + <delete dir="${dist}"/> + </target> +</project> diff --git a/dev-java/jisp/files/jisp-2.5.1-java15.patch b/dev-java/jisp/files/jisp-2.5.1-java15.patch new file mode 100644 index 000000000000..cfc0b7e2c93e --- /dev/null +++ b/dev-java/jisp/files/jisp-2.5.1-java15.patch @@ -0,0 +1,46 @@ +diff -ru jisp-2.5.1/com/coyotegulch/jisp/SerialObjectOutputStream.java jisp-2.5.1-patched/com/coyotegulch/jisp/SerialObjectOutputStream.java +--- jisp-2.5.1/com/coyotegulch/jisp/SerialObjectOutputStream.java 2003-03-27 13:02:19.000000000 -0500 ++++ jisp-2.5.1-patched/com/coyotegulch/jisp/SerialObjectOutputStream.java 2005-11-06 15:24:33.000000000 -0500 +@@ -83,11 +83,11 @@ + // Check if we have a list of m_buffers
+ if (m_buffers != null)
+ {
+- Iterator enum = m_buffers.iterator();
++ Iterator i = m_buffers.iterator();
+
+- while (enum.hasNext())
++ while (i.hasNext())
+ {
+- byte[] bytes = (byte[]) enum.next();
++ byte[] bytes = (byte[]) i.next();
+ out.write(bytes, 0, m_blockSize);
+ }
+ }
+@@ -101,10 +101,10 @@ + // Check if we have a list of m_buffers
+ if (m_buffers != null)
+ {
+- Iterator enum = m_buffers.iterator();
+- while (enum.hasNext())
++ Iterator i = m_buffers.iterator();
++ while (i.hasNext())
+ {
+- byte[] bytes = (byte[]) enum.next();
++ byte[] bytes = (byte[]) i.next();
+ out.write(bytes, 0, m_blockSize);
+ }
+ }
+@@ -126,10 +126,10 @@ + int pos = 0;
+ if (m_buffers != null)
+ {
+- Iterator enum = m_buffers.iterator();
+- while (enum.hasNext())
++ Iterator i = m_buffers.iterator();
++ while (i.hasNext())
+ {
+- byte[] bytes = (byte[]) enum.next();
++ byte[] bytes = (byte[]) i.next();
+ System.arraycopy(bytes,0,data,pos,m_blockSize);
+ pos+=m_blockSize;
+ }
diff --git a/dev-java/jisp/jisp-2.5.1-r2.ebuild b/dev-java/jisp/jisp-2.5.1-r2.ebuild new file mode 100644 index 000000000000..602a02f6adb3 --- /dev/null +++ b/dev-java/jisp/jisp-2.5.1-r2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit java-pkg-2 java-ant-2 eutils + +DESCRIPTION="Java Indexed Serialization Package: A small, embedded database engine written in Pure Java" +HOMEPAGE="http://www.coyotegulch.com/products/jisp/" + +# TODO contact upstream about hosting jisp-2.5 on their site. +# They only maintain 3.0 at the moment +# This tarball is from jpackage's jisp2 source rpm +SRC_URI="http://gentooexperimental.org/distfiles/${P}-source.tar.gz" + +LICENSE="SVFL" +SLOT="2.5" +KEYWORDS="amd64 ppc x86" +IUSE="doc" + +DEPEND=">=virtual/jdk-1.4 + dev-java/ant-core" +RDEPEND=">=virtual/jre-1.4" + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/${P}-java15.patch + + mkdir src + mv com src + cp ${FILESDIR}/build-${PV}.xml build.xml +} + +src_compile() { + eant jar -Dproject.name=${PN} $(use_doc) +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + + use doc && java-pkg_dohtml -r dist/doc/api +} diff --git a/dev-java/jisp/jisp-2.5.1-r3.ebuild b/dev-java/jisp/jisp-2.5.1-r3.ebuild new file mode 100644 index 000000000000..48f0a2ce9b69 --- /dev/null +++ b/dev-java/jisp/jisp-2.5.1-r3.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple eutils + +DESCRIPTION="Java Indexed Serialization Package: A small, embedded database engine written in Pure Java" +HOMEPAGE="http://www.coyotegulch.com/products/jisp/" + +# TODO contact upstream about hosting jisp-2.5 on their site. +# They only maintain 3.0 at the moment +# This tarball is from jpackage's jisp2 source rpm +SRC_URI="http://gentooexperimental.org/distfiles/${P}-source.tar.gz" + +LICENSE="SVFL" +SLOT="2.5" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND=">=virtual/jdk-1.4" +RDEPEND=">=virtual/jre-1.4" + +S="${WORKDIR}/${P}" + +JAVA_SRC_DIR="src" + +java_prepare() { + epatch "${FILESDIR}"/${P}-java15.patch + + mkdir src || die + mv com src || die +} diff --git a/dev-java/jisp/metadata.xml b/dev-java/jisp/metadata.xml new file mode 100644 index 000000000000..250f2d1940ea --- /dev/null +++ b/dev-java/jisp/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> |