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-core/Manifest | 1 + .../httpcomponents-core-4.4.1-httpcore-build.xml | 236 ++++++++++++++++++++ ...ttpcomponents-core-4.4.1-httpcore-nio-build.xml | 241 +++++++++++++++++++++ .../httpcomponents-core-4.4.1-r1.ebuild | 85 ++++++++ dev-java/httpcomponents-core/metadata.xml | 9 + 5 files changed, 572 insertions(+) create mode 100644 dev-java/httpcomponents-core/Manifest create mode 100644 dev-java/httpcomponents-core/files/httpcomponents-core-4.4.1-httpcore-build.xml create mode 100644 dev-java/httpcomponents-core/files/httpcomponents-core-4.4.1-httpcore-nio-build.xml create mode 100644 dev-java/httpcomponents-core/httpcomponents-core-4.4.1-r1.ebuild create mode 100644 dev-java/httpcomponents-core/metadata.xml (limited to 'dev-java/httpcomponents-core') diff --git a/dev-java/httpcomponents-core/Manifest b/dev-java/httpcomponents-core/Manifest new file mode 100644 index 000000000000..3869f682933d --- /dev/null +++ b/dev-java/httpcomponents-core/Manifest @@ -0,0 +1 @@ +DIST httpcomponents-core-4.4.1-src.tar.gz 549481 BLAKE2B b5e84a521d5da16fc0800a2fb4b8ceb304acd409954cbaeac5901bcbb7b00ce1a10c733ae817c1ff7baaefc7a90a7370c74521c2570eaa8c694e90422d68ac35 SHA512 1ccf6233a8b254986712732418fb4e25bbdbcb99c93f55ec7955d956d33c692eff6378ed8d701542272793f05831151ee75f0102cdd3b14a6f7530fcf9639b99 diff --git a/dev-java/httpcomponents-core/files/httpcomponents-core-4.4.1-httpcore-build.xml b/dev-java/httpcomponents-core/files/httpcomponents-core-4.4.1-httpcore-build.xml new file mode 100644 index 000000000000..9801665958c8 --- /dev/null +++ b/dev-java/httpcomponents-core/files/httpcomponents-core-4.4.1-httpcore-build.xml @@ -0,0 +1,236 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/httpcomponents-core/files/httpcomponents-core-4.4.1-httpcore-nio-build.xml b/dev-java/httpcomponents-core/files/httpcomponents-core-4.4.1-httpcore-nio-build.xml new file mode 100644 index 000000000000..e0ae145072cd --- /dev/null +++ b/dev-java/httpcomponents-core/files/httpcomponents-core-4.4.1-httpcore-nio-build.xml @@ -0,0 +1,241 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/httpcomponents-core/httpcomponents-core-4.4.1-r1.ebuild b/dev-java/httpcomponents-core/httpcomponents-core-4.4.1-r1.ebuild new file mode 100644 index 000000000000..3e1a5255b294 --- /dev/null +++ b/dev-java/httpcomponents-core/httpcomponents-core-4.4.1-r1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="source examples test" + +# "components" +CMPT=${PN%%-*} + +# "core" +CORE=${PN##*-} + +# "httpcore" +HTTPCORE="http${CORE}" + +# "httpcore-nio" +HTTPNIO="${HTTPCORE}-nio" + +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/httpcomponents/${HTTPCORE}/source/${P}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="4.4" +KEYWORDS="amd64 x86" + +RDEPEND=">=virtual/jre-1.6" + +DEPEND=" + test? ( + dev-java/commons-logging:0 + dev-java/ant-junit:0 + dev-java/mockito:0 + ) + >=virtual/jdk-1.6" + +JAVA_ANT_REWRITE_CLASSPATH="yes" +EANT_BUILD_TARGET="package" +EANT_GENTOO_CLASSPATH_EXTRA="${S}/${HTTPCORE}/target/${HTTPCORE}-${PV}.jar" + +java_prepare() { + cp "${FILESDIR}"/${P}-${HTTPCORE}-build.xml ${HTTPCORE}/build.xml || die + cp "${FILESDIR}"/${P}-${HTTPNIO}-build.xml ${HTTPNIO}/build.xml || die + + # Why have these classes been deprecated although other libraries are built + # on them (i.e. httpcomponents-client) is mindboggling. See bug 553234. + cp -r "${S}"/httpcore/src/main/java-deprecated/* \ + "${S}"/httpcore/src/main/java/* || die + cp -r "${S}"/httpcore-nio/src/main/java-deprecated/* \ + "${S}"/httpcore-nio/src/main/java/* || die +} + +src_compile() { + # first, compile httpcore module + EANT_BUILD_XML="${HTTPCORE}/build.xml" java-pkg-2_src_compile + + # then, httpnio module + EANT_BUILD_XML="${HTTPNIO}/build.xml" java-pkg-2_src_compile +} + +EANT_TEST_GENTOO_CLASSPATH=" + commons-logging + mockito +" + +src_test() { + # run junit tests for httpcore module + EANT_BUILD_XML="${HTTPCORE}/build.xml" java-pkg-2_src_test + + # run junit tests for httpcore-nio module + EANT_BUILD_XML="${HTTPNIO}/build.xml" java-pkg-2_src_test +} + +src_install() { + java-pkg_newjar ${HTTPCORE}/target/${HTTPCORE}-${PV}.jar ${HTTPCORE}.jar + java-pkg_newjar ${HTTPNIO}/target/${HTTPNIO}-${PV}.jar ${HTTPNIO}.jar + + use source && java-pkg_dosrc httpcore{,-nio}/src/main/java + use examples && java-pkg_doexamples httpcore{,-nio}/src/examples + + dodoc {README,RELEASE_NOTES,NOTICE}.txt +} diff --git a/dev-java/httpcomponents-core/metadata.xml b/dev-java/httpcomponents-core/metadata.xml new file mode 100644 index 000000000000..428163197653 --- /dev/null +++ b/dev-java/httpcomponents-core/metadata.xml @@ -0,0 +1,9 @@ + + + + + java@gentoo.org + Java + + gentoo-staging + -- cgit v1.3.1