diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2015-10-02 08:52:03 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2015-10-02 09:09:25 +0000 |
commit | b45aa0e05b348ad2aeb078eb406d321cd0b42747 (patch) | |
tree | 43693e522fb1b84b162edd774b65c690932678f7 /dev-java | |
parent | 44e3d762ef900e3724eaec49e06a881104773b1d (diff) | |
download | gentoo-b45aa0e05b348ad2aeb078eb406d321cd0b42747.tar.gz gentoo-b45aa0e05b348ad2aeb078eb406d321cd0b42747.tar.xz |
dev-java/commons-modeler: EAPI 5 bump.
Package-Manager: portage-2.2.18
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/commons-modeler/commons-modeler-2.0.1-r1.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-java/commons-modeler/commons-modeler-2.0.1-r1.ebuild b/dev-java/commons-modeler/commons-modeler-2.0.1-r1.ebuild new file mode 100644 index 00000000000..719fe61414a --- /dev/null +++ b/dev-java/commons-modeler/commons-modeler-2.0.1-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +JAVA_PKG_IUSE="doc source test" +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="A lib to make the setup of Java Management Extensions easier" +SRC_URI="mirror://apache/commons/modeler/source/${P}-src.tar.gz" +HOMEPAGE="http://commons.apache.org/modeler/" +LICENSE="Apache-2.0" +SLOT="0" + +# Provides ant tasks for ant to use +RDEPEND=">=virtual/jre-1.5 + dev-java/mx4j-core:3.0 + dev-java/commons-logging:0 + commons-digester? ( dev-java/commons-digester:3.2 )" +DEPEND=">=virtual/jdk-1.6 + source? ( app-arch/zip ) + test? ( dev-java/junit:0 )" + +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="commons-digester" + +S=${WORKDIR}/${P}-src + +java_prepare() { + # Setup the build environment + use commons-digester && echo "commons-digester.jar=$(java-pkg_getjar commons-digester-3.2 commons-digester.jar)" >> build.properties + echo "commons-logging.jar=$(java-pkg_getjar commons-logging commons-logging.jar)" >> build.properties + echo "jmx.jar=$(java-pkg_getjar mx4j-core-3.0 mx4j.jar)" >> build.properties + + mkdir dist || die +} + +EANT_BUILD_TARGET="prepare jar" + +src_test() { + eant test -Djunit.jar=$(java-pkg_getjar --build-only junit junit.jar) +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + dodoc RELEASE-NOTES.txt || die + use doc && java-pkg_dojavadoc dist/docs/api + use source && java-pkg_dosrc src/java/org +} |