From 4894506310d4a32f043005bc241f2b07c198b0c0 Mon Sep 17 00:00:00 2001 From: Steve Arnold Date: Sat, 31 Oct 2009 02:11:19 +0000 Subject: New ebuild for Java annotations, required for the findbugs package. Package-Manager: portage-2.2_rc46/cvs/Linux x86_64 --- dev-java/jsr305/ChangeLog | 12 ++++++++ dev-java/jsr305/Manifest | 3 ++ dev-java/jsr305/jsr305-1.0.ebuild | 64 +++++++++++++++++++++++++++++++++++++++ dev-java/jsr305/metadata.xml | 5 +++ 4 files changed, 84 insertions(+) create mode 100644 dev-java/jsr305/ChangeLog create mode 100644 dev-java/jsr305/Manifest create mode 100644 dev-java/jsr305/jsr305-1.0.ebuild create mode 100644 dev-java/jsr305/metadata.xml (limited to 'dev-java/jsr305') diff --git a/dev-java/jsr305/ChangeLog b/dev-java/jsr305/ChangeLog new file mode 100644 index 000000000000..0a48722f34cb --- /dev/null +++ b/dev-java/jsr305/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for dev-java/jsr305 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jsr305/ChangeLog,v 1.1 2009/10/31 02:11:19 nerdboy Exp $ + +*jsr305-1.0 (31 Oct 2009) + + 31 Oct 2009; Steve Arnold +jsr305-1.0.ebuild, + +metadata.xml: + New ebuild for Java annotations, required for the findbugs byte-code + analyzer. Since there is no official release yet, this revision seems + like the most appropriate (and provides a consistent checkout). + diff --git a/dev-java/jsr305/Manifest b/dev-java/jsr305/Manifest new file mode 100644 index 000000000000..da93ba195591 --- /dev/null +++ b/dev-java/jsr305/Manifest @@ -0,0 +1,3 @@ +EBUILD jsr305-1.0.ebuild 1587 RMD160 7dd811721e2267080a201a02abc816d926e88711 SHA1 ff5f23d05ca4268d80dbb88dc1c50d6eaf2f1cc3 SHA256 ca6c1aec99848de689d4178487378202f26ab0aaca0bbcbc6e1d4e0c1ed3719d +MISC ChangeLog 529 RMD160 024ca98d192aed4ee60cfd3479670fa18b6191ee SHA1 6e04c9cc01fd36e36e254b36bbd640a457a9ec63 SHA256 e2db5bed0d240a085d01d1282ff1c3ede0ccd4b27df6220d679dc9802bc87396 +MISC metadata.xml 159 RMD160 7da5c733c224383ffe350605bc36721a3ff2536f SHA1 99c2655c7bbee2cbc8c79edb2d00d481d62faf95 SHA256 a4ced33e98b00e3a3f725c4c40ef8e76c338db53389465ef871105fbe6e8cbbb diff --git a/dev-java/jsr305/jsr305-1.0.ebuild b/dev-java/jsr305/jsr305-1.0.ebuild new file mode 100644 index 000000000000..40a9e3c6760a --- /dev/null +++ b/dev-java/jsr305/jsr305-1.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jsr305/jsr305-1.0.ebuild,v 1.1 2009/10/31 02:11:19 nerdboy Exp $ + +EAPI=2 +JAVA_PKG_IUSE="doc source" +inherit eutils java-pkg-2 java-ant-2 +MY_PN=jsr-305 +ESVN_REPO_URI="http://${MY_PN}.googlecode.com/svn/trunk" +inherit subversion +ESVN_FETCH_CMD="svn checkout -r 49" + +DESCRIPTION="Reference implementation for JSR 305: Annotations for Software Defect Detection in Java" +SRC_URI="" +HOMEPAGE="http://code.google.com/p/jsr-305/" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="examples" + +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + test? ( dev-java/ant-junit )" +RDEPEND=">=virtual/jre-1.5" + +src_compile() { + # create jar + cd ri + mkdir -p build/classes + ejavac -sourcepath src/main/java -d build/classes $(find src/main/java -name "*.java") \ + || die "Cannot compile sources" + mkdir dist + cd build/classes + jar -cvf "${S}"/ri/dist/${PN}.jar javax || die "Cannot create JAR" + + # generate javadoc + if use doc ; then + cd "${S}"/ri + mkdir javadoc + javadoc -d javadoc -sourcepath src/main/java -subpackages javax \ + || die "Javadoc creation failed" + fi +} + +src_install() { + cd ri + java-pkg_dojar dist/${PN}.jar + + if use examples; then + dodir /usr/share/doc/${PF}/examples/ + cp -r "${S}"/sampleUses/* "${D}"/usr/share/doc/${PF}/examples/ || die "Could not install examples" + fi + + if use source ; then + cd "${S}"/ri/src/main/java + java-pkg_dosrc javax + fi + + if use doc ; then + cd "${S}"/ri + java-pkg_dojavadoc javadoc + fi +} diff --git a/dev-java/jsr305/metadata.xml b/dev-java/jsr305/metadata.xml new file mode 100644 index 000000000000..250f2d1940ea --- /dev/null +++ b/dev-java/jsr305/metadata.xml @@ -0,0 +1,5 @@ + + + + java + -- cgit v1.2.3-65-gdbad