diff options
author | Steve Arnold <nerdboy@gentoo.org> | 2011-04-10 17:04:12 +0000 |
---|---|---|
committer | Steve Arnold <nerdboy@gentoo.org> | 2011-04-10 17:04:12 +0000 |
commit | c79c43ed2116fc7bba50c2567fd78a9ca21649e8 (patch) | |
tree | b3af4ba09ad977c78a4de7dcda1a4b077211bc56 /dev-java/jformatstring | |
parent | Remove useless libtool archive wrt #362889 by Cesko Voeten. USE="static-libs". (diff) | |
download | gentoo-2-c79c43ed2116fc7bba50c2567fd78a9ca21649e8.tar.gz gentoo-2-c79c43ed2116fc7bba50c2567fd78a9ca21649e8.tar.bz2 gentoo-2-c79c43ed2116fc7bba50c2567fd78a9ca21649e8.zip |
New ebuild; required dependency for FindBugs.
(Portage version: 2.1.9.45/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/jformatstring')
-rw-r--r-- | dev-java/jformatstring/ChangeLog | 12 | ||||
-rw-r--r-- | dev-java/jformatstring/jformatstring-0.9.ebuild | 63 | ||||
-rw-r--r-- | dev-java/jformatstring/metadata.xml | 5 |
3 files changed, 80 insertions, 0 deletions
diff --git a/dev-java/jformatstring/ChangeLog b/dev-java/jformatstring/ChangeLog new file mode 100644 index 000000000000..22d5d54041de --- /dev/null +++ b/dev-java/jformatstring/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for dev-java/jformatstring +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jformatstring/ChangeLog,v 1.1 2011/04/10 17:04:12 nerdboy Exp $ + +*jformatstring-1.0 (10 Apr 2011) + + 10 Apr 2011; Steve Arnold <nerdboy@gentoo.org> +jformatstring-0.9.ebuild, + +metadata.xml: + New ebuild; required dependency for FindBugs. Code seems stable for + quite some time. Exported from trunk and packaged for the mirrors + (however, the upstream site appears to have lost the package). + diff --git a/dev-java/jformatstring/jformatstring-0.9.ebuild b/dev-java/jformatstring/jformatstring-0.9.ebuild new file mode 100644 index 000000000000..17b6bb665ff1 --- /dev/null +++ b/dev-java/jformatstring/jformatstring-0.9.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jformatstring/jformatstring-0.9.ebuild,v 1.1 2011/04/10 17:04:12 nerdboy Exp $ + +EAPI=2 + +JAVA_PKG_IUSE="doc source test" +inherit eutils java-pkg-2 java-ant-2 + +MY_PN="jFormatString" +DESCRIPTION="Compile time checking for Java Format Strings" +SRC_URI="mirror://gentoo/${P}.tar.gz" +HOMEPAGE="https://jformatstring.dev.java.net/" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="" + +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + dev-java/junit" +RDEPEND=">=virtual/jre-1.5" + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_BUILD_TARGET="build" +EANT_DOC_TARGET="javadoc" +EANT_GENTOO_CLASSPATH="ant-core" + +src_compile() { +# cd "${S}" + mkdir lib + cd lib/ + java-pkg_jar-from junit-4 + # if the above gets done in java_prepare() instead, then the lib + # dir gets wiped out by the time it gets here. weird... + + cd ../ + eant build -Dproject.name=${MY_PN} -Dpackage.name=${MY_PN} -Dpkg="*" + + # generate javadoc + if use doc ; then +# cd "${S}"/${MY_PN} + mkdir javadoc + javadoc -d javadoc -sourcepath $(find src/ -name "*.java") \ + -classpath $(java-pkg_getjars ant-core,junit-4) \ + -subpackages junit:java \ + || die "Javadoc creation failed" + fi +} + +src_test() { + ANT_TASKS="ant-nodeps ant-junit" eant runjunit +} + +src_install() { +# cd "${S}"/${MY_PN} + java-pkg_dojar build/${MY_PN}.jar + + use source && java-pkg_dosrc src/java src/junit + + use doc && java-pkg_dojavadoc javadoc +} diff --git a/dev-java/jformatstring/metadata.xml b/dev-java/jformatstring/metadata.xml new file mode 100644 index 000000000000..7303cef96964 --- /dev/null +++ b/dev-java/jformatstring/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> |