dev-java/commons-beanutils: Version bump. Fixes security bug 534498.
authorPatrice Clement <monsieurp@gentoo.org>
Fri, 21 Aug 2015 10:40:02 +0000 (10:40 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Fri, 21 Aug 2015 10:42:18 +0000 (10:42 +0000)
Package-Manager: portage-2.2.18
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
dev-java/commons-beanutils/Manifest
dev-java/commons-beanutils/commons-beanutils-1.9.2.ebuild [new file with mode: 0644]

index 75c0960b3415c302f226f5495b032169ad9c4b09..c2da9d6879f1e5b4c0bb83a790467395699c7463 100644 (file)
@@ -1,2 +1,3 @@
 DIST commons-beanutils-1.8.0-src.tar.gz 379586 SHA256 aff3c8c772e4ff32f2d9a37a727a488583372e45535a3d5aad09662691851dcf SHA512 2a3ea0ff09b24517defcd9f15552b1820e87296b9d6f920732a81c3ab10ad927e247d787ba8bd60100dfd6e2222a15d6ee6933217ff57263eaa07ec6ea0f078a WHIRLPOOL 88861f583317325275c72d10aebe104906d117ce4ce0d6cd079cacb2c3bde92a6b8419b87e317e5239cc0351fe3d29942b9e0d8afdb00e4bc86a377b6a35399a
 DIST commons-beanutils-1.8.3-src.tar.gz 383126 SHA256 df6d6a625db8da38b33d018030715130a258c0b493ea39f20c5e8d075b21b4ed SHA512 5cbe2774f097920db3b9dae99e7e6aa3c772826592c6f3b9db1ab9e3cc60631db60f0f9207c2f5335054288830085a6f0bf1da848300144c2a066b3a40e121b3 WHIRLPOOL 5ccf2ffab347db9d7276f64e7a293c1836699024c1fdb7321ec06f2cfd43d22a6e10938bb7637912ff22fe17417a534ac55266a16b81ef5fe85b9dfd0184fcab
+DIST commons-beanutils-1.9.2-src.tar.gz 396910 SHA256 91fccad3b65f278bad98df1aa8467f2d3df6095f41b2db39d2c12863fb2c0049 SHA512 cf43aace33eb91368f86445874b16d977e827451f1355bb00e9b33bf0707855b5d757b0d58ad617f3a7f86f9065e7c900907dd604ba4de5ae61473d40cb758a9 WHIRLPOOL e8d1628e09386a008415e493553438715092c76cd0237b6067659b80e4137959a0b585409d3273ceaeb6a5b72c1367b6a78a1b55f0856395388a615a0d1ac152
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 (file)
index 0000000..0acb7cf
--- /dev/null
@@ -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
+}