From 54c9e3d82569f629b0e09b1c3c884fb4909aa463 Mon Sep 17 00:00:00 2001 From: Joshua Nichols Date: Mon, 5 Dec 2005 03:35:03 +0000 Subject: Initial commit (bug #97008). Package-Manager: portage-2.0.53_rc7 --- dev-java/commons-attributes/ChangeLog | 11 ++++ dev-java/commons-attributes/Manifest | 16 ++++++ .../commons-attributes-2.1.ebuild | 58 ++++++++++++++++++++++ .../commons-attributes/files/anttasks.properties | 18 +++++++ .../files/commons-attributes-2.1-gentoo.patch | 32 ++++++++++++ .../files/digest-commons-attributes-2.1 | 1 + dev-java/commons-attributes/metadata.xml | 5 ++ 7 files changed, 141 insertions(+) create mode 100644 dev-java/commons-attributes/ChangeLog create mode 100644 dev-java/commons-attributes/Manifest create mode 100644 dev-java/commons-attributes/commons-attributes-2.1.ebuild create mode 100644 dev-java/commons-attributes/files/anttasks.properties create mode 100644 dev-java/commons-attributes/files/commons-attributes-2.1-gentoo.patch create mode 100644 dev-java/commons-attributes/files/digest-commons-attributes-2.1 create mode 100644 dev-java/commons-attributes/metadata.xml (limited to 'dev-java') diff --git a/dev-java/commons-attributes/ChangeLog b/dev-java/commons-attributes/ChangeLog new file mode 100644 index 000000000000..616ff5bd5fcf --- /dev/null +++ b/dev-java/commons-attributes/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-java/commons-attributes +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-attributes/ChangeLog,v 1.1 2005/12/05 03:35:03 nichoj Exp $ + +*commons-attributes-2.1 (05 Dec 2005) + + 05 Dec 2005; Joshua Nichols + +files/commons-attributes-2.1-gentoo.patch, +files/anttasks.properties, + +metadata.xml, +commons-attributes-2.1.ebuild: + Initial commit (bug #97008). + diff --git a/dev-java/commons-attributes/Manifest b/dev-java/commons-attributes/Manifest new file mode 100644 index 000000000000..eb900f5bf629 --- /dev/null +++ b/dev-java/commons-attributes/Manifest @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 fb9be42044924f2208bc33ed64d34475 ChangeLog 471 +MD5 556c76a3982d832711f40daa0c798a5c commons-attributes-2.1.ebuild 1626 +MD5 afa7033a8f1ac9174d37628b7734a1f8 files/anttasks.properties 856 +MD5 95c743163c69489b7e543bd18593ce3c files/commons-attributes-2.1-gentoo.patch 1651 +MD5 02d5609bcdd04538df28834127b4bf8d files/digest-commons-attributes-2.1 74 +MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.2 (GNU/Linux) + +iD8DBQFDk7V8ndWRXhKOboURAiELAJ9bSLTQNGYrhZZk4H/N6sCmt3VDyACg0hbU +RM8A5UZJufbH6tRmRv5auxY= +=cMxt +-----END PGP SIGNATURE----- diff --git a/dev-java/commons-attributes/commons-attributes-2.1.ebuild b/dev-java/commons-attributes/commons-attributes-2.1.ebuild new file mode 100644 index 000000000000..1b6c88d41ec3 --- /dev/null +++ b/dev-java/commons-attributes/commons-attributes-2.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-attributes/commons-attributes-2.1.ebuild,v 1.1 2005/12/05 03:35:03 nichoj Exp $ + +inherit eutils java-pkg + +DESCRIPTION="Commons Attributes enables Java programmers to use C#/.Net-style attributes in their code." +HOMEPAGE="http://jakarta.apache.org/commons/attributes/" +SRC_URI="mirror://apache/jakarta/commons/attributes/source/${P}-src.tgz" + +LICENSE="Apache-2.0" +SLOT="2" +KEYWORDS="~amd64 ~x86" +IUSE="doc jikes source" + +# TODO determine jvm version requirements +DEPEND=">=virtual/jdk-1.4 + dev-java/ant-core + jikes? (dev-java/jikes) + dev-java/xjavadoc" +RDEPEND=">=virtual/jre-1.4 + dev-java/xjavadoc" + +src_unpack() { + mkdir ${S} + cd ${S} + unpack ${A} + + epatch ${FILESDIR}/${P}-gentoo.patch + + mkdir -p target/classes/org/apache/commons/attributes + # This file is missing from upstream's release + # and is needed to use the ant task. + cp ${FILESDIR}/anttasks.properties target/classes/org/apache/commons/attributes/ + + mkdir -p target/lib + cd target/lib + java-pkg_jar-from xjavadoc +} + +src_compile() { + local antflags="jar -Dnoget=true" + use jikes && antflags="-Dbuild.compiler=jikes ${antflags}" + use doc && antflags="${antflags} javadoc" + + ant ${antflags} || die "Compilation failed" +} + +src_install() { + java-pkg_newjar target/${PN}-api-${PV}.jar ${PN}-api.jar + java-pkg_newjar target/${PN}-compiler-${PV}.jar ${PN}-compiler.jar + + dodoc NOTICE.txt RELEASE.txt + dohtml README.html + + use doc && java-pkg_dohtml -r dist/docs/api + use source && java-pkg_dosrc */src/java/* +} diff --git a/dev-java/commons-attributes/files/anttasks.properties b/dev-java/commons-attributes/files/anttasks.properties new file mode 100644 index 000000000000..271c87b9240d --- /dev/null +++ b/dev-java/commons-attributes/files/anttasks.properties @@ -0,0 +1,18 @@ +# +# Copyright 2003-2004 The Apache Software Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +attribute-compiler=org.apache.commons.attributes.compiler.AttributeCompiler +attribute-indexer=org.apache.commons.attributes.compiler.AttributeIndexer +attribute-validator=org.apache.commons.attributes.validation.AttributeValidatorTask \ No newline at end of file diff --git a/dev-java/commons-attributes/files/commons-attributes-2.1-gentoo.patch b/dev-java/commons-attributes/files/commons-attributes-2.1-gentoo.patch new file mode 100644 index 000000000000..b4de400cb3a1 --- /dev/null +++ b/dev-java/commons-attributes/files/commons-attributes-2.1-gentoo.patch @@ -0,0 +1,32 @@ +Only in commons-attributes-patched/: .build.xml.swo +Only in commons-attributes-patched/: .build.xml.swp +diff -ru commons-attributes/build.xml commons-attributes-patched/build.xml +--- commons-attributes/build.xml 2004-08-01 16:18:27.000000000 -0400 ++++ commons-attributes-patched/build.xml 2005-06-24 21:31:02.000000000 -0400 +@@ -86,6 +86,9 @@ + + + ++ ++ ++ + + + +@@ -100,7 +103,7 @@ + + + +- ++ + + + +@@ -162,4 +167,4 @@ + + + +- +\ No newline at end of file ++ +Only in commons-attributes-patched/: target diff --git a/dev-java/commons-attributes/files/digest-commons-attributes-2.1 b/dev-java/commons-attributes/files/digest-commons-attributes-2.1 new file mode 100644 index 000000000000..a65504200934 --- /dev/null +++ b/dev-java/commons-attributes/files/digest-commons-attributes-2.1 @@ -0,0 +1 @@ +MD5 3ee125a9f06ae3462f1d5ac58f7c1648 commons-attributes-2.1-src.tgz 89259 diff --git a/dev-java/commons-attributes/metadata.xml b/dev-java/commons-attributes/metadata.xml new file mode 100644 index 000000000000..838c00a4a448 --- /dev/null +++ b/dev-java/commons-attributes/metadata.xml @@ -0,0 +1,5 @@ + + + +java + -- cgit v1.2.3-65-gdbad