summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-01-22 17:46:27 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-01-22 17:46:27 +0000
commit88870468decf80fe6cb994562646d5d60f639b76 (patch)
tree71e6b25ca33ab08bea3664edcb601918488bbf1f /dev-java/dtdparser
parentadded source useflag to dev-java/dtdparser (diff)
downloadgentoo-2-88870468decf80fe6cb994562646d5d60f639b76.tar.gz
gentoo-2-88870468decf80fe6cb994562646d5d60f639b76.tar.bz2
gentoo-2-88870468decf80fe6cb994562646d5d60f639b76.zip
Initial import. Fixes #75529
(Portage version: 2.0.51-r14)
Diffstat (limited to 'dev-java/dtdparser')
-rw-r--r--dev-java/dtdparser/ChangeLog10
-rw-r--r--dev-java/dtdparser/Manifest3
-rw-r--r--dev-java/dtdparser/dtdparser-1.21.ebuild52
-rw-r--r--dev-java/dtdparser/files/buildfile.patch36
-rw-r--r--dev-java/dtdparser/files/digest-dtdparser-1.211
-rw-r--r--dev-java/dtdparser/metadata.xml5
6 files changed, 107 insertions, 0 deletions
diff --git a/dev-java/dtdparser/ChangeLog b/dev-java/dtdparser/ChangeLog
new file mode 100644
index 000000000000..244acb41c64b
--- /dev/null
+++ b/dev-java/dtdparser/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-java/dtdparser
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/dtdparser/ChangeLog,v 1.1 2005/01/22 17:46:27 luckyduck Exp $
+
+*dtdparser-1.21 (22 Jan 2005)
+
+ 22 Jan 2005; Jan Brinkmann <luckyduck@gentoo.org> +metadata.xml,
+ +files/buildfile.patch, +dtdparser-1.21.ebuild:
+ Initial import. Fixes #75529
+
diff --git a/dev-java/dtdparser/Manifest b/dev-java/dtdparser/Manifest
new file mode 100644
index 000000000000..548752a7b473
--- /dev/null
+++ b/dev-java/dtdparser/Manifest
@@ -0,0 +1,3 @@
+MD5 78427f2fed7bf1c4fdc9cee4b34dc323 dtdparser-1.21.ebuild 1106
+MD5 977b4c772bc01096ee71c8df9d288eb9 files/buildfile.patch 1180
+MD5 f9c01d5670a79a1b953e4666b76dd579 files/digest-dtdparser-1.21 63
diff --git a/dev-java/dtdparser/dtdparser-1.21.ebuild b/dev-java/dtdparser/dtdparser-1.21.ebuild
new file mode 100644
index 000000000000..1921c35e822b
--- /dev/null
+++ b/dev-java/dtdparser/dtdparser-1.21.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/dtdparser/dtdparser-1.21.ebuild,v 1.1 2005/01/22 17:46:27 luckyduck Exp $
+
+inherit eutils java-pkg
+
+DESCRIPTION="A Java DTD Parser"
+SRC_URI="http://www.wutka.com/download/${P}.tgz"
+HOMEPAGE="http://www.wutka.com/dtdparser.html"
+LICENSE="LGPL-2.1 Apache-1.1"
+SLOT="${PV}"
+KEYWORDS="~x86 ~amd64"
+IUSE="doc jikes source"
+DEPEND=">=virtual/jdk-1.3
+ jikes? ( >=dev-java/jikes-1.21 )
+ >=dev-java/ant-core-1.4"
+RDEPEND=">=virtual/jdk-1.3"
+
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/buildfile.patch
+}
+
+src_compile() {
+ local antflags="build"
+ if use doc; then
+ antflags="${antflags} createdoc"
+ fi
+ if use jikes; then
+ antflags="${antflags} -Dbuild.compiler=jikes"
+ fi
+ if use source; then
+ antflags="${antflags} sourcezip"
+ fi
+ ant ${antflags} || die "failed to build"
+}
+
+src_install() {
+ java-pkg_dojar dist/dtdparser.jar
+ dodoc ASL_LICENSE CHANGES LICENSE LICENSE.INFO README
+
+ if use doc; then
+ java-pkg_dohtml -r doc/*
+ fi
+ if use source; then
+ dodir /usr/share/doc/${PF}/source
+ cp dist/${PN}-src.zip ${D}usr/share/doc/${PF}/source
+ fi
+}
diff --git a/dev-java/dtdparser/files/buildfile.patch b/dev-java/dtdparser/files/buildfile.patch
new file mode 100644
index 000000000000..da5c253ed3a3
--- /dev/null
+++ b/dev-java/dtdparser/files/buildfile.patch
@@ -0,0 +1,36 @@
+diff -uprN dtdparser-1.21.old/build.xml dtdparser-1.21/build.xml
+--- dtdparser-1.21.old/build.xml 2002-07-29 14:06:51.000000000 +0200
++++ dtdparser-1.21/build.xml 2004-12-24 13:13:02.626325296 +0100
+@@ -12,7 +12,7 @@
+ <property name="src" value="source"/>
+ <property file="product.properties"/>
+ <property name="prod.distbase" value="${prod.name}-${prod.version.major}.${prod.version.minor}"/>
+- <property name="prod.jar" value="${prod.distbase}/${prod.name}${prod.version.major}${prod.version.minor}.jar"/>
++ <property name="prod.jar" value="${prod.distbase}/${prod.name}.jar"/>
+ <property name="doc" value="${prod.distbase}/doc"/>
+
+ <!--
+@@ -40,8 +40,11 @@
+ </target>
+
+ <target name="compile">
+- <javac srcdir="${src}" destdir="${lib}"
+- deprecation="on">
++ <javac srcdir="${src}"
++ destdir="${lib}"
++ deprecation="off"
++ source="1.3"
++ target="1.3">
+ <classpath refid="default.classpath"/>
+ </javac>
+ </target>
+@@ -94,4 +97,9 @@
+ <delete dir="${lib}"/>
+ </target>
+
++ <target name="sourcezip">
++ <zip destfile="${dist}/dtdparser-src.zip">
++ <zipfileset dir="${src}" />
++ </zip>
++ </target>
+ </project>
diff --git a/dev-java/dtdparser/files/digest-dtdparser-1.21 b/dev-java/dtdparser/files/digest-dtdparser-1.21
new file mode 100644
index 000000000000..1f17106b3ea2
--- /dev/null
+++ b/dev-java/dtdparser/files/digest-dtdparser-1.21
@@ -0,0 +1 @@
+MD5 5b14ede6eb13656ff2918534ed2d0437 dtdparser-1.21.tgz 138335
diff --git a/dev-java/dtdparser/metadata.xml b/dev-java/dtdparser/metadata.xml
new file mode 100644
index 000000000000..838c00a4a448
--- /dev/null
+++ b/dev-java/dtdparser/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>