1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="doc test source"
8 inherit java-pkg-2 java-ant-2
10 DESCRIPTION="Lightweight, self-contained mathematics and statistics components"
11 HOMEPAGE="https://commons.apache.org/math/"
12 SRC_URI="mirror://apache/commons/math/source/${P}-src.tar.gz"
21 dev-java/hamcrest-core:0
27 S="${WORKDIR}/${P}-src"
29 PATCHES=( "${FILESDIR}"/${PF}-buildfixes.patch )
32 java-pkg_jar-from junit-4
33 java-pkg_jar-from hamcrest-core
34 ANT_TASKS="ant-junit4" eant -Djunit.jar=junit.jar test
38 java-pkg_newjar target/${P}.jar ${PN}.jar
40 use doc && java-pkg_dojavadoc target/apidocs
41 use source && java-pkg_dosrc src/main/java/org