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/httpcomponents-client/Manifest | 1 + .../httpcomponents-client-fluent-hc-4.5-build.xml | 246 +++++++++++++++++++ .../httpcomponents-client-httpclient-4.5-build.xml | 250 ++++++++++++++++++++ ...omponents-client-httpclient-cache-4.5-build.xml | 260 +++++++++++++++++++++ ...components-client-httpclient-osgi-4.5-build.xml | 255 ++++++++++++++++++++ .../httpcomponents-client-httpmime-4.5-build.xml | 247 ++++++++++++++++++++ .../httpcomponents-client-4.5.ebuild | 146 ++++++++++++ dev-java/httpcomponents-client/metadata.xml | 9 + 8 files changed, 1414 insertions(+) create mode 100644 dev-java/httpcomponents-client/Manifest create mode 100644 dev-java/httpcomponents-client/files/httpcomponents-client-fluent-hc-4.5-build.xml create mode 100644 dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-4.5-build.xml create mode 100644 dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-cache-4.5-build.xml create mode 100644 dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-osgi-4.5-build.xml create mode 100644 dev-java/httpcomponents-client/files/httpcomponents-client-httpmime-4.5-build.xml create mode 100644 dev-java/httpcomponents-client/httpcomponents-client-4.5.ebuild create mode 100644 dev-java/httpcomponents-client/metadata.xml (limited to 'dev-java/httpcomponents-client') diff --git a/dev-java/httpcomponents-client/Manifest b/dev-java/httpcomponents-client/Manifest new file mode 100644 index 000000000000..98e1f01e8c9d --- /dev/null +++ b/dev-java/httpcomponents-client/Manifest @@ -0,0 +1 @@ +DIST httpcomponents-client-4.5-src.tar.gz 782815 BLAKE2B ddf08b8ed4451cdf9eb1d58b207c5e80948ba051c92c9e5e3f4fe0e09405ce916fbedf5e70b037880a09b822ffb99395294645d2518282d35f57b0bf64a786df SHA512 a4c3da887a2933ddec0876a3c08903153e34d3dd555dad1be8d9d48ab5dc04f56b3f22eb6f96b407d1ac85c455e33561c7e8625c0a38705bd1e810fd9b6c8517 diff --git a/dev-java/httpcomponents-client/files/httpcomponents-client-fluent-hc-4.5-build.xml b/dev-java/httpcomponents-client/files/httpcomponents-client-fluent-hc-4.5-build.xml new file mode 100644 index 000000000000..2464c617d438 --- /dev/null +++ b/dev-java/httpcomponents-client/files/httpcomponents-client-fluent-hc-4.5-build.xml @@ -0,0 +1,246 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-4.5-build.xml b/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-4.5-build.xml new file mode 100644 index 000000000000..b88c13ea80b7 --- /dev/null +++ b/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-4.5-build.xml @@ -0,0 +1,250 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-cache-4.5-build.xml b/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-cache-4.5-build.xml new file mode 100644 index 000000000000..297c0987b0b1 --- /dev/null +++ b/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-cache-4.5-build.xml @@ -0,0 +1,260 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-osgi-4.5-build.xml b/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-osgi-4.5-build.xml new file mode 100644 index 000000000000..ef588141aac1 --- /dev/null +++ b/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-osgi-4.5-build.xml @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/httpcomponents-client/files/httpcomponents-client-httpmime-4.5-build.xml b/dev-java/httpcomponents-client/files/httpcomponents-client-httpmime-4.5-build.xml new file mode 100644 index 000000000000..d1f578641165 --- /dev/null +++ b/dev-java/httpcomponents-client/files/httpcomponents-client-httpmime-4.5-build.xml @@ -0,0 +1,247 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/httpcomponents-client/httpcomponents-client-4.5.ebuild b/dev-java/httpcomponents-client/httpcomponents-client-4.5.ebuild new file mode 100644 index 000000000000..5dfe16232601 --- /dev/null +++ b/dev-java/httpcomponents-client/httpcomponents-client-4.5.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="source examples doc test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="A low level toolset of Java components focused on HTTP and associated protocols" +HOMEPAGE="http://hc.apache.org/index.html" +SRC_URI="mirror://apache/${PN/-//http}/source/${P}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="4.5" +KEYWORDS="amd64 x86" + +CDEPEND=" + dev-java/ant-junit:0 + dev-java/easymock:3.2 + dev-java/spymemcached:0 + dev-java/osgi-core-api:0 + dev-java/osgi-enterprise-api:0 + dev-java/commons-codec:0 + dev-java/commons-logging:0 + dev-java/httpcomponents-core:4.4 + dev-java/easymock-classextension:3.2 +" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +DEPEND=">=virtual/jdk-1.6 + test? ( + dev-java/junit:4 + dev-java/mockito:0 + ) + ${CDEPEND}" + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH=" + commons-codec + commons-logging + spymemcached + osgi-core-api + osgi-enterprise-api + httpcomponents-core-4.4 +" + +# List of modules to compile and test. +MODULES=( + httpclient + httpclient-cache + httpmime + fluent-hc + httpclient-osgi +) + +EANT_BUILD_TARGET="package" +EANT_GENTOO_CLASSPATH_EXTRA="${S}/${MODULES[0]}/target/${MODULES[0]}-${PV}.jar" + +java_prepare() { + # copy build.xml files to their location. + for module in ${MODULES[@]}; do + cd "${S}"/"${module}" || die + cp "${FILESDIR}"/"${PN}-${module}-${PV}"-build.xml build.xml + done + + cd "${S}" || die + + # httpclient: + # - copy deprecated sources for compilation + cp -r "${S}"/${MODULES[0]}/src/main/java-deprecated/* \ + "${S}"/${MODULES[0]}/src/main/java/* || die + + # - remove broken tests + rm -v ${MODULES[0]}/src/test/java/org/apache/http/client/config/TestRequestConfig.java + + # httpclient-cache: + # - copy deprecated sources into main repository + cp -r "${S}"/${MODULES[1]}/src/main/java-deprecated/* \ + "${S}"/${MODULES[1]}/src/main/java || die + + # - remove broken tests + rm -v \ + ${MODULES[1]}/src/test/java/org/apache/http/impl/client/cache/TestCachingExec* + + # - disable ehcache support altogether + # the version in Portage is very old and compilation chokes on missing imports + rm -rf \ + "${S}"/${MODULES[1]}/src/main/java/org/apache/http/impl/client/cache/ehcache \ + "${S}"/${MODULES[1]}/src/test/java/org/apache/http/impl/client/cache/ehcache + + # httpmime: + # - copy deprecated sources into main repository + cp -r "${S}"/${MODULES[2]}/src/main/java-deprecated/* \ + "${S}"/${MODULES[2]}/src/main/java + + # fluent-hc: + # remove broken tests. + rm -v ${MODULES[3]}/src/test/java/org/apache/http/client/fluent/TestFluent.java +} + +EANT_TEST_GENTOO_CLASSPATH=" + ${EANT_GENTOO_CLASSPATH} + junit-4 + mockito + easymock-3.2 + easymock-classextension-3.2 +" + +src_compile() { + for module in ${MODULES[@]}; do + EANT_BUILD_XML="${module}/build.xml" \ + java-pkg-2_src_compile + done +} + +src_test() { + for module in ${MODULES[@]}; do + ANT_TASKS= \ + EANT_BUILD_XML="${module}/build.xml" \ + java-pkg-2_src_test + done +} + +src_install() { + for module in ${MODULES[@]}; do + java-pkg_newjar ${module}/target/${module}-${PV}.jar ${module}.jar + done + + if use source; then + + java-pkg_dosrc {httpclient,httpclient-cache,httpmime,fluent-hc}/src/main/java/org + fi + + if use examples; then + for dir in $(find "${S}" -mindepth 3 -maxdepth 4 -name "examples" -type d -print); do + java-pkg_doexamples ${dir}/* + done + fi + + if use doc; then + java-pkg_dojavadoc {httpclient,httpclient-cache,httpmime,fluent-hc}/target/site/apidocs/ + fi +} diff --git a/dev-java/httpcomponents-client/metadata.xml b/dev-java/httpcomponents-client/metadata.xml new file mode 100644 index 000000000000..428163197653 --- /dev/null +++ b/dev-java/httpcomponents-client/metadata.xml @@ -0,0 +1,9 @@ + + + + + java@gentoo.org + Java + + gentoo-staging + -- cgit v1.3.1