diff options
author | Ralph Sennhauser <sera@gentoo.org> | 2012-06-17 15:20:15 +0000 |
---|---|---|
committer | Ralph Sennhauser <sera@gentoo.org> | 2012-06-17 15:20:15 +0000 |
commit | d2d2957f7815eaec9a9d8f9ba5ff732342584a45 (patch) | |
tree | 77afafa26bb648a36a143c8ff07c0590c9b28959 /dev-java/jformatstring | |
parent | Remove old (diff) | |
download | gentoo-2-d2d2957f7815eaec9a9d8f9ba5ff732342584a45.tar.gz gentoo-2-d2d2957f7815eaec9a9d8f9ba5ff732342584a45.tar.bz2 gentoo-2-d2d2957f7815eaec9a9d8f9ba5ff732342584a45.zip |
Add build.xml and fix various QA issues. #364915
(Portage version: 2.1.10.62/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/jformatstring')
-rw-r--r-- | dev-java/jformatstring/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/jformatstring/files/build.xml | 60 | ||||
-rw-r--r-- | dev-java/jformatstring/jformatstring-0.9-r1.ebuild | 47 |
3 files changed, 115 insertions, 2 deletions
diff --git a/dev-java/jformatstring/ChangeLog b/dev-java/jformatstring/ChangeLog index 22d5d54041de..47db2359fcee 100644 --- a/dev-java/jformatstring/ChangeLog +++ b/dev-java/jformatstring/ChangeLog @@ -1,6 +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 $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jformatstring/ChangeLog,v 1.2 2012/06/17 15:20:15 sera Exp $ + +*jformatstring-0.9-r1 (17 Jun 2012) + + 17 Jun 2012; Ralph Sennhauser <sera@gentoo.org> +jformatstring-0.9-r1.ebuild, + +files/build.xml: + Add build.xml and fix various QA issues. #364915 *jformatstring-1.0 (10 Apr 2011) diff --git a/dev-java/jformatstring/files/build.xml b/dev-java/jformatstring/files/build.xml new file mode 100644 index 000000000000..68cb8b6b86a5 --- /dev/null +++ b/dev-java/jformatstring/files/build.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- author: Ralph Sennhauser --> +<project name="jformatstring" default="jar"> + + <property name="junit.jar" value="lib/junit.jar"/> + + <target name="clean"> + <delete dir="build"/> + </target> + + <target name="compile"> + <mkdir dir="build/classes"/> + <javac srcdir="src/java" + destdir="build/classes" + encoding="UTF-8" + includeantruntime="false"> + </javac> + </target> + + <target name="jar" depends="compile"> + <jar destfile="build/${ant.project.name}.jar"> + <fileset dir="build/classes"/> + </jar> + </target> + + <target name="javadoc"> + <mkdir dir="build/javadoc"/> + <javadoc destdir="build/javadoc" + encoding="UTF-8"> + <fileset dir="src/java"/> + </javadoc> + </target> + + <target name="compile-tests" depends="jar"> + <mkdir dir="build/test-classes"/> + <javac srcdir="src/junit" + destdir="build/test-classes" + encoding="UTF-8" + includeantruntime="false"> + <classpath> + <fileset file="build/${ant.project.name}.jar"/> + <fileset file="${junit.jar}"/> + </classpath> + </javac> + </target> + + <target name="test" depends="compile-tests"> + <mkdir dir="build/test-results"/> + <junit haltonfailure="true" printsummary="on"> + <classpath> + <fileset file="build/${ant.project.name}.jar"/> + <pathelement location="build/test-classes"/> + </classpath> + <batchtest todir="build/test-results"> + <fileset dir="build/test-classes"/> + <formatter type="xml"/> + </batchtest> + </junit> + </target> +</project> diff --git a/dev-java/jformatstring/jformatstring-0.9-r1.ebuild b/dev-java/jformatstring/jformatstring-0.9-r1.ebuild new file mode 100644 index 000000000000..3048f5dc7a58 --- /dev/null +++ b/dev-java/jformatstring/jformatstring-0.9-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jformatstring/jformatstring-0.9-r1.ebuild,v 1.1 2012/06/17 15:20:15 sera Exp $ + +EAPI=4 + +JAVA_PKG_IUSE="doc source test" + +inherit eutils java-pkg-2 java-ant-2 + +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="" + +RDEPEND=">=virtual/jre-1.5" +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + test? ( + dev-java/ant-junit:0 + dev-java/junit:4 + )" + +java_prepare() { + # Upstreams is aargh! + cp "${FILESDIR}"/build.xml . || die +} + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_TEST_GENTOO_CLASSPATH="junit:4" + +src_test() { + java-pkg-2_src_test +} + +src_install() { + # Rename to match old name it was installed under + # should be fixed on slot bump + java-pkg_newjar build/${PN}.jar jFormatString.jar + + use source && java-pkg_dosrc src/java/* + use doc && java-pkg_dojavadoc build/javadoc +} |