1 |
commit: 02518ec3e41bba4a3ca4cd68a4d2ce5dce23826f |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 18 16:43:07 2023 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 18 16:43:07 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02518ec3 |
7 |
|
8 |
net-p2p/vuze: treeclean |
9 |
|
10 |
Closes: https://bugs.gentoo.org/857663 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
net-p2p/vuze/Manifest | 1 - |
14 |
net-p2p/vuze/files/build.xml | 68 -------- |
15 |
net-p2p/vuze/files/vuze-4.1.0.0-pre | 75 --------- |
16 |
.../vuze-5.3.0.0-disable-shared-plugins.patch | 33 ---- |
17 |
.../vuze/files/vuze-5.3.0.0-disable-updaters.patch | 45 ------ |
18 |
net-p2p/vuze/files/vuze-5.3.0.0-java5.patch | 11 -- |
19 |
.../vuze/files/vuze-5.3.0.0-remove-classpath.patch | 10 -- |
20 |
.../vuze/files/vuze-5.3.0.0-unbundle-json.patch | 42 ----- |
21 |
net-p2p/vuze/files/vuze-5.7.2.0-disable-osx.patch | 71 --------- |
22 |
net-p2p/vuze/files/vuze-5.7.6.0-commons-lang.patch | 174 --------------------- |
23 |
net-p2p/vuze/files/vuze-5.7.6.0-log4j-12-api.patch | 130 --------------- |
24 |
net-p2p/vuze/files/vuze.desktop | 9 -- |
25 |
net-p2p/vuze/metadata.xml | 11 -- |
26 |
net-p2p/vuze/vuze-5.7.6.0-r2.ebuild | 147 ----------------- |
27 |
profiles/package.mask | 6 - |
28 |
15 files changed, 833 deletions(-) |
29 |
|
30 |
diff --git a/net-p2p/vuze/Manifest b/net-p2p/vuze/Manifest |
31 |
deleted file mode 100644 |
32 |
index 4756bf87d1bb..000000000000 |
33 |
--- a/net-p2p/vuze/Manifest |
34 |
+++ /dev/null |
35 |
@@ -1 +0,0 @@ |
36 |
-DIST Vuze_5760_source.zip 10928786 BLAKE2B df8bbb797f2a1b0c92bc19be122a0da3b6382dc80f51bb652026e3d68503d19ddb3b16e3bc6c333f12c8bfa52b014f85b0812fd5683fe4553040feff39ab77d8 SHA512 c4c1cc84d3c8ce31772bd677f105f6d00e0a6d867d6890b6a834c9e189bb1752e065a64308cdf1315bace1ca4783843553b45fbf3c15240c57584e2926ba92c5 |
37 |
|
38 |
diff --git a/net-p2p/vuze/files/build.xml b/net-p2p/vuze/files/build.xml |
39 |
deleted file mode 100644 |
40 |
index 7b060c14b2f2..000000000000 |
41 |
--- a/net-p2p/vuze/files/build.xml |
42 |
+++ /dev/null |
43 |
@@ -1,68 +0,0 @@ |
44 |
-<?xml version="1.0"?> |
45 |
- |
46 |
-<!-- |
47 |
- |
48 |
-NOTE: You may need to set the ANT_OPTS="-Xmx512m" env prop in order to compile this project successfully. |
49 |
- |
50 |
---> |
51 |
- |
52 |
- |
53 |
-<project default="jar" name="Azureus" basedir="."> |
54 |
- |
55 |
- <property name="root.dir" value="." /> <!-- REMINDER: this needs to be "." for public source --> |
56 |
- <property name="libs.dir" value="build/libs" /> |
57 |
- <property name="dist.dir" value="dist" /> |
58 |
- |
59 |
- <property name="generic.excludes" value="**/*.jar **/*.txt **/*.jardesc **/.classpath **/.project **/aereg.lib **/aereg.dll" /> |
60 |
- <property name="dist.jar.excludes" value="${generic.excludes} **/*.java " /> |
61 |
- <!-- <property name="dist.source.excludes" value="${generic.excludes} **/*.class" /> --> |
62 |
- |
63 |
- |
64 |
- <target name="init" > |
65 |
- <echo message="Building Azureus2.jar..." /> |
66 |
- |
67 |
- <tstamp/> |
68 |
- |
69 |
- <!-- <condition property="libs.dir" value="build/libs"> |
70 |
- <not> <isset property="libs.dir" /> </not> |
71 |
- </condition> --> |
72 |
- |
73 |
- <mkdir dir="${root.dir}/${dist.dir}" /> |
74 |
- </target> |
75 |
- |
76 |
- |
77 |
- <target name="compile" depends="init" > |
78 |
- <path id="libs.classpath"> |
79 |
- <fileset dir="${root.dir}/${libs.dir}" includes="**/*.jar" /> |
80 |
- </path> |
81 |
- |
82 |
- <javac srcdir="${root.dir}" destdir="${root.dir}" nowarn="yes" source="1.4" target="1.4" includeAntRuntime="no" debug="true" debuglevel="lines,vars,source" > |
83 |
- <classpath refid="libs.classpath" /> |
84 |
- </javac> |
85 |
- </target> |
86 |
- |
87 |
- |
88 |
- <target name="jar" depends="compile" > |
89 |
- <jar destfile="${root.dir}/${dist.dir}/Azureus2.jar" basedir="${root.dir}" excludes="${dist.jar.excludes}" > |
90 |
- <manifest> |
91 |
- <attribute name="Main-Class" value="org.gudy.azureus2.ui.common.Main" /> |
92 |
- <attribute name="Class-Path" value="Azureus2.jar apple-extensions.jar commons-cli.jar log4j.jar swt.jar swt-win32.jar swt-osx.jar" /> |
93 |
- </manifest> |
94 |
- </jar> |
95 |
- |
96 |
- <!-- <zip destfile="${dist.dir}/Azureus2_source.zip" basedir="." excludes="${dist.source.excludes}" /> --> |
97 |
- |
98 |
- </target> |
99 |
- |
100 |
- |
101 |
- <target name="clean" > |
102 |
- <delete quiet="true" > |
103 |
- <fileset dir="${root.dir}/com" includes="**/*.class"/> |
104 |
- <fileset dir="${root.dir}/org" includes="**/*.class"/> |
105 |
- </delete> |
106 |
- |
107 |
- <delete dir="${root.dir}/${dist.dir}" /> |
108 |
- </target> |
109 |
- |
110 |
-</project> |
111 |
- |
112 |
|
113 |
diff --git a/net-p2p/vuze/files/vuze-4.1.0.0-pre b/net-p2p/vuze/files/vuze-4.1.0.0-pre |
114 |
deleted file mode 100644 |
115 |
index 505a7e704df3..000000000000 |
116 |
--- a/net-p2p/vuze/files/vuze-4.1.0.0-pre |
117 |
+++ /dev/null |
118 |
@@ -1,75 +0,0 @@ |
119 |
-# |
120 |
-# Copyright (c) 2005, Petteri Räty <betelgeuse@g.o> |
121 |
-# Copyright (c) 2004, Jochen Maes <sejo@g.o> |
122 |
-# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@g.o> |
123 |
-# Copyright (c) 2004, Gentoo Foundation |
124 |
-# |
125 |
-# Licensed under the GNU General Public License, v2 |
126 |
- |
127 |
-# The Azureus config dir has moved |
128 |
-olddotazudir="${HOME}/.Azureus" |
129 |
-oldgentoocfg="${olddotazudir}/gentoo.config" |
130 |
-dotazudir="${HOME}/.azureus" |
131 |
-gentoocfg="${dotazudir}/gentoo.config" |
132 |
- |
133 |
-if [[ -f "${oldgentoocfg}" && -f "${gentoocfg}" ]]; then |
134 |
- cat > /dev/stderr <<END |
135 |
-You have gentoo.config files in both |
136 |
-${dotazudir} and |
137 |
-${olddotazudir} |
138 |
-${olddotazudir} is deprecated and you can delete this directory. |
139 |
- |
140 |
-END |
141 |
-fi |
142 |
- |
143 |
-create_initial_config() { |
144 |
- if [[ ! -e "${dotazudir}" ]] ; then |
145 |
- mkdir "${dotazudir}" |
146 |
- echo "Creating ${dotazudir}" |
147 |
- fi |
148 |
- |
149 |
- [[ ${UI} ]] && UI="swt" |
150 |
- |
151 |
- echo "Creating ${gentoocfg}" |
152 |
- |
153 |
- # Create the config file |
154 |
- cat > "${gentoocfg}" <<END |
155 |
-# User Interface options: |
156 |
-# console - console based |
157 |
-# swt - swt (GUI) based |
158 |
-UI="${UI}" |
159 |
- |
160 |
-# Options you want to pass to the java binary |
161 |
-JAVA_OPTIONS="" |
162 |
-END |
163 |
-} |
164 |
- |
165 |
-if [[ -f "${gentoocfg}" ]] ; then |
166 |
- . "${gentoocfg}" |
167 |
- echo "using ${gentoocfg}" |
168 |
-elif [[ -f "${oldgentoocfg}" ]]; then |
169 |
- . "${oldgentoocfg}" |
170 |
- echo "using ${oldgentoocfg}" |
171 |
-else |
172 |
- create_initial_config |
173 |
-fi |
174 |
- |
175 |
-if [[ -z "${UI}" && -n "${UI_OPTIONS}" ]]; then |
176 |
- echo '${UI_OPTIONS} is no longer supported. ${UI} should be used instead instead' > /dev/stderr |
177 |
- echo 'Unsetting ${UI_OPTIONS} and trying to migrate to ${UI}' > /dev/stderr |
178 |
- if [[ ${UI_OPTIONS} = *--ui=console* ]]; then |
179 |
- UI=console |
180 |
- elif [[ ${UI_OPTIONS} = *--ui=swt* ]]; then |
181 |
- UI=swt |
182 |
- else |
183 |
- echo 'Could not make $UI from $UI_OPTIONS' > /dev/stderr |
184 |
- fi |
185 |
- unset UI_OPTIONS |
186 |
-fi |
187 |
- |
188 |
-if [[ -z "${UI}" ]]; then |
189 |
- echo '$UI not set defaulting to swt' > /dev/stderr |
190 |
- UI="swt" |
191 |
-fi |
192 |
- |
193 |
-[[ ! -e "${dotazudir}" ]] && create_initial_config |
194 |
|
195 |
diff --git a/net-p2p/vuze/files/vuze-5.3.0.0-disable-shared-plugins.patch b/net-p2p/vuze/files/vuze-5.3.0.0-disable-shared-plugins.patch |
196 |
deleted file mode 100644 |
197 |
index b459c8b38308..000000000000 |
198 |
--- a/net-p2p/vuze/files/vuze-5.3.0.0-disable-shared-plugins.patch |
199 |
+++ /dev/null |
200 |
@@ -1,33 +0,0 @@ |
201 |
-Disallow users to install into the shared plugin directory, |
202 |
-which they won't have write access to. This doesn't disable |
203 |
-shared plugins, just removes the installation UI. |
204 |
- |
205 |
- |
206 |
---- a/org/gudy/azureus2/ui/swt/pluginsinstaller/IPWListPanel.java |
207 |
-+++ b/org/gudy/azureus2/ui/swt/pluginsinstaller/IPWListPanel.java |
208 |
-@@ -234,13 +234,13 @@ public class IPWListPanel extends AbstractWizardPanel<InstallPluginWizard> { |
209 |
- } |
210 |
- |
211 |
- public boolean |
212 |
-- isNextEnabled() |
213 |
-+ isFinishEnabled() |
214 |
- { |
215 |
- return(((InstallPluginWizard)wizard).getPluginList().size() > 0 ); |
216 |
- } |
217 |
- |
218 |
-- public IWizardPanel<InstallPluginWizard> getNextPanel() { |
219 |
-- return new IPWInstallModePanel(wizard,this); |
220 |
-+ public IWizardPanel<InstallPluginWizard> getFinishPanel() { |
221 |
-+ return new IPWFinishPanel(wizard,this); |
222 |
- } |
223 |
- |
224 |
- public void updateList() { |
225 |
-@@ -252,7 +252,7 @@ public class IPWListPanel extends AbstractWizardPanel<InstallPluginWizard> { |
226 |
- } |
227 |
- } |
228 |
- wizard.setPluginList( list ); |
229 |
-- wizard.setNextEnabled( isNextEnabled() ); |
230 |
-+ wizard.setFinishEnabled( isFinishEnabled() ); |
231 |
- |
232 |
- } |
233 |
- } |
234 |
|
235 |
diff --git a/net-p2p/vuze/files/vuze-5.3.0.0-disable-updaters.patch b/net-p2p/vuze/files/vuze-5.3.0.0-disable-updaters.patch |
236 |
deleted file mode 100644 |
237 |
index 1bf78cf1009d..000000000000 |
238 |
--- a/net-p2p/vuze/files/vuze-5.3.0.0-disable-updaters.patch |
239 |
+++ /dev/null |
240 |
@@ -1,45 +0,0 @@ |
241 |
---- a/org/gudy/azureus2/pluginsimpl/local/PluginInitializer.java |
242 |
-+++ b/org/gudy/azureus2/pluginsimpl/local/PluginInitializer.java |
243 |
-@@ -130,18 +130,6 @@ PluginInitializer |
244 |
- "Magnet URI Handler", |
245 |
- "true", |
246 |
- "false"}, |
247 |
-- { PluginManagerDefaults.PID_CORE_UPDATE_CHECKER, |
248 |
-- "org.gudy.azureus2.update.CoreUpdateChecker", |
249 |
-- "azbpcoreupdater", |
250 |
-- "CoreUpdater", |
251 |
-- "true", |
252 |
-- "true"}, |
253 |
-- { PluginManagerDefaults.PID_CORE_PATCH_CHECKER, |
254 |
-- "org.gudy.azureus2.update.CorePatchChecker", |
255 |
-- "azbpcorepatcher", |
256 |
-- "CorePatcher", |
257 |
-- "true", |
258 |
-- "true"}, |
259 |
- { PluginManagerDefaults.PID_PLATFORM_CHECKER, |
260 |
- "org.gudy.azureus2.platform.PlatformManagerPluginDelegate", |
261 |
- "azplatform2", |
262 |
---- a/org/gudy/azureus2/pluginsimpl/update/PluginUpdatePlugin.java |
263 |
-+++ b/org/gudy/azureus2/pluginsimpl/update/PluginUpdatePlugin.java |
264 |
-@@ -562,6 +562,10 @@ PluginUpdatePlugin |
265 |
- } |
266 |
- } |
267 |
- |
268 |
-+ if ( pi.getPluginState().isShared()) { |
269 |
-+ continue; |
270 |
-+ } |
271 |
-+ |
272 |
- String mand = pi.getPluginProperties().getProperty( "plugin.mandatory"); |
273 |
- |
274 |
- boolean pi_mandatory = mand != null && mand.trim().toLowerCase().equals("true"); |
275 |
---- a/org/gudy/azureus2/ui/swt/updater2/SWTUpdateChecker.java |
276 |
-+++ b/org/gudy/azureus2/ui/swt/updater2/SWTUpdateChecker.java |
277 |
-@@ -64,7 +64,7 @@ public class SWTUpdateChecker implements UpdatableComponent |
278 |
- public static void |
279 |
- initialize() |
280 |
- { |
281 |
-- PluginInitializer.getDefaultInterface().getUpdateManager().registerUpdatableComponent(new SWTUpdateChecker(),true); |
282 |
-+// PluginInitializer.getDefaultInterface().getUpdateManager().registerUpdatableComponent(new SWTUpdateChecker(),true); |
283 |
- } |
284 |
- |
285 |
- public SWTUpdateChecker() { |
286 |
|
287 |
diff --git a/net-p2p/vuze/files/vuze-5.3.0.0-java5.patch b/net-p2p/vuze/files/vuze-5.3.0.0-java5.patch |
288 |
deleted file mode 100644 |
289 |
index b6d2a59c43a2..000000000000 |
290 |
--- a/net-p2p/vuze/files/vuze-5.3.0.0-java5.patch |
291 |
+++ /dev/null |
292 |
@@ -1,11 +0,0 @@ |
293 |
---- a/build.xml |
294 |
-+++ b/build.xml |
295 |
-@@ -36,7 +36,7 @@ NOTE: You may need to set the ANT_OPTS="-Xmx512m" env prop in order to compil |
296 |
- <fileset dir="${root.dir}/${libs.dir}" includes="**/*.jar" /> |
297 |
- </path> |
298 |
- |
299 |
-- <javac srcdir="${root.dir}" destdir="${root.dir}" nowarn="yes" source="1.4" target="1.4" includeAntRuntime="no" debug="true" debuglevel="lines,vars,source" > |
300 |
-+ <javac encoding="8859_1" srcdir="${root.dir}" destdir="${root.dir}" nowarn="yes" includeAntRuntime="no" debug="true" debuglevel="lines,vars,source" > |
301 |
- <classpath refid="libs.classpath" /> |
302 |
- </javac> |
303 |
- </target> |
304 |
|
305 |
diff --git a/net-p2p/vuze/files/vuze-5.3.0.0-remove-classpath.patch b/net-p2p/vuze/files/vuze-5.3.0.0-remove-classpath.patch |
306 |
deleted file mode 100644 |
307 |
index 290b902203a8..000000000000 |
308 |
--- a/net-p2p/vuze/files/vuze-5.3.0.0-remove-classpath.patch |
309 |
+++ /dev/null |
310 |
@@ -1,10 +0,0 @@ |
311 |
---- a/build.xml |
312 |
-+++ b/build.xml |
313 |
-@@ -46,7 +46,6 @@ NOTE: You may need to set the ANT_OPTS="-Xmx512m" env prop in order to compil |
314 |
- <jar destfile="${root.dir}/${dist.dir}/Azureus2.jar" basedir="${root.dir}" excludes="${dist.jar.excludes}" > |
315 |
- <manifest> |
316 |
- <attribute name="Main-Class" value="org.gudy.azureus2.ui.common.Main" /> |
317 |
-- <attribute name="Class-Path" value="Azureus2.jar apple-extensions.jar commons-cli.jar log4j.jar swt.jar swt-win32.jar swt-osx.jar" /> |
318 |
- </manifest> |
319 |
- </jar> |
320 |
- |
321 |
|
322 |
diff --git a/net-p2p/vuze/files/vuze-5.3.0.0-unbundle-json.patch b/net-p2p/vuze/files/vuze-5.3.0.0-unbundle-json.patch |
323 |
deleted file mode 100644 |
324 |
index 18d5ac7670ff..000000000000 |
325 |
--- a/net-p2p/vuze/files/vuze-5.3.0.0-unbundle-json.patch |
326 |
+++ /dev/null |
327 |
@@ -1,42 +0,0 @@ |
328 |
---- a/com/aelitis/azureus/util/ImportExportUtils.java |
329 |
-+++ b/com/aelitis/azureus/util/ImportExportUtils.java |
330 |
-@@ -360,7 +360,7 @@ public final class ImportExportUtils { |
331 |
- |
332 |
- throws IOException |
333 |
- { |
334 |
-- List l = new JSONArray(data.length); |
335 |
-+ List l = new JSONArray(); |
336 |
- |
337 |
- map.put( key, l ); |
338 |
- |
339 |
---- a/com/aelitis/azureus/util/JSONUtils.java |
340 |
-+++ b/com/aelitis/azureus/util/JSONUtils.java |
341 |
-@@ -74,7 +74,7 @@ public class JSONUtils |
342 |
- * @since 3.0.1.5 |
343 |
- */ |
344 |
- public static JSONObject encodeToJSONObject(Map map) { |
345 |
-- JSONObject newMap = new JSONObject((int)(map.size()*1.5)); |
346 |
-+ JSONObject newMap = new JSONObject(); |
347 |
- |
348 |
- for (Map.Entry<String, Object> entry: ((Map<String,Object>)map).entrySet()){ |
349 |
- String key = entry.getKey(); |
350 |
-@@ -105,9 +105,7 @@ public class JSONUtils |
351 |
- */ |
352 |
- public static String encodeToJSON(Map map) { |
353 |
- JSONObject jobj = encodeToJSONObject(map); |
354 |
-- StringBuilder sb = new StringBuilder(8192); |
355 |
-- jobj.toString( sb ); |
356 |
-- return( sb.toString()); |
357 |
-+ return( jobj.toString()); |
358 |
- } |
359 |
- |
360 |
- public static String encodeToJSON(Collection list) { |
361 |
-@@ -138,7 +136,7 @@ public class JSONUtils |
362 |
- * @since 3.0.1.5 |
363 |
- */ |
364 |
- private static JSONArray encodeToJSONArray(Collection list) { |
365 |
-- JSONArray newList = new JSONArray(list.size()); |
366 |
-+ JSONArray newList = new JSONArray(); |
367 |
- |
368 |
- for ( Object value: list ){ |
369 |
- |
370 |
|
371 |
diff --git a/net-p2p/vuze/files/vuze-5.7.2.0-disable-osx.patch b/net-p2p/vuze/files/vuze-5.7.2.0-disable-osx.patch |
372 |
deleted file mode 100644 |
373 |
index 6ae2301e75e3..000000000000 |
374 |
--- a/net-p2p/vuze/files/vuze-5.7.2.0-disable-osx.patch |
375 |
+++ /dev/null |
376 |
@@ -1,71 +0,0 @@ |
377 |
-diff --git a/org/gudy/azureus2/ui/swt/mainwindow/SWTThread.java b/org/gudy/azureus2/ui/swt/mainwindow/SWTThread.java |
378 |
-index 256daff..68010b9 100644 |
379 |
---- a/org/gudy/azureus2/ui/swt/mainwindow/SWTThread.java |
380 |
-+++ b/org/gudy/azureus2/ui/swt/mainwindow/SWTThread.java |
381 |
-@@ -231,66 +231,6 @@ public class SWTThread { |
382 |
- } |
383 |
- }); |
384 |
- |
385 |
-- if (Constants.isOSX) { |
386 |
-- |
387 |
-- // On Cocoa, we get a Close trigger on display. Need to check if all |
388 |
-- // platforms send this. |
389 |
-- display.addListener(SWT.Close, new Listener() { |
390 |
-- public void handleEvent(Event event) { |
391 |
-- UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions(); |
392 |
-- if (uiFunctions != null) { |
393 |
-- event.doit = uiFunctions.dispose(false, false); |
394 |
-- } |
395 |
-- } |
396 |
-- }); |
397 |
-- |
398 |
-- String platform = SWT.getPlatform(); |
399 |
-- // use reflection here so we decouple generic SWT from OSX specific stuff to an extent |
400 |
-- |
401 |
-- if (platform.equals("carbon")) { |
402 |
-- try { |
403 |
-- |
404 |
-- Class<?> ehancerClass = Class.forName("org.gudy.azureus2.ui.swt.osx.CarbonUIEnhancer"); |
405 |
-- |
406 |
-- Constructor<?> constructor = ehancerClass.getConstructor(new Class[] {}); |
407 |
-- |
408 |
-- constructor.newInstance(new Object[] {}); |
409 |
-- |
410 |
-- } catch (Throwable e) { |
411 |
-- |
412 |
-- Debug.printStackTrace(e); |
413 |
-- } |
414 |
-- } else if (platform.equals("cocoa")) { |
415 |
-- try { |
416 |
-- |
417 |
-- Class<?> ehancerClass = Class.forName("org.gudy.azureus2.ui.swt.osx.CocoaUIEnhancer"); |
418 |
-- |
419 |
-- Method mGetInstance = ehancerClass.getMethod("getInstance", new Class[0]); |
420 |
-- Object claObj = mGetInstance.invoke(null, new Object[0] ); |
421 |
-- |
422 |
-- Method mHookAppMenu = claObj.getClass().getMethod("hookApplicationMenu", new Class[] {}); |
423 |
-- if (mHookAppMenu != null) { |
424 |
-- mHookAppMenu.invoke(claObj, new Object[0]); |
425 |
-- } |
426 |
-- |
427 |
-- Method mHookDocOpen = claObj.getClass().getMethod("hookDocumentOpen", new Class[] {}); |
428 |
-- if (mHookDocOpen != null) { |
429 |
-- mHookDocOpen.invoke(claObj, new Object[0]); |
430 |
-- } |
431 |
-- |
432 |
-- Method mIsRetinaDisplay = claObj.getClass().getMethod("isRetinaDisplay"); |
433 |
-- if (mIsRetinaDisplay != null) { |
434 |
-- isRetinaDisplay = (Boolean) mIsRetinaDisplay.invoke(claObj); |
435 |
-- } |
436 |
-- |
437 |
-- |
438 |
-- } catch (Throwable e) { |
439 |
-- |
440 |
-- Debug.printStackTrace(e); |
441 |
-- } |
442 |
-- } |
443 |
-- } |
444 |
-- |
445 |
- if (app != null) { |
446 |
- app.runInSWTThread(); |
447 |
- runner = new Thread(new AERunnable() { |
448 |
|
449 |
diff --git a/net-p2p/vuze/files/vuze-5.7.6.0-commons-lang.patch b/net-p2p/vuze/files/vuze-5.7.6.0-commons-lang.patch |
450 |
deleted file mode 100644 |
451 |
index a03995d167a6..000000000000 |
452 |
--- a/net-p2p/vuze/files/vuze-5.7.6.0-commons-lang.patch |
453 |
+++ /dev/null |
454 |
@@ -1,174 +0,0 @@ |
455 |
-diff --git a/com/aelitis/azureus/core/metasearch/Result.java b/com/aelitis/azureus/core/metasearch/Result.java |
456 |
-index bec05e1..9588f9a 100644 |
457 |
---- a/com/aelitis/azureus/core/metasearch/Result.java |
458 |
-+++ b/com/aelitis/azureus/core/metasearch/Result.java |
459 |
-@@ -28,7 +28,7 @@ import java.util.Locale; |
460 |
- import java.util.Map; |
461 |
- import java.util.Random; |
462 |
- |
463 |
--import org.apache.commons.lang.Entities; |
464 |
-+import org.apache.commons.text.StringEscapeUtils; |
465 |
- import org.gudy.azureus2.core3.util.AENetworkClassifier; |
466 |
- import org.gudy.azureus2.core3.util.DisplayFormatters; |
467 |
- import org.gudy.azureus2.core3.util.HostNameToIPResolver; |
468 |
-@@ -464,6 +464,6 @@ public abstract class Result { |
469 |
- if ( input == null ){ |
470 |
- return( null ); |
471 |
- } |
472 |
-- return( Entities.HTML40.unescape( input )); |
473 |
-+ return( StringEscapeUtils.unescapeHtml4( input )); |
474 |
- } |
475 |
- } |
476 |
-diff --git a/com/aelitis/azureus/core/metasearch/impl/web/WebResult.java b/com/aelitis/azureus/core/metasearch/impl/web/WebResult.java |
477 |
-index 2d353b8..e03916b 100644 |
478 |
---- a/com/aelitis/azureus/core/metasearch/impl/web/WebResult.java |
479 |
-+++ b/com/aelitis/azureus/core/metasearch/impl/web/WebResult.java |
480 |
-@@ -22,7 +22,7 @@ package com.aelitis.azureus.core.metasearch.impl.web; |
481 |
- import java.util.Date; |
482 |
- import java.util.StringTokenizer; |
483 |
- |
484 |
--import org.apache.commons.lang.*; |
485 |
-+import org.apache.commons.text.StringEscapeUtils; |
486 |
- import org.gudy.azureus2.core3.util.Base32; |
487 |
- import org.gudy.azureus2.core3.util.ByteFormatter; |
488 |
- import org.gudy.azureus2.core3.util.Debug; |
489 |
-@@ -87,14 +87,14 @@ public class WebResult extends Result { |
490 |
- public void setNameFromHTML(String name) { |
491 |
- if(name != null) { |
492 |
- name = removeHTMLTags(name); |
493 |
-- this.name = Entities.HTML40.unescape(name); |
494 |
-+ this.name = StringEscapeUtils.unescapeHtml4(name); |
495 |
- } |
496 |
- } |
497 |
- |
498 |
- public void setCommentsFromHTML(String comments) { |
499 |
- if(comments != null) { |
500 |
- comments = removeHTMLTags(comments); |
501 |
-- comments = Entities.HTML40.unescape(comments); |
502 |
-+ comments = StringEscapeUtils.unescapeHtml4(comments); |
503 |
- comments = comments.replaceAll(",", ""); |
504 |
- comments = comments.replaceAll(" ", ""); |
505 |
- try{ |
506 |
-@@ -107,7 +107,7 @@ public class WebResult extends Result { |
507 |
- public void setCategoryFromHTML(String category) { |
508 |
- if(category != null) { |
509 |
- category = removeHTMLTags(category); |
510 |
-- this.category = Entities.HTML40.unescape(category).trim(); |
511 |
-+ this.category = StringEscapeUtils.unescapeHtml4(category).trim(); |
512 |
- /*int separator = this.category.indexOf(">"); |
513 |
- |
514 |
- if(separator != -1) { |
515 |
-@@ -136,7 +136,7 @@ public class WebResult extends Result { |
516 |
- public void setNbPeersFromHTML(String nbPeers) { |
517 |
- if(nbPeers != null) { |
518 |
- nbPeers = removeHTMLTags(nbPeers); |
519 |
-- String nbPeersS = Entities.HTML40.unescape(nbPeers); |
520 |
-+ String nbPeersS = StringEscapeUtils.unescapeHtml4(nbPeers); |
521 |
- nbPeersS = nbPeersS.replaceAll(",", ""); |
522 |
- nbPeersS = nbPeersS.replaceAll(" ", ""); |
523 |
- try { |
524 |
-@@ -151,7 +151,7 @@ public class WebResult extends Result { |
525 |
- public void setNbSeedsFromHTML(String nbSeeds) { |
526 |
- if(nbSeeds != null) { |
527 |
- nbSeeds = removeHTMLTags(nbSeeds); |
528 |
-- String nbSeedsS = Entities.HTML40.unescape(nbSeeds); |
529 |
-+ String nbSeedsS = StringEscapeUtils.unescapeHtml4(nbSeeds); |
530 |
- nbSeedsS = nbSeedsS.replaceAll(",", ""); |
531 |
- nbSeedsS = nbSeedsS.replaceAll(" ", ""); |
532 |
- try { |
533 |
-@@ -166,7 +166,7 @@ public class WebResult extends Result { |
534 |
- public void setNbSuperSeedsFromHTML(String nbSuperSeeds) { |
535 |
- if(nbSuperSeeds != null) { |
536 |
- nbSuperSeeds = removeHTMLTags(nbSuperSeeds); |
537 |
-- String nbSuperSeedsS = Entities.HTML40.unescape(nbSuperSeeds); |
538 |
-+ String nbSuperSeedsS = StringEscapeUtils.unescapeHtml4(nbSuperSeeds); |
539 |
- nbSuperSeedsS = nbSuperSeedsS.replaceAll(",", ""); |
540 |
- nbSuperSeedsS = nbSuperSeedsS.replaceAll(" ", ""); |
541 |
- try { |
542 |
-@@ -248,7 +248,7 @@ public class WebResult extends Result { |
543 |
- public void setPublishedDateFromHTML(String publishedDate) { |
544 |
- if(publishedDate != null && publishedDate.length() > 0) { |
545 |
- publishedDate = removeHTMLTags(publishedDate); |
546 |
-- String publishedDateS = Entities.HTML40.unescape(publishedDate).replace((char)160,(char)32); |
547 |
-+ String publishedDateS = StringEscapeUtils.unescapeHtml4(publishedDate).replace((char)160,(char)32); |
548 |
- this.publishedDate = dateParser.parseDate(publishedDateS); |
549 |
- } |
550 |
- } |
551 |
-@@ -257,7 +257,7 @@ public class WebResult extends Result { |
552 |
- public void setSizeFromHTML(String size) { |
553 |
- if(size != null) { |
554 |
- size = removeHTMLTags(size); |
555 |
-- String sizeS = Entities.HTML40.unescape(size).replace((char)160,(char)32); |
556 |
-+ String sizeS = StringEscapeUtils.unescapeHtml4(size).replace((char)160,(char)32); |
557 |
- sizeS = sizeS.replaceAll("<[^>]+>", " "); |
558 |
- //Add a space between the digits and unit if there is none |
559 |
- sizeS = sizeS.replaceFirst("(\\d)([a-zA-Z])", "$1 $2"); |
560 |
-@@ -303,7 +303,7 @@ public class WebResult extends Result { |
561 |
- public void setVotesFromHTML(String votes_str) { |
562 |
- if(votes_str != null) { |
563 |
- votes_str = removeHTMLTags(votes_str); |
564 |
-- votes_str = Entities.HTML40.unescape(votes_str); |
565 |
-+ votes_str = StringEscapeUtils.unescapeHtml4(votes_str); |
566 |
- votes_str = votes_str.replaceAll(",", ""); |
567 |
- votes_str = votes_str.replaceAll(" ", ""); |
568 |
- try { |
569 |
-@@ -317,7 +317,7 @@ public class WebResult extends Result { |
570 |
- public void setVotesDownFromHTML(String votes_str) { |
571 |
- if(votes_str != null) { |
572 |
- votes_str = removeHTMLTags(votes_str); |
573 |
-- votes_str = Entities.HTML40.unescape(votes_str); |
574 |
-+ votes_str = StringEscapeUtils.unescapeHtml4(votes_str); |
575 |
- votes_str = votes_str.replaceAll(",", ""); |
576 |
- votes_str = votes_str.replaceAll(" ", ""); |
577 |
- try { |
578 |
-diff --git a/org/gudy/azureus2/core3/util/AddressUtils.java b/org/gudy/azureus2/core3/util/AddressUtils.java |
579 |
-index 2558313..8cafd8a 100644 |
580 |
---- a/org/gudy/azureus2/core3/util/AddressUtils.java |
581 |
-+++ b/org/gudy/azureus2/core3/util/AddressUtils.java |
582 |
-@@ -592,11 +592,11 @@ AddressUtils |
583 |
- try{ |
584 |
- // unfortunately we have an incompatible base64 standard in i2p, they replaced / with ~ and + with - |
585 |
- |
586 |
-- char[] encoded = to_decode.toCharArray(); |
587 |
-+ byte[] encoded = to_decode.getBytes(); |
588 |
- |
589 |
- for ( int i=0;i<encoded.length;i++){ |
590 |
- |
591 |
-- char c = encoded[i]; |
592 |
-+ byte c = encoded[i]; |
593 |
- |
594 |
- if ( c == '~' ){ |
595 |
- encoded[i] = '/'; |
596 |
-diff --git a/org/gudy/azureus2/pluginsimpl/local/utils/xml/simpleparser/SimpleXMLParserDocumentImpl.java b/org/gudy/azureus2/pluginsimpl/local/utils/xml/simpleparser/SimpleXMLParserDocumentImpl.java |
597 |
-index 1035997..5270c35 100644 |
598 |
---- a/org/gudy/azureus2/pluginsimpl/local/utils/xml/simpleparser/SimpleXMLParserDocumentImpl.java |
599 |
-+++ b/org/gudy/azureus2/pluginsimpl/local/utils/xml/simpleparser/SimpleXMLParserDocumentImpl.java |
600 |
-@@ -25,7 +25,7 @@ package org.gudy.azureus2.pluginsimpl.local.utils.xml.simpleparser; |
601 |
- import javax.xml.parsers.*; |
602 |
- |
603 |
- import org.xml.sax.*; |
604 |
--import org.apache.commons.lang.Entities; |
605 |
-+import org.apache.commons.text.StringEscapeUtils; |
606 |
- import org.gudy.azureus2.core3.util.AENetworkClassifier; |
607 |
- import org.gudy.azureus2.core3.util.Constants; |
608 |
- import org.gudy.azureus2.core3.util.Debug; |
609 |
-@@ -679,17 +679,8 @@ SimpleXMLParserDocumentImpl |
610 |
- replacement = new String( buffer, 0, buffer_pos ); |
611 |
- |
612 |
- }else{ |
613 |
-- |
614 |
-- int num = Entities.HTML40.entityValue( ref ); |
615 |
-- |
616 |
-- if ( num != -1 ){ |
617 |
-- |
618 |
-- replacement = "&#" + num + ";"; |
619 |
-- |
620 |
-- }else{ |
621 |
-- |
622 |
-- replacement = new String( buffer, 0, buffer_pos ); |
623 |
-- } |
624 |
-+ |
625 |
-+ replacement = StringEscapeUtils.escapeHtml4(ref); |
626 |
- } |
627 |
- |
628 |
- char[] chars = replacement.toCharArray(); |
629 |
|
630 |
diff --git a/net-p2p/vuze/files/vuze-5.7.6.0-log4j-12-api.patch b/net-p2p/vuze/files/vuze-5.7.6.0-log4j-12-api.patch |
631 |
deleted file mode 100644 |
632 |
index 4bcce5d5f32d..000000000000 |
633 |
--- a/net-p2p/vuze/files/vuze-5.7.6.0-log4j-12-api.patch |
634 |
+++ /dev/null |
635 |
@@ -1,130 +0,0 @@ |
636 |
-From d960f15294c451bda338e4d9998e8d009970f380 Mon Sep 17 00:00:00 2001 |
637 |
-From: Yuan Liao <liaoyuan@×××××.com> |
638 |
-Date: Fri, 18 Feb 2022 12:47:20 -0800 |
639 |
-Subject: [PATCH] Migrate from Log4j 1.2 to log4j-1.2-api bridge from Log4j 2 |
640 |
- |
641 |
-Signed-off-by: Yuan Liao <liaoyuan@×××××.com> |
642 |
---- |
643 |
- org/gudy/azureus2/ui/common/Main.java | 7 +++--- |
644 |
- .../azureus2/ui/console/ConsoleInput.java | 8 +++--- |
645 |
- .../azureus2/ui/console/commands/Log.java | 25 ++++++++++--------- |
646 |
- 3 files changed, 21 insertions(+), 19 deletions(-) |
647 |
- |
648 |
-diff --git a/org/gudy/azureus2/ui/common/Main.java b/org/gudy/azureus2/ui/common/Main.java |
649 |
-index 8c533fb..f93e685 100644 |
650 |
---- a/org/gudy/azureus2/ui/common/Main.java |
651 |
-+++ b/org/gudy/azureus2/ui/common/Main.java |
652 |
-@@ -43,7 +43,8 @@ import org.apache.log4j.Appender; |
653 |
- import org.apache.log4j.ConsoleAppender; |
654 |
- import org.apache.log4j.Logger; |
655 |
- import org.apache.log4j.PatternLayout; |
656 |
--import org.apache.log4j.varia.DenyAllFilter; |
657 |
-+import org.apache.log4j.bridge.FilterWrapper; |
658 |
-+import org.apache.logging.log4j.core.filter.DenyAllFilter; |
659 |
- |
660 |
- import com.aelitis.azureus.core.*; |
661 |
- import com.aelitis.azureus.core.impl.AzureusCoreSingleInstanceClient; |
662 |
-@@ -113,9 +114,9 @@ public class Main { |
663 |
- public static void initRootLogger() { |
664 |
- if (Logger.getRootLogger().getAppender("ConsoleAppender")==null) { |
665 |
- Appender app; |
666 |
-- app = new ConsoleAppender(new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN)); |
667 |
-+ app = new ConsoleAppender(); |
668 |
- app.setName("ConsoleAppender"); |
669 |
-- app.addFilter( new DenyAllFilter() ); //'log off' by default |
670 |
-+ app.addFilter( new FilterWrapper(DenyAllFilter.newBuilder().build()) ); //'log off' by default |
671 |
- Logger.getRootLogger().addAppender(app); |
672 |
- } |
673 |
- } |
674 |
-diff --git a/org/gudy/azureus2/ui/console/ConsoleInput.java b/org/gudy/azureus2/ui/console/ConsoleInput.java |
675 |
-index d660bbb..0559f72 100644 |
676 |
---- a/org/gudy/azureus2/ui/console/ConsoleInput.java |
677 |
-+++ b/org/gudy/azureus2/ui/console/ConsoleInput.java |
678 |
-@@ -34,8 +34,8 @@ import java.util.Vector; |
679 |
- import org.apache.log4j.Appender; |
680 |
- import org.apache.log4j.ConsoleAppender; |
681 |
- import org.apache.log4j.Logger; |
682 |
--import org.apache.log4j.PatternLayout; |
683 |
--import org.apache.log4j.varia.DenyAllFilter; |
684 |
-+import org.apache.log4j.bridge.FilterWrapper; |
685 |
-+import org.apache.logging.log4j.core.filter.DenyAllFilter; |
686 |
- import org.gudy.azureus2.core3.config.COConfigurationManager; |
687 |
- import org.gudy.azureus2.core3.download.DownloadManager; |
688 |
- import org.gudy.azureus2.core3.download.DownloadManagerState; |
689 |
-@@ -157,9 +157,9 @@ public class ConsoleInput extends Thread { |
690 |
- |
691 |
- if (Logger.getRootLogger().getAppender("ConsoleAppender")==null) { |
692 |
- Appender app; |
693 |
-- app = new ConsoleAppender(new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN)); |
694 |
-+ app = new ConsoleAppender(); |
695 |
- app.setName("ConsoleAppender"); |
696 |
-- app.addFilter( new DenyAllFilter() ); //'log off' by default |
697 |
-+ app.addFilter( new FilterWrapper(DenyAllFilter.newBuilder().build()) ); //'log off' by default |
698 |
- Logger.getRootLogger().addAppender(app); |
699 |
- } |
700 |
- |
701 |
-diff --git a/org/gudy/azureus2/ui/console/commands/Log.java b/org/gudy/azureus2/ui/console/commands/Log.java |
702 |
-index 43f66d5..8e9b222 100644 |
703 |
---- a/org/gudy/azureus2/ui/console/commands/Log.java |
704 |
-+++ b/org/gudy/azureus2/ui/console/commands/Log.java |
705 |
-@@ -18,10 +18,13 @@ import org.apache.commons.cli.Option; |
706 |
- import org.apache.commons.cli.Options; |
707 |
- import org.apache.log4j.Appender; |
708 |
- import org.apache.log4j.ConsoleAppender; |
709 |
--import org.apache.log4j.FileAppender; |
710 |
- import org.apache.log4j.Logger; |
711 |
- import org.apache.log4j.PatternLayout; |
712 |
--import org.apache.log4j.varia.DenyAllFilter; |
713 |
-+import org.apache.log4j.bridge.AppenderWrapper; |
714 |
-+import org.apache.log4j.bridge.FilterWrapper; |
715 |
-+import org.apache.log4j.bridge.LayoutAdapter; |
716 |
-+import org.apache.logging.log4j.core.appender.FileAppender; |
717 |
-+import org.apache.logging.log4j.core.filter.DenyAllFilter; |
718 |
- import org.gudy.azureus2.plugins.PluginInterface; |
719 |
- import org.gudy.azureus2.plugins.logging.LoggerChannel; |
720 |
- import org.gudy.azureus2.plugins.logging.LoggerChannelListener; |
721 |
-@@ -54,7 +57,7 @@ public class Log extends OptionsConsoleCommand { |
722 |
- String subcommand = (String) args.get(0); |
723 |
- if ("off".equalsIgnoreCase(subcommand) ) { |
724 |
- if ( args.size() == 1 ){ |
725 |
-- con.addFilter(new DenyAllFilter()); |
726 |
-+ con.addFilter(new FilterWrapper(DenyAllFilter.newBuilder().build())); |
727 |
- ci.out.println("> Console logging off"); |
728 |
- }else{ |
729 |
- |
730 |
-@@ -81,25 +84,23 @@ public class Log extends OptionsConsoleCommand { |
731 |
- { |
732 |
- // send log output to a file |
733 |
- String filename = commandLine.getOptionValue('f'); |
734 |
-- |
735 |
-- try |
736 |
-- { |
737 |
-- Appender newAppender = new FileAppender(new PatternLayout("%d{ISO8601} %c{1}-%p: %m%n"), filename, true); |
738 |
-+ |
739 |
-+ Appender newAppender = new AppenderWrapper(FileAppender.newBuilder() |
740 |
-+ .setLayout(new LayoutAdapter(new PatternLayout("%d{ISO8601} %c{1}-%p: %m%n"))) |
741 |
-+ .withFileName(filename) |
742 |
-+ .withAppend(true) |
743 |
-+ .build()); |
744 |
- newAppender.setName("ConsoleAppender"); |
745 |
- Logger.getRootLogger().removeAppender(con); |
746 |
- Logger.getRootLogger().addAppender(newAppender); |
747 |
- ci.out.println("> Logging to filename: " + filename); |
748 |
-- } catch (IOException e) |
749 |
-- { |
750 |
-- ci.out.println("> Unable to log to file: " + filename + ": " + e); |
751 |
-- } |
752 |
- } |
753 |
- else |
754 |
- { |
755 |
- if( ! (con instanceof ConsoleAppender) ) |
756 |
- { |
757 |
- Logger.getRootLogger().removeAppender(con); |
758 |
-- con = new ConsoleAppender(new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN)); |
759 |
-+ con = new ConsoleAppender(); |
760 |
- con.setName("ConsoleAppender"); |
761 |
- Logger.getRootLogger().addAppender(con); |
762 |
- } |
763 |
--- |
764 |
-2.34.1 |
765 |
- |
766 |
|
767 |
diff --git a/net-p2p/vuze/files/vuze.desktop b/net-p2p/vuze/files/vuze.desktop |
768 |
deleted file mode 100644 |
769 |
index cee9fcae3824..000000000000 |
770 |
--- a/net-p2p/vuze/files/vuze.desktop |
771 |
+++ /dev/null |
772 |
@@ -1,9 +0,0 @@ |
773 |
-[Desktop Entry] |
774 |
-Name=Vuze |
775 |
-Comment=Vuze BitTorrent Client |
776 |
-Exec=vuze |
777 |
-Icon=vuze |
778 |
-Terminal=false |
779 |
-Categories=Network; |
780 |
-Type=Application |
781 |
-MimeType=application/x-bittorrent; |
782 |
|
783 |
diff --git a/net-p2p/vuze/metadata.xml b/net-p2p/vuze/metadata.xml |
784 |
deleted file mode 100644 |
785 |
index 71a06860d27c..000000000000 |
786 |
--- a/net-p2p/vuze/metadata.xml |
787 |
+++ /dev/null |
788 |
@@ -1,11 +0,0 @@ |
789 |
-<?xml version="1.0" encoding="UTF-8"?> |
790 |
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
791 |
-<pkgmetadata> |
792 |
- <maintainer type="project"> |
793 |
- <email>java@g.o</email> |
794 |
- <name>Java</name> |
795 |
- </maintainer> |
796 |
- <upstream> |
797 |
- <remote-id type="sourceforge">azureus</remote-id> |
798 |
- </upstream> |
799 |
-</pkgmetadata> |
800 |
|
801 |
diff --git a/net-p2p/vuze/vuze-5.7.6.0-r2.ebuild b/net-p2p/vuze/vuze-5.7.6.0-r2.ebuild |
802 |
deleted file mode 100644 |
803 |
index 476d04539447..000000000000 |
804 |
--- a/net-p2p/vuze/vuze-5.7.6.0-r2.ebuild |
805 |
+++ /dev/null |
806 |
@@ -1,147 +0,0 @@ |
807 |
-# Copyright 1999-2022 Gentoo Authors |
808 |
-# Distributed under the terms of the GNU General Public License v2 |
809 |
- |
810 |
-EAPI=8 |
811 |
- |
812 |
-JAVA_PKG_IUSE="source" |
813 |
- |
814 |
-inherit desktop edos2unix java-pkg-2 java-ant-2 xdg-utils |
815 |
- |
816 |
-MY_PV=$(ver_rs 1- "") |
817 |
-MY_SRC="Vuze_${MY_PV}" |
818 |
- |
819 |
-DESCRIPTION="BitTorrent client in Java, formerly called Azureus" |
820 |
-HOMEPAGE="https://www.vuze.com/" |
821 |
-SRC_URI="mirror://sourceforge/azureus/${PN}/${MY_SRC}/${MY_SRC}_source.zip" |
822 |
-LICENSE="GPL-2 BSD" |
823 |
- |
824 |
-SLOT="0" |
825 |
-KEYWORDS="amd64 ppc64 x86" |
826 |
- |
827 |
-# bundles parts of http://www.programmers-friend.org/ |
828 |
-# bundles bcprov - 1.37 required but not in the tree |
829 |
-CP_DEPEND=" |
830 |
- dev-java/log4j-12-api:2 |
831 |
- dev-java/log4j-core:2 |
832 |
- dev-java/swt:3.8[cairo] |
833 |
- dev-java/commons-cli:1 |
834 |
- dev-java/commons-text:0 |
835 |
- dev-java/json-simple:0" |
836 |
- |
837 |
-RDEPEND=" |
838 |
- ${CP_DEPEND} |
839 |
- >=virtual/jre-1.8:*" |
840 |
- |
841 |
-# does not compile with java 11, uses classes deprecated even in java 8 |
842 |
-DEPEND=" |
843 |
- ${CP_DEPEND} |
844 |
- virtual/jdk:1.8" |
845 |
- |
846 |
-BDEPEND="app-arch/unzip" |
847 |
- |
848 |
-IDEPEND="dev-util/desktop-file-utils" |
849 |
- |
850 |
-PDEPEND="~net-p2p/vuze-coreplugins-${PV}" |
851 |
- |
852 |
-PATCHES=( |
853 |
- "${FILESDIR}"/${PN}-5.3.0.0-java5.patch |
854 |
- "${FILESDIR}"/${PN}-5.3.0.0-remove-classpath.patch |
855 |
- "${FILESDIR}"/${PN}-5.3.0.0-disable-shared-plugins.patch |
856 |
- "${FILESDIR}"/${PN}-5.7.2.0-disable-osx.patch |
857 |
- "${FILESDIR}"/${PN}-5.3.0.0-disable-updaters.patch |
858 |
- "${FILESDIR}"/${PN}-5.3.0.0-unbundle-json.patch |
859 |
- "${FILESDIR}"/${PN}-5.7.6.0-commons-lang.patch |
860 |
- "${FILESDIR}"/${PN}-5.7.6.0-log4j-12-api.patch |
861 |
-) |
862 |
- |
863 |
-src_unpack() { |
864 |
- mkdir -p "${S}" || die |
865 |
- cd "${S}" || die |
866 |
- unpack ${A} |
867 |
- |
868 |
- # build.xml disappeared from 4.4.0.0 although it was there in 4.3.1.4 |
869 |
- if [[ -f build.xml ]]; then |
870 |
- die "upstream has build.xml again, don't overwrite" |
871 |
- fi |
872 |
- cp "${FILESDIR}"/build.xml "${S}" || die "failed to copy build.xml" |
873 |
-} |
874 |
- |
875 |
-src_prepare() { |
876 |
- # upstream likes randomly changing a subset of files to CRLF every release |
877 |
- edos2unix $(find "${S}" -type f -name "*.java") |
878 |
- |
879 |
- default |
880 |
- |
881 |
- # OSX / Windows |
882 |
- rm "${S}"/org/gudy/azureus2/ui/swt/osx/CarbonUIEnhancer.java || die |
883 |
- rm "${S}"/org/gudy/azureus2/ui/swt/osx/Start.java || die |
884 |
- rm "${S}"/org/gudy/azureus2/ui/swt/win32/Win32UIEnhancer.java || die |
885 |
- |
886 |
- # Tree2 file does not compile on linux |
887 |
- rm -rf "${S}"/org/eclipse || die |
888 |
- # Bundled apache |
889 |
- rm -rf "${S}"/org/apache || die |
890 |
- # Bundled json |
891 |
- rm -rf "${S}"/org/json || die |
892 |
- # Bundled bcprov |
893 |
- # currently disabled - requires bcprov 1.37 |
894 |
- #rm -rf "${S}"/org/bouncycastle || die |
895 |
- |
896 |
- rm -rf "${S}"/org/gudy/azureus2/ui/console/multiuser/TestUserManager.java || die |
897 |
- mkdir -p "${S}"/build/libs || die |
898 |
-} |
899 |
- |
900 |
-JAVA_ANT_REWRITE_CLASSPATH="true" |
901 |
- |
902 |
-src_compile() { |
903 |
- local mem |
904 |
- use amd64 && mem="512" |
905 |
- use x86 && mem="448" |
906 |
- use ppc && mem="384" |
907 |
- use ppc64 && mem="448" |
908 |
- use sparc && mem="512" |
909 |
- export ANT_OPTS="-Xmx${mem}m" |
910 |
- java-pkg-2_src_compile |
911 |
- |
912 |
- # bug #302058 - build.xml excludes .txt but upstream jar has it... |
913 |
- jar uf dist/Azureus2.jar ChangeLog.txt || die |
914 |
-} |
915 |
- |
916 |
-src_install() { |
917 |
- java-pkg_dojar dist/Azureus2.jar |
918 |
- dodoc ChangeLog.txt |
919 |
- |
920 |
- java-pkg_dolauncher "${PN}" \ |
921 |
- --main org.gudy.azureus2.ui.common.Main -pre "${FILESDIR}/${PN}-4.1.0.0-pre" \ |
922 |
- --java_args '-Dazureus.install.path=/usr/share/vuze/ ${JAVA_OPTIONS}' \ |
923 |
- --pkg_args '--ui=${UI}' |
924 |
- dosym vuze /usr/bin/azureus |
925 |
- |
926 |
- # https://bugs.gentoo.org/show_bug.cgi?id=204132 |
927 |
- java-pkg_register-environment-variable MOZ_PLUGIN_PATH /usr/lib/nsbrowser/plugins |
928 |
- |
929 |
- newicon "${S}"/org/gudy/azureus2/ui/icons/a32.png vuze.png |
930 |
- domenu "${FILESDIR}"/${PN}.desktop |
931 |
- |
932 |
- use source && java-pkg_dosrc "${S}"/{com,edu,org} |
933 |
-} |
934 |
- |
935 |
-pkg_postinst() { |
936 |
- ewarn "Running Vuze as root is not supported and may result in untracked" |
937 |
- ewarn "updates to shared components and then collisions on updates" |
938 |
- echo |
939 |
- elog "Vuze was formerly called Azureus and many references to the old name remain." |
940 |
- elog |
941 |
- elog "After running Vuze for the first time, configuration options will be" |
942 |
- elog "placed in '~/.azureus/gentoo.config'." |
943 |
- elog |
944 |
- elog "If you need to change some startup options, you should modify this file" |
945 |
- elog "rather than the startup script. You can enable the console UI by" |
946 |
- elog "editing this config file." |
947 |
- echo |
948 |
- xdg_desktop_database_update |
949 |
-} |
950 |
- |
951 |
-pkg_postrm() { |
952 |
- xdg_desktop_database_update |
953 |
-} |
954 |
|
955 |
diff --git a/profiles/package.mask b/profiles/package.mask |
956 |
index 2c9943d79703..13d8a078b8e0 100644 |
957 |
--- a/profiles/package.mask |
958 |
+++ b/profiles/package.mask |
959 |
@@ -304,12 +304,6 @@ dev-python/pkgutil_resolve_name |
960 |
# Breaks reverse dependencies: bug #889694, bug #888579. |
961 |
=sys-fs/btrfs-progs-6.1.1 |
962 |
|
963 |
-# Volkmar W. Pogatzki <gentoo@××××××××.net> (2022-12-29) |
964 |
-# Upstream is dead, last activity in Nov 2017. Does not |
965 |
-# work with newer log4j, bug #857663. Use net-p2p/biglybt |
966 |
-# instead. Removal on 2023-02-28. |
967 |
-net-p2p/vuze |
968 |
- |
969 |
# Sam James <sam@g.o> (2022-12-27) |
970 |
# Regression in listing subvolumes (no UUIDs), bug #888549 |
971 |
# https://github.com/kdave/btrfs-progs/issues/562 |