diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-12-04 17:20:19 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-12-04 17:20:19 +0000 |
commit | 35ac6760a46b4957ef6d192114c13b7533fa8a9b (patch) | |
tree | 804e07d322f4a4c4f567d232550b8c8c616a39ea /dev-java | |
parent | Version bump. (diff) | |
download | historical-35ac6760a46b4957ef6d192114c13b7533fa8a9b.tar.gz historical-35ac6760a46b4957ef6d192114c13b7533fa8a9b.tar.bz2 historical-35ac6760a46b4957ef6d192114c13b7533fa8a9b.zip |
Initial import. Fixes #72402. luckyduck rocks fur!
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/minml2/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/minml2/Manifest | 6 | ||||
-rw-r--r-- | dev-java/minml2/files/build.xml | 50 | ||||
-rw-r--r-- | dev-java/minml2/files/digest-minml2-0.3 | 1 | ||||
-rw-r--r-- | dev-java/minml2/files/minml-jikes.patch | 12 | ||||
-rw-r--r-- | dev-java/minml2/metadata.xml | 15 | ||||
-rw-r--r-- | dev-java/minml2/minml2-0.3.ebuild | 49 |
7 files changed, 141 insertions, 0 deletions
diff --git a/dev-java/minml2/ChangeLog b/dev-java/minml2/ChangeLog new file mode 100644 index 000000000000..55904d96edd0 --- /dev/null +++ b/dev-java/minml2/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for dev-java/minml2 +# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/minml2/ChangeLog,v 1.1 2004/12/04 17:20:19 karltk Exp $ + +*minml2-0.3 (04 Dec 2004) + + 04 Dec 2004; Karl Trygve Kalleberg <karltk@gentoo.org> minml2-0.3.ebuild: + Initial import. Ebuild submitted by Jan Brinkmann <luck@the-luckyduck.de>. diff --git a/dev-java/minml2/Manifest b/dev-java/minml2/Manifest new file mode 100644 index 000000000000..4684b6a1a7ab --- /dev/null +++ b/dev-java/minml2/Manifest @@ -0,0 +1,6 @@ +MD5 e98948d3266c66087ef2c8cba4fd794b minml2-0.3.ebuild 1091 +MD5 203bf128e0cd49b2222ad296275962e1 ChangeLog 383 +MD5 e5362c18b7bae59fc15bd157b4f80755 metadata.xml 469 +MD5 7f45a9a8d3e13b1876047c5a3a2d70a5 files/digest-minml2-0.3 58 +MD5 fcaa92dd091fb72282267483339fa361 files/build.xml 1331 +MD5 9d3438ab5f49f214d6d697d69e620fa6 files/minml-jikes.patch 556 diff --git a/dev-java/minml2/files/build.xml b/dev-java/minml2/files/build.xml new file mode 100644 index 000000000000..419c6e985d84 --- /dev/null +++ b/dev-java/minml2/files/build.xml @@ -0,0 +1,50 @@ +<?xml version="1.0"?> + +<project name="minml2" default="jar"> + <!-- some properties --> + <property name="src.dir" value="." /> + <property name="build.dir" value="build" /> + <property name="docs.dir" value="docs" /> + <property name="dist.dir" value="dist" /> + <property name="jarfile" value="${dist.dir}/minml2.jar" /> + <property name="target.jdk" value="1.4" /> + + <!-- init --> + <target name="init"> + <mkdir dir="${dist.dir}" /> + <mkdir dir="${build.dir}" /> + <mkdir dir="${docs.dir}" /> + </target> + + <!-- compile everything --> + <target name="compile" depends="init"> + <mkdir dir="${build.dir}" /> + <javac srcdir="${src.dir}" + destdir="${build.dir}" + source="${target.jdk}" + target="${target.jdk}" /> + </target> + + <!-- build the jar file --> + <target name="jar" depends="compile"> + <jar jarfile="${jarfile}" basedir="${build.dir}" /> + </target> + + <!-- generate javadocs --> + <target name="docs" depends="init"> + <javadoc sourcepath="${src.dir}" + packagenames="org.*, uk.*" + destdir="${docs.dir}" + author="true" + version="true" + use="true" + windowtitle="${ant.project.name} API" /> + </target> + + <!-- clean up --> + <target name="clean"> + <delete dir="${build.dir}" /> + <delete dir="${docs.dir}" /> + <delete dir="${dist.dir}" /> + </target> +</project> diff --git a/dev-java/minml2/files/digest-minml2-0.3 b/dev-java/minml2/files/digest-minml2-0.3 new file mode 100644 index 000000000000..986a83026d4a --- /dev/null +++ b/dev-java/minml2/files/digest-minml2-0.3 @@ -0,0 +1 @@ +MD5 a18993d02844870ae97b78f691495db4 MinML2-0.3.zip 69113 diff --git a/dev-java/minml2/files/minml-jikes.patch b/dev-java/minml2/files/minml-jikes.patch new file mode 100644 index 000000000000..27af8db3da6e --- /dev/null +++ b/dev-java/minml2/files/minml-jikes.patch @@ -0,0 +1,12 @@ +diff -uprN MinML2.release.orig/uk/co/wilson/xml/MinML2.java MinML2.release/uk/co/wilson/xml/MinML2.java +--- MinML2.release.orig/uk/co/wilson/xml/MinML2.java 2004-11-23 17:31:12.978874272 +0100 ++++ MinML2.release/uk/co/wilson/xml/MinML2.java 2004-11-23 17:34:15.487128800 +0100 +@@ -279,7 +279,7 @@ public class MinML2 implements XMLReader + } + + final String elementLocalName; +- final String uri; ++ String uri; + final int colonIndex = elementName.indexOf(':'); + + if (colonIndex != -1) { diff --git a/dev-java/minml2/metadata.xml b/dev-java/minml2/metadata.xml new file mode 100644 index 000000000000..32dec67eae71 --- /dev/null +++ b/dev-java/minml2/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> +<herd>java</herd> + +<longdescription> + +MinML is a minimal XML parser suited to run on small embedded systems (~512Kb of +RAM). It will read DTDs, but they are ignored. It supports mixed content, +attributes, empty elements, entity references (&, etc), character references +(©, etc), CDATA sections . + +</longdescription> +</pkgmetadata> diff --git a/dev-java/minml2/minml2-0.3.ebuild b/dev-java/minml2/minml2-0.3.ebuild new file mode 100644 index 000000000000..397e8c0cab3d --- /dev/null +++ b/dev-java/minml2/minml2-0.3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/minml2/minml2-0.3.ebuild,v 1.1 2004/12/04 17:20:19 karltk Exp $ + +inherit eutils java-pkg + +DESCRIPTION="Small footprint namespace aware XML parser" +SRC_URI="http://www.wilson.co.uk/xml/MinML2-${PV}.zip" +HOMEPAGE="http://wilson.co.uk/xml/minml.htm" +LICENSE="BSD" +SLOT="0.3" +KEYWORDS="~x86 ~amd64" +IUSE="doc jikes" +DEPEND=">=virtual/jdk-1.3 + jikes? ( >=dev-java/jikes-1.21 ) + >=dev-java/ant-core-1.4 + >=app-arch/unzip-5.50-r1" +RDEPEND=">=virtual/jre-1.3" + +S=${WORKDIR}/MinML2.release + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/minml-jikes.patch + + cp ${FILESDIR}/build.xml . +} + +src_compile() { + local antflags="jar" + if use doc; then + antflags="${antflags} docs" + fi + if use jikes; then + antflags="${antflags} -Dbuild.compiler=jikes" + fi + ant ${antflags} || die "failed to build" +} + +src_install() { + java-pkg_dojar dist/minml2.jar + + dodoc history.txt licence.txt readme.txt + if use doc; then + java-pkg_dohtml -r docs/* + fi +} |