summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-01-17 17:09:43 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-01-17 17:09:43 +0000
commit66b10d1043c1a7968a6efe43f6c3a8d9b7f58e17 (patch)
tree9d12345297a93c692d507ccf9faab0ae012606c0 /dev-java/xml-commons-resolver
parentInitial import. (Manifest recommit) (diff)
downloadgentoo-2-66b10d1043c1a7968a6efe43f6c3a8d9b7f58e17.tar.gz
gentoo-2-66b10d1043c1a7968a6efe43f6c3a8d9b7f58e17.tar.bz2
gentoo-2-66b10d1043c1a7968a6efe43f6c3a8d9b7f58e17.zip
added a build.xml file for ant, added source useflag, generall cleanups. fixes bug #78352.
(Portage version: 2.0.51-r12)
Diffstat (limited to 'dev-java/xml-commons-resolver')
-rw-r--r--dev-java/xml-commons-resolver/ChangeLog9
-rw-r--r--dev-java/xml-commons-resolver/files/xml-commons-resolver-1.1-build.xml60
-rw-r--r--dev-java/xml-commons-resolver/xml-commons-resolver-1.1.ebuild33
3 files changed, 92 insertions, 10 deletions
diff --git a/dev-java/xml-commons-resolver/ChangeLog b/dev-java/xml-commons-resolver/ChangeLog
index b7fbf9cc968a..8112c48d4f25 100644
--- a/dev-java/xml-commons-resolver/ChangeLog
+++ b/dev-java/xml-commons-resolver/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/xml-commons-resolver
-# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/xml-commons-resolver/ChangeLog,v 1.5 2004/11/30 21:44:59 swegener Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/xml-commons-resolver/ChangeLog,v 1.6 2005/01/17 17:09:43 luckyduck Exp $
+
+ 17 Jan 2005; Jan Brinkmann <luckyduck@gentoo.org>
+ +files/xml-commons-resolver-1.1-build.xml, xml-commons-resolver-1.1.ebuild:
+ added a build.xml file for ant, added source useflag, generall cleanups. fixes
+ bug #78352.
30 Nov 2004; Sven Wegener <swegener@gentoo.org>
xml-commons-resolver-1.1.ebuild:
diff --git a/dev-java/xml-commons-resolver/files/xml-commons-resolver-1.1-build.xml b/dev-java/xml-commons-resolver/files/xml-commons-resolver-1.1-build.xml
new file mode 100644
index 000000000000..fdf83478e6bf
--- /dev/null
+++ b/dev-java/xml-commons-resolver/files/xml-commons-resolver-1.1-build.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+
+<project name="xml-commons-resolver" default="jar">
+ <!-- some properties -->
+ <property name="src.dir" value="src" />
+ <property name="build.dir" value="build" />
+ <property name="docs.dir" value="docs" />
+ <property name="dist.dir" value="dist" />
+ <property name="lib.dir" value="lib" />
+ <property name="jarfile" value="${dist.dir}/${ant.project.name}.jar" />
+ <property name="target.jdk" value="1.3" />
+
+ <!-- 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.*"
+ 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}" />
+ <delete dir="${lib.dir}" />
+ </target>
+
+ <!-- zip the sources -->
+ <target name="sourcezip">
+ <zip destfile="${dist.dir}/${ant.project.name}-src.zip">
+ <zipfileset dir="${src.dir}" />
+ </zip>
+ </target>
+
+</project>
diff --git a/dev-java/xml-commons-resolver/xml-commons-resolver-1.1.ebuild b/dev-java/xml-commons-resolver/xml-commons-resolver-1.1.ebuild
index 5158225f6137..8d374340b544 100644
--- a/dev-java/xml-commons-resolver/xml-commons-resolver-1.1.ebuild
+++ b/dev-java/xml-commons-resolver/xml-commons-resolver-1.1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/xml-commons-resolver/xml-commons-resolver-1.1.ebuild,v 1.5 2004/11/30 21:44:59 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/xml-commons-resolver/xml-commons-resolver-1.1.ebuild,v 1.6 2005/01/17 17:09:43 luckyduck Exp $
inherit eutils java-pkg
@@ -9,18 +9,35 @@ HOMEPAGE="http://xml.apache.org/commons/"
SRC_URI="mirror://apache/xml/commons/${P}.tar.gz"
DEPEND=">=virtual/jdk-1.3
dev-java/ant"
+RDEPEND=">=virtual/jre-1.3"
LICENSE="Apache-1.1"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
-IUSE="doc"
+IUSE="doc source"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ cp ${FILESDIR}/${P}-build.xml ${S}/build.xml
+}
src_compile() {
- cd src
- find org -name "*.java" ${exclude} | xargs javac || die "Failed to compile"
- find org -name "*.class" | xargs jar cmf manifest.resolver ${PN}.jar
+ local antflags="jar"
+ use doc && antflags="${antflags} docs"
+ use source && antflags="${antflags} sourcezip"
+ ant ${antflags} || die "ant build failed"
}
src_install() {
- java-pkg_dojar src/${PN}.jar
- use doc && java-pkg_dohtml -r docs/ apidocs/
+ java-pkg_dojar dist/${PN}.jar
+
+ dodoc KEYS
+ use doc && java-pkg_dohtml -r docs/*
+
+ if use source; then
+ dodir /usr/share/doc/${PF}/source/
+ cp dist/${PN}-src.zip ${D}/usr/share/doc/${PF}/source/
+ fi
+
}