From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-java/commons-math/Manifest | 3 + dev-java/commons-math/commons-math-2.1-r2.ebuild | 42 +++ dev-java/commons-math/commons-math-3.2.ebuild | 53 ++++ dev-java/commons-math/commons-math-3.6.1.ebuild | 23 ++ .../files/commons-math-2.1-r2-buildfixes.patch | 19 ++ .../commons-math/files/commons-math-3.2-build.xml | 288 +++++++++++++++++++++ dev-java/commons-math/metadata.xml | 9 + 7 files changed, 437 insertions(+) create mode 100644 dev-java/commons-math/Manifest create mode 100644 dev-java/commons-math/commons-math-2.1-r2.ebuild create mode 100644 dev-java/commons-math/commons-math-3.2.ebuild create mode 100644 dev-java/commons-math/commons-math-3.6.1.ebuild create mode 100644 dev-java/commons-math/files/commons-math-2.1-r2-buildfixes.patch create mode 100644 dev-java/commons-math/files/commons-math-3.2-build.xml create mode 100644 dev-java/commons-math/metadata.xml (limited to 'dev-java/commons-math') diff --git a/dev-java/commons-math/Manifest b/dev-java/commons-math/Manifest new file mode 100644 index 000000000000..ff7a701a4109 --- /dev/null +++ b/dev-java/commons-math/Manifest @@ -0,0 +1,3 @@ +DIST commons-math-2.1-src.tar.gz 1099423 BLAKE2B 83c52abc10eebb6c749aec218aa435df4cd05106e6bcbead5061df7381d168aa9392ab70dce8eb0b8e254d6d95a372cacddc8f7714198a186a95a04a394bda9d SHA512 53ed8c0400402c588d824c15365ebe60bef41697ff9728270a9fdc3ac30eb60c4c397caf939ccda839eb701453d98af4eac9eae2090575fcfdee4df2d6f6045b +DIST commons-math3-3.2-src.tar.gz 2602474 BLAKE2B a818ca5ab1b9799359bad1c84d2774329c7c2605aeea3e13769eed9f1578d412555ad90a8de68971daa42b270d4bcd5fbf0fe79714e839d41b08077e32633125 SHA512 132c4725be582e25f67a955c7b3b8c7ef155606d8f4da07770464c422ded6b5e6efd1a13a6e98cff222f4fcac73606d512ee1ab9e3b1c4befcc1ba16ab68787b +DIST commons-math3-3.6.1.jar 2514690 BLAKE2B ce5dc1a5bdccf85aa780dd648b64c0ed78b4d5a36d15d9737f661135f4f1ec962c3c44a0c4d8fc7d12c667e62b19860cb2a47f507c8c3e6da6cce57e1b9caf54 SHA512 eab6003834c0f1b7e67eee242d33db43f85d388ac32e37caa6bd16d74340db5c189ff5c7fd112ef13b9009d2fbcf2bad6650b6e5d9124316b59493b2d07d065d diff --git a/dev-java/commons-math/commons-math-2.1-r2.ebuild b/dev-java/commons-math/commons-math-2.1-r2.ebuild new file mode 100644 index 000000000000..b18fc803124f --- /dev/null +++ b/dev-java/commons-math/commons-math-2.1-r2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +JAVA_PKG_IUSE="doc test source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Lightweight, self-contained mathematics and statistics components" +HOMEPAGE="https://commons.apache.org/math/" +SRC_URI="mirror://apache/commons/math/source/${P}-src.tar.gz" +LICENSE="Apache-2.0" +SLOT="2" +KEYWORDS="amd64 x86" + +DEPEND=" + >=virtual/jdk-1.6 + test? ( + dev-java/ant-junit4 + dev-java/hamcrest-core:0 + )" + +RDEPEND=" + >=virtual/jre-1.6" + +S="${WORKDIR}/${P}-src" + +PATCHES=( "${FILESDIR}"/${PF}-buildfixes.patch ) + +src_test() { + java-pkg_jar-from junit-4 + java-pkg_jar-from hamcrest-core + ANT_TASKS="ant-junit4" eant -Djunit.jar=junit.jar test +} + +src_install() { + java-pkg_newjar target/${P}.jar ${PN}.jar + + use doc && java-pkg_dojavadoc target/apidocs + use source && java-pkg_dosrc src/main/java/org +} diff --git a/dev-java/commons-math/commons-math-3.2.ebuild b/dev-java/commons-math/commons-math-3.2.ebuild new file mode 100644 index 000000000000..0fcdf307223b --- /dev/null +++ b/dev-java/commons-math/commons-math-3.2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +# Tests are currently broken due to nasty -lib argument. +JAVA_PKG_IUSE="doc source" # test + +inherit java-pkg-2 java-ant-2 java-osgi + +MY_PN="${PN}3" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Lightweight, self-contained mathematics and statistics components" +HOMEPAGE="https://commons.apache.org/math/" +SRC_URI="https://archive.apache.org/dist/commons/math/source/${MY_P}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="3" +KEYWORDS="amd64 x86" + +DEPEND=">=virtual/jdk-1.5" + +# Tests are currently broken due to nasty -lib argument. +# test? ( +# dev-java/ant-junit4 +# dev-java/hamcrest-core:0 +# )" + +RDEPEND=">=virtual/jre-1.5" + +S="${WORKDIR}/${MY_P}-src" + +java_prepare() { + cp "${FILESDIR}"/${P}-build.xml build.xml || die + + sed -i 's/manifest=".*MANIFEST.MF"//g' build.xml || die + sed -i '/name="Main-Class"/d' build.xml || die +} + +# Tests are currently broken due to nasty -lib argument. +# src_test() { +# java-pkg_jar-from junit-4 +# java-pkg_jar-from hamcrest-core +# ANT_TASKS="ant-junit4" eant -Djunit.jar=junit.jar test +# } + +src_install() { + java-osgi_newjar target/${MY_P}.jar ${MY_PN} ${MY_PN} "Export-Package: ${MY_PN}" + + use doc && java-pkg_dojavadoc target/site/apidocs + use source && java-pkg_dosrc src/main/java/org +} diff --git a/dev-java/commons-math/commons-math-3.6.1.ebuild b/dev-java/commons-math/commons-math-3.6.1.ebuild new file mode 100644 index 000000000000..5578f6ffa3a0 --- /dev/null +++ b/dev-java/commons-math/commons-math-3.6.1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +JAVA_PKG_IUSE="doc examples source" + +inherit java-pkg-2 java-pkg-simple + +MY_PN="${PN}3" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Lightweight, self-contained mathematics and statistics components" +HOMEPAGE="https://commons.apache.org/math/" +SRC_URI="https://repo1.maven.org/maven2/org/apache/commons/${MY_PN}/${PV}/${MY_P}-sources.jar +-> ${MY_P}.jar" + +DEPEND=">=virtual/jdk-1.6" +RDEPEND=">=virtual/jre-1.6" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" diff --git a/dev-java/commons-math/files/commons-math-2.1-r2-buildfixes.patch b/dev-java/commons-math/files/commons-math-2.1-r2-buildfixes.patch new file mode 100644 index 000000000000..6d768969e79c --- /dev/null +++ b/dev-java/commons-math/files/commons-math-2.1-r2-buildfixes.patch @@ -0,0 +1,19 @@ +--- build.xml 2010-10-24 11:20:46.000000000 +0300 ++++ build.xml.fixed 2010-10-24 11:25:42.000000000 +0300 +@@ -114,6 +114,7 @@ + + + ++ + + + +@@ -232,7 +233,7 @@ + + + +- ++ + + + diff --git a/dev-java/commons-math/files/commons-math-3.2-build.xml b/dev-java/commons-math/files/commons-math-3.2-build.xml new file mode 100644 index 000000000000..905d12657e26 --- /dev/null +++ b/dev-java/commons-math/files/commons-math-3.2-build.xml @@ -0,0 +1,288 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/commons-math/metadata.xml b/dev-java/commons-math/metadata.xml new file mode 100644 index 000000000000..428163197653 --- /dev/null +++ b/dev-java/commons-math/metadata.xml @@ -0,0 +1,9 @@ + + + + + java@gentoo.org + Java + + gentoo-staging + -- cgit v1.3.1