1 |
monsieurp 15/06/24 19:04:38 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: httpcomponents-client-4.5.ebuild |
5 |
Log: |
6 |
Version bump. Fix bug 552566. |
7 |
|
8 |
Signed-off-by: Patrice Clement <monsieurp@g.o> |
9 |
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 93491BB8) |
10 |
|
11 |
Revision Changes Path |
12 |
1.3 dev-java/httpcomponents-client/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/ChangeLog?rev=1.3&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/ChangeLog?rev=1.3&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/ChangeLog?r1=1.2&r2=1.3 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/httpcomponents-client/ChangeLog,v |
21 |
retrieving revision 1.2 |
22 |
retrieving revision 1.3 |
23 |
diff -u -r1.2 -r1.3 |
24 |
--- ChangeLog 1 Dec 2013 16:08:26 -0000 1.2 |
25 |
+++ ChangeLog 24 Jun 2015 19:04:38 -0000 1.3 |
26 |
@@ -1,6 +1,17 @@ |
27 |
# ChangeLog for dev-java/httpcomponents-client |
28 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/httpcomponents-client/ChangeLog,v 1.2 2013/12/01 16:08:26 ercpe Exp $ |
30 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/httpcomponents-client/ChangeLog,v 1.3 2015/06/24 19:04:38 monsieurp Exp $ |
32 |
+ |
33 |
+*httpcomponents-client-4.5 (24 Jun 2015) |
34 |
+ |
35 |
+ 24 Jun 2015; Patrice Clement <monsieurp@g.o> |
36 |
+ +files/httpcomponents-client-fluent-hc-4.5-build.xml, |
37 |
+ +files/httpcomponents-client-httpclient-4.5-build.xml, |
38 |
+ +files/httpcomponents-client-httpclient-cache-4.5-build.xml, |
39 |
+ +files/httpcomponents-client-httpclient-osgi-4.5-build.xml, |
40 |
+ +files/httpcomponents-client-httpmime-4.5-build.xml, |
41 |
+ +httpcomponents-client-4.5.ebuild: |
42 |
+ Version bump. Fix bug 552566. |
43 |
|
44 |
*httpcomponents-client-4.3.1-r1 (01 Dec 2013) |
45 |
|
46 |
|
47 |
|
48 |
|
49 |
1.1 dev-java/httpcomponents-client/httpcomponents-client-4.5.ebuild |
50 |
|
51 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/httpcomponents-client-4.5.ebuild?rev=1.1&view=markup |
52 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/httpcomponents-client-4.5.ebuild?rev=1.1&content-type=text/plain |
53 |
|
54 |
Index: httpcomponents-client-4.5.ebuild |
55 |
=================================================================== |
56 |
# Copyright 1999-2015 Gentoo Foundation |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/httpcomponents-client/httpcomponents-client-4.5.ebuild,v 1.1 2015/06/24 19:04:38 monsieurp Exp $ |
59 |
|
60 |
EAPI="5" |
61 |
|
62 |
JAVA_PKG_IUSE="source examples doc test" |
63 |
|
64 |
inherit java-pkg-2 java-ant-2 |
65 |
|
66 |
DESCRIPTION="A low level toolset of Java components focused on HTTP and associated protocols" |
67 |
HOMEPAGE="http://hc.apache.org/index.html" |
68 |
SRC_URI="mirror://apache/${PN/-//http}/source/${P}-src.tar.gz" |
69 |
|
70 |
LICENSE="Apache-2.0" |
71 |
SLOT="4.5" |
72 |
KEYWORDS="~amd64 ~x86" |
73 |
|
74 |
CDEPEND=" |
75 |
dev-java/ant-junit:0 |
76 |
dev-java/easymock:3.2 |
77 |
dev-java/spymemcached:0 |
78 |
dev-java/osgi-core-api:0 |
79 |
dev-java/osgi-enterprise-api:0 |
80 |
dev-java/commons-codec:0 |
81 |
dev-java/commons-logging:0 |
82 |
dev-java/httpcomponents-core:4.4 |
83 |
dev-java/easymock-classextension:3.2 |
84 |
" |
85 |
|
86 |
RDEPEND=">=virtual/jre-1.6 |
87 |
${CDEPEND}" |
88 |
|
89 |
DEPEND=">=virtual/jdk-1.6 |
90 |
test? ( |
91 |
dev-java/junit:4 |
92 |
dev-java/mockito:0 |
93 |
) |
94 |
${CDEPEND}" |
95 |
|
96 |
JAVA_ANT_REWRITE_CLASSPATH="true" |
97 |
EANT_GENTOO_CLASSPATH=" |
98 |
commons-codec |
99 |
commons-logging |
100 |
spymemcached |
101 |
osgi-core-api |
102 |
osgi-enterprise-api |
103 |
httpcomponents-core-4.4 |
104 |
" |
105 |
|
106 |
# List of modules to compile and test. |
107 |
MODULES=( |
108 |
httpclient |
109 |
httpclient-cache |
110 |
httpmime |
111 |
fluent-hc |
112 |
httpclient-osgi |
113 |
) |
114 |
|
115 |
EANT_BUILD_TARGET="package" |
116 |
EANT_GENTOO_CLASSPATH_EXTRA="${S}/${MODULES[0]}/target/${MODULES[0]}-${PV}.jar" |
117 |
|
118 |
java_prepare() { |
119 |
# copy build.xml files to their location. |
120 |
for module in ${MODULES[@]}; do |
121 |
cd "${S}"/"${module}" || die |
122 |
cp "${FILESDIR}"/"${PN}-${module}-${PV}"-build.xml build.xml |
123 |
done |
124 |
|
125 |
cd "${S}" || die |
126 |
|
127 |
# httpclient: |
128 |
# - copy deprecated sources for compilation |
129 |
cp -r "${S}"/${MODULES[0]}/src/main/java-deprecated/* \ |
130 |
"${S}"/${MODULES[0]}/src/main/java/* || die |
131 |
|
132 |
# - remove broken tests |
133 |
rm -v ${MODULES[0]}/src/test/java/org/apache/http/client/config/TestRequestConfig.java |
134 |
|
135 |
# httpclient-cache: |
136 |
# - copy deprecated sources into main repository |
137 |
cp -r "${S}"/${MODULES[1]}/src/main/java-deprecated/* \ |
138 |
"${S}"/${MODULES[1]}/src/main/java || die |
139 |
|
140 |
# - remove broken tests |
141 |
rm -v \ |
142 |
${MODULES[1]}/src/test/java/org/apache/http/impl/client/cache/TestCachingExec* |
143 |
|
144 |
# - disable ehcache support altogether |
145 |
# the version in Portage is very old and compilation chokes on missing imports |
146 |
rm -rf \ |
147 |
"${S}"/${MODULES[1]}/src/main/java/org/apache/http/impl/client/cache/ehcache \ |
148 |
"${S}"/${MODULES[1]}/src/test/java/org/apache/http/impl/client/cache/ehcache |
149 |
|
150 |
# httpmime: |
151 |
# - copy deprecated sources into main repository |
152 |
cp -r "${S}"/${MODULES[2]}/src/main/java-deprecated/* \ |
153 |
"${S}"/${MODULES[2]}/src/main/java |
154 |
|
155 |
# fluent-hc: |
156 |
# remove broken tests. |
157 |
rm -v ${MODULES[3]}/src/test/java/org/apache/http/client/fluent/TestFluent.java |
158 |
} |
159 |
|
160 |
EANT_TEST_GENTOO_CLASSPATH=" |
161 |
${EANT_GENTOO_CLASSPATH} |
162 |
junit-4 |
163 |
mockito |
164 |
easymock-3.2 |
165 |
easymock-classextension-3.2 |
166 |
" |
167 |
|
168 |
src_compile() { |
169 |
for module in ${MODULES[@]}; do |
170 |
EANT_BUILD_XML="${module}/build.xml" \ |
171 |
java-pkg-2_src_compile |
172 |
done |
173 |
} |
174 |
|
175 |
src_test() { |
176 |
for module in ${MODULES[@]}; do |
177 |
ANT_TASKS= \ |
178 |
EANT_BUILD_XML="${module}/build.xml" \ |
179 |
java-pkg-2_src_test |
180 |
done |
181 |
} |
182 |
|
183 |
src_install() { |
184 |
for module in ${MODULES[@]}; do |
185 |
java-pkg_newjar ${module}/target/${module}-${PV}.jar ${module}.jar |
186 |
done |
187 |
|
188 |
if use source; then |
189 |
|
190 |
java-pkg_dosrc {httpclient,httpclient-cache,httpmime,fluent-hc}/src/main/java/org |
191 |
fi |
192 |
|
193 |
if use examples; then |
194 |
for dir in $(find "${S}" -mindepth 3 -maxdepth 4 -name "examples" -type d -print); do |
195 |
java-pkg_doexamples ${dir}/* |
196 |
done |
197 |
fi |
198 |
|
199 |
if use doc; then |
200 |
java-pkg_dojavadoc {httpclient,httpclient-cache,httpmime,fluent-hc}/target/site/apidocs/ |
201 |
fi |
202 |
} |