1 |
commit: d18d1aae66cb6aebbe9c278c43330ba6f16ee984 |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Sat Jan 8 17:44:20 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 20 18:03:26 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d18d1aae |
7 |
|
8 |
dev-java/httpcomponents-client: New package |
9 |
|
10 |
Split from dev-java/commons-httpclient |
11 |
Bug: https://bugs.gentoo.org/758302 |
12 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
13 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
14 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
15 |
|
16 |
dev-java/httpcomponents-client/Manifest | 1 + |
17 |
.../httpcomponents-client-4.5.13-r1.ebuild | 74 ++++++++++++++++++++++ |
18 |
dev-java/httpcomponents-client/metadata.xml | 10 +++ |
19 |
3 files changed, 85 insertions(+) |
20 |
|
21 |
diff --git a/dev-java/httpcomponents-client/Manifest b/dev-java/httpcomponents-client/Manifest |
22 |
new file mode 100644 |
23 |
index 000000000000..9706b591e796 |
24 |
--- /dev/null |
25 |
+++ b/dev-java/httpcomponents-client/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST httpcomponents-client-4.5.13-src.tar.gz 824131 BLAKE2B 1507c81749a92afcf8b170b606761236d71b02d8b8b257d753a0f09abbdc297057df39661e827dee52804a2138de7d201b2a837418cbec21085fd3ffd558b51c SHA512 421e413fb2206fa95b6428ff067cdf2b440d2d3d4503cc3ca9bcf70ccd8ed1b8273ec4fe0703e6a8cd7612940b7ed966d9f163dbfeb8bf699ae2a8b2e0866d05 |
28 |
|
29 |
diff --git a/dev-java/httpcomponents-client/httpcomponents-client-4.5.13-r1.ebuild b/dev-java/httpcomponents-client/httpcomponents-client-4.5.13-r1.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..651201475e47 |
32 |
--- /dev/null |
33 |
+++ b/dev-java/httpcomponents-client/httpcomponents-client-4.5.13-r1.ebuild |
34 |
@@ -0,0 +1,74 @@ |
35 |
+# Copyright 1999-2022 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+# Skeleton command: |
39 |
+# java-ebuilder --generate-ebuild --workdir . --pom httpcomponents-client-4.5.13/httpclient/pom.xml --download-uri https://github.com/apache/httpcomponents-client/archive/refs/tags/rel/v4.5.13.tar.gz --slot 4 --keywords "~amd64 ~ppc64 ~x86" --ebuild commons-httpclient-4.5.13.ebuild |
40 |
+ |
41 |
+EAPI=7 |
42 |
+ |
43 |
+JAVA_PKG_IUSE="doc source test" |
44 |
+MAVEN_ID="org.apache.httpcomponents:httpclient:4.5.13" |
45 |
+JAVA_TESTING_FRAMEWORKS="junit-4" |
46 |
+ |
47 |
+inherit java-pkg-2 java-pkg-simple |
48 |
+ |
49 |
+DESCRIPTION="Apache HttpComponents Client" |
50 |
+HOMEPAGE="https://hc.apache.org/httpcomponents-client" |
51 |
+SRC_URI="mirror://apache/httpcomponents/httpclient/source/httpcomponents-client-${PV}-src.tar.gz" |
52 |
+ |
53 |
+LICENSE="Apache-2.0" |
54 |
+SLOT="4" |
55 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
56 |
+ |
57 |
+# Common dependencies |
58 |
+# POM: httpcomponents-client-${PV}/httpclient/pom.xml |
59 |
+# commons-codec:commons-codec:1.11 -> >=dev-java/commons-codec-1.15:0 |
60 |
+# commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0 |
61 |
+# org.apache.httpcomponents:httpcore:4.4.13 -> >=dev-java/httpcore-4.4.14:0 |
62 |
+ |
63 |
+CDEPEND=" |
64 |
+ dev-java/commons-codec:0 |
65 |
+ dev-java/commons-logging:0 |
66 |
+ dev-java/httpcore:0 |
67 |
+" |
68 |
+ |
69 |
+# Compile dependencies |
70 |
+# POM: httpcomponents-client-${PV}/httpclient/pom.xml |
71 |
+# test? junit:junit:4.11 -> >=dev-java/junit-4.13.2:4 |
72 |
+# test? org.mockito:mockito-core:1.10.19 -> >=dev-java/mockito-1.9.5:0 |
73 |
+ |
74 |
+DEPEND="${CDEPEND} |
75 |
+ >=virtual/jdk-1.8:* |
76 |
+ test? ( |
77 |
+ dev-java/hamcrest-core:1.3 |
78 |
+ dev-java/mockito:0 |
79 |
+ )" |
80 |
+ |
81 |
+RDEPEND="${CDEPEND} |
82 |
+ >=virtual/jre-1.8:*" |
83 |
+ |
84 |
+DOCS=( ../{LICENSE,NOTICE,README,RELEASE_NOTES}.txt ) |
85 |
+ |
86 |
+S="${WORKDIR}/httpcomponents-client-${PV}/httpclient" |
87 |
+ |
88 |
+JAVA_GENTOO_CLASSPATH="commons-codec,commons-logging,httpcore" |
89 |
+JAVA_SRC_DIR=( |
90 |
+ "src/main/java" |
91 |
+ "src/main/java-deprecated" |
92 |
+) |
93 |
+JAVA_RESOURCE_DIRS="src/main/resources" |
94 |
+ |
95 |
+JAVA_TEST_GENTOO_CLASSPATH="junit-4,mockito,hamcrest-core-1.3" |
96 |
+JAVA_TEST_SRC_DIR="src/test/java" |
97 |
+JAVA_TEST_RESOURCE_DIRS="src/test/resources" |
98 |
+ |
99 |
+JAVA_TEST_EXCLUDES=( |
100 |
+ # Tests run: 929, Failures: 1 |
101 |
+ # javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake |
102 |
+ "org.apache.http.conn.ssl.TestSSLSocketFactory" |
103 |
+) |
104 |
+ |
105 |
+src_install() { |
106 |
+ default |
107 |
+ java-pkg-simple_src_install |
108 |
+} |
109 |
|
110 |
diff --git a/dev-java/httpcomponents-client/metadata.xml b/dev-java/httpcomponents-client/metadata.xml |
111 |
new file mode 100644 |
112 |
index 000000000000..6e6add67bb12 |
113 |
--- /dev/null |
114 |
+++ b/dev-java/httpcomponents-client/metadata.xml |
115 |
@@ -0,0 +1,10 @@ |
116 |
+<?xml version="1.0" encoding="UTF-8"?> |
117 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
118 |
+<pkgmetadata> |
119 |
+ <maintainer type="project"> |
120 |
+ <email>java@g.o</email> |
121 |
+ </maintainer> |
122 |
+ <upstream> |
123 |
+ <remote-id type="github">apache/httpcomponents-client</remote-id> |
124 |
+ </upstream> |
125 |
+</pkgmetadata> |