diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2015-08-21 10:40:02 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2015-08-21 10:42:18 +0000 |
commit | 612ba885f1fe428ed1804143a7c963951c36bc3c (patch) | |
tree | dc24739f4b01433670e28f512f0f8dc22a1ef0b0 /dev-java/commons-beanutils/commons-beanutils-1.9.2.ebuild | |
parent | dev-java/commons-collections: Remove old. (diff) | |
download | gentoo-612ba885f1fe428ed1804143a7c963951c36bc3c.tar.gz gentoo-612ba885f1fe428ed1804143a7c963951c36bc3c.tar.bz2 gentoo-612ba885f1fe428ed1804143a7c963951c36bc3c.zip |
dev-java/commons-beanutils: Version bump. Fixes security bug 534498.
Package-Manager: portage-2.2.18
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-java/commons-beanutils/commons-beanutils-1.9.2.ebuild')
-rw-r--r-- | dev-java/commons-beanutils/commons-beanutils-1.9.2.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/dev-java/commons-beanutils/commons-beanutils-1.9.2.ebuild b/dev-java/commons-beanutils/commons-beanutils-1.9.2.ebuild new file mode 100644 index 000000000000..0acb7cf31ad2 --- /dev/null +++ b/dev-java/commons-beanutils/commons-beanutils-1.9.2.ebuild @@ -0,0 +1,65 @@ +# 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="Provides easy-to-use wrappers around Reflection and Introspection APIs" +HOMEPAGE="http://commons.apache.org/beanutils/" +SRC_URI="mirror://apache/commons/beanutils/source/${P}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="1.7" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="" + +CDEPEND="dev-java/commons-collections:0 + dev-java/commons-logging:0" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +DEPEND=">=virtual/jdk-1.6 + test? ( + dev-java/ant-junit:0 + dev-java/junit:0 + dev-java/commons-collections[test-framework] + ) + ${CDEPEND}" + +S="${WORKDIR}/${P}-src" + +# Buggy tests. +JAVA_RM_FILES=( + src/test/java/org/apache/commons/beanutils/IndexedPropertyTestCase.java + src/test/java/org/apache/commons/beanutils/BeanMapTestCase.java + src/test/java/org/apache/commons/beanutils/bugs/Jira422TestCase.java + src/test/java/org/apache/commons/beanutils/BeanificationTestCase.java +) + +EANT_GENTOO_CLASSPATH="commons-logging,commons-collections" + +java_prepare() { + JAVA_ANT_CLASSPATH_TAGS="javac java" java-ant_rewrite-classpath +} + +src_test() { + EANT_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit" + ANT_TASKS="ant-junit" eant \ + -Dcommons-collections.jar=$(java-pkg_getjar commons-collections commons-collections.jar) \ + -Dcommons-collections-testframework.jar=$(java-pkg_getjar commons-collections commons-collections-testframework.jar) \ + -Dcommons-logging.jar=$(java-pkg_getjar commons-logging commons-logging.jar) \ + test +} + +src_install() { + java-pkg_newjar dist/${P}.jar + + dodoc RELEASE-NOTES.txt || die + + use doc && java-pkg_dojavadoc dist/docs/api + use source && java-pkg_dosrc src/main/java/org +} |