diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2005-01-05 16:46:35 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2005-01-05 16:46:35 +0000 |
commit | 4f5f5495e324868f5899a7688285676ae14b6488 (patch) | |
tree | 02c1b99a31d9bc6e0caa81fd70cb5880a159ad11 /dev-java/commons-discovery | |
parent | Marked x86 stable for bug #74069. (Manifest recommit) (diff) | |
download | gentoo-2-4f5f5495e324868f5899a7688285676ae14b6488.tar.gz gentoo-2-4f5f5495e324868f5899a7688285676ae14b6488.tar.bz2 gentoo-2-4f5f5495e324868f5899a7688285676ae14b6488.zip |
Updated ebuild by Vibhav Garg <vibhavgarg@gmail.com>. Fixes #70845.
Diffstat (limited to 'dev-java/commons-discovery')
4 files changed, 131 insertions, 1 deletions
diff --git a/dev-java/commons-discovery/ChangeLog b/dev-java/commons-discovery/ChangeLog index a4b17862f1b7..265c10385627 100644 --- a/dev-java/commons-discovery/ChangeLog +++ b/dev-java/commons-discovery/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-java/commons-discovery # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-discovery/ChangeLog,v 1.11 2005/01/01 18:16:43 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-discovery/ChangeLog,v 1.12 2005/01/05 16:46:35 karltk Exp $ + +*commons-discovery-0.2-r2 (05 Jan 2005) + + 05 Jan 2005; Karl Trygve Kalleberg <karltk@gentoo.org> + +files/commons-discovery-0.2-gentoo.diff, + +commons-discovery-0.2-r2.ebuild: + Updated ebuild by Vibhav Garg <vibhavgarg@gmail.com>. Fixes #70845. 20 Oct 2004; Dylan Carlson <absinthe@gentoo.org> commons-discovery-0.2-r1.ebuild: diff --git a/dev-java/commons-discovery/commons-discovery-0.2-r2.ebuild b/dev-java/commons-discovery/commons-discovery-0.2-r2.ebuild new file mode 100644 index 000000000000..a65f768a139f --- /dev/null +++ b/dev-java/commons-discovery/commons-discovery-0.2-r2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-discovery/commons-discovery-0.2-r2.ebuild,v 1.1 2005/01/05 16:46:35 karltk Exp $ + +inherit java-pkg eutils +DESCRIPTION=" The Discovery Component is about discovering, or finding, implementations for pluggable interfaces. It provides facilities intantiating classes in general, and for lifecycle management of singleton (factory) classes." +HOMEPAGE="http://jakarta.apache.org/commons/discovery" +SRC_URI="mirror://apache/jakarta/commons/discovery/source/${PN}-${PV}-src.tar.gz" +DEPEND=">=dev-java/ant-core-1.5.4-r2 + jikes? ( >=dev-java/jikes-1.21 ) + junit? ( >=dev-java/junit-3.8 >=virtual/jdk-1.4 ) + dev-java/commons-logging + !junit? ( >=virtual/jdk-1.3 ) " +RDEPEND=">=virtual/jdk-1.3" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~amd64" +IUSE="junit jikes doc" + +S="${WORKDIR}/${P}-src/discovery" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PN}-${PV}-gentoo.diff + mkdir -p target/lib + cd target/lib + java-pkg_jar-from junit junit.jar || die "Could not link to junit" + java-pkg_jar-from commons-logging || die "Could not link to commons-logging" +} + +src_compile() { + local antflags="dist" + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + use doc && antflags="${antflags} javadoc" + use junit && antflags="${antflags} test.discovery" + ant ${antflags} || die "compile problem" +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + + dodoc RELEASE-NOTES.txt + dohtml PROPOSAL.html STATUS.html usersguide.html +} diff --git a/dev-java/commons-discovery/files/commons-discovery-0.2-gentoo.diff b/dev-java/commons-discovery/files/commons-discovery-0.2-gentoo.diff new file mode 100644 index 000000000000..bb9453934d5d --- /dev/null +++ b/dev-java/commons-discovery/files/commons-discovery-0.2-gentoo.diff @@ -0,0 +1,77 @@ +*** build.xml.orig Wed Nov 10 11:46:21 2004 +--- build.xml Wed Nov 10 12:49:12 2004 +*************** +*** 14,26 **** + <property file="../build.properties"/> <!-- Commons local -->
+ <property file="${user.home}/build.properties"/> <!-- User local -->
+
+
+ <!-- ========== External Dependencies ===================================== -->
+
+
+ <!-- The directories corresponding to your necessary dependencies -->
+! <property name="junit.jar" value="../../junit3.7/junit.jar"/>
+! <property name="logger.jar" value="../../jakarta-commons/logging/target/commons-logging.jar"/>
+
+
+ <!-- ========== Component Declarations ==================================== -->
+--- 14,28 ---- + <property file="../build.properties"/> <!-- Commons local -->
+ <property file="${user.home}/build.properties"/> <!-- User local -->
+
++ <!-- The base directory for compilation targets -->
++ <property name="build.home" value="target"/>
+
+ <!-- ========== External Dependencies ===================================== -->
+
+
+ <!-- The directories corresponding to your necessary dependencies -->
+! <property name="junit.jar" value="${build.home}/lib/junit.jar"/>
+! <property name="logger.jar" value="${build.home}/lib/commons-logging.jar"/>
+
+
+ <!-- ========== Component Declarations ==================================== -->
+*************** +*** 38,45 **** + <!-- The current version number of this component -->
+ <property name="component.version" value="0.2"/>
+
+- <!-- The base directory for compilation targets -->
+- <property name="build.home" value="target"/>
+
+ <!-- The base directory for component configuration files -->
+ <property name="conf.home" value="src/conf"/>
+--- 40,45 ---- +*************** +*** 116,121 **** +--- 116,122 ---- +
+
+ <target name="compile" depends="prepare" description="Compile shareable components">
++
+ <javac srcdir="${source.home}"
+ destdir="${build.home}/classes"
+ debug="${compile.debug}"
+*************** +*** 163,172 **** + description="Create binary distribution">
+ <!-- TODO: top level files like LICENSE and README -->
+ <mkdir dir="${dist.home}"/>
+! <copy file="../LICENSE"
+! todir="${dist.home}"/>
+ <mkdir dir="${build.home}/classes/META-INF"/>
+! <copy file="../LICENSE"
+ tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
+ <jar jarfile="${dist.home}/commons-${component.name}.jar"
+ basedir="${build.home}/classes"
+--- 164,173 ---- + description="Create binary distribution">
+ <!-- TODO: top level files like LICENSE and README -->
+ <mkdir dir="${dist.home}"/>
+! <!--<copy file="LICENSE"
+! todir="${dist.home}"/>-->
+ <mkdir dir="${build.home}/classes/META-INF"/>
+! <copy file="LICENSE.txt"
+ tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
+ <jar jarfile="${dist.home}/commons-${component.name}.jar"
+ basedir="${build.home}/classes"
diff --git a/dev-java/commons-discovery/files/digest-commons-discovery-0.2-r2 b/dev-java/commons-discovery/files/digest-commons-discovery-0.2-r2 new file mode 100644 index 000000000000..2db042643727 --- /dev/null +++ b/dev-java/commons-discovery/files/digest-commons-discovery-0.2-r2 @@ -0,0 +1 @@ +MD5 57968a150ea9b7158ac0e995c8f24080 commons-discovery-0.2-src.tar.gz 72783 |