1 |
commit: 18a41171d1aa2281c3aaf7aa963eeb32fc4c18ad |
2 |
Author: Ryan Hill <rhill <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 3 00:51:13 2016 +0000 |
4 |
Commit: Ryan Hill <rhill <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 3 00:55:03 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18a41171 |
7 |
|
8 |
net-p2p/vuze: Version bump. |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
Signed-off-by: Ryan Hill <rhill <AT> gentoo.org> |
12 |
|
13 |
net-p2p/vuze/Manifest | 1 + |
14 |
net-p2p/vuze/files/vuze-5.7.2.0-disable-osx.patch | 71 +++++++++++ |
15 |
net-p2p/vuze/vuze-5.7.2.0.ebuild | 145 ++++++++++++++++++++++ |
16 |
3 files changed, 217 insertions(+) |
17 |
|
18 |
diff --git a/net-p2p/vuze/Manifest b/net-p2p/vuze/Manifest |
19 |
index 09f88fb..271d2ee 100644 |
20 |
--- a/net-p2p/vuze/Manifest |
21 |
+++ b/net-p2p/vuze/Manifest |
22 |
@@ -1,4 +1,5 @@ |
23 |
DIST Vuze_4812_source.zip 9530217 SHA256 8ad02ae61ac1c515cb3226b95b34d4fe036faa64e725b64fdcb5ef7d1cb9633d SHA512 7007c91f829c57d0f08b9da4ea3fcc8820efe14aeec7286cf764e5ac2d7d165f3a14abc6b0e92a617e21b45803f7c121fb00ddd8c5e8d9664509eb3337fc65bf WHIRLPOOL bc8823e053fa2f86161234c77f4873f2035a111361d60ee8c75937710774defec577651a10acf909bb170e600dc2775a5dbe2cf626649729e86f4a04e02a46d9 |
24 |
DIST Vuze_5300_source.zip 10015198 SHA256 556149f09f48c533a37d80526ac655f0bc067f3a6bf3f3c4483f5273ac74ebc7 SHA512 44bad9f04707ae37acb66f16ae94afd7ad24d245f0371f60241442f460277c5b8dd29476640eb1e04b468b3ebd0100a159d1027764445ab526e3e0c0c544296d WHIRLPOOL 801e398eaf8b8457dc02336039bc8a64e535544ff1ea99ff100b623f734a499147e9abd8ce3031ebb0f1e5bb0e04a9c160e06fe5c0b16f12b31caf920f711d4a |
25 |
DIST Vuze_5600_source.zip 10398501 SHA256 1aa6148311969ce6c51333b7ef51bcc8713e222fa5d14b2448e97aebbd25ea5e SHA512 dfe557cb1f50be935c78ee4431bc14db5f0107eebab8545cf925de8b0d48bb91ca77f7feab54a5fd91aaaf50bd3c68c1519cf49c2eb4d145ff7794bf9f22cfd7 WHIRLPOOL 62b637b5fc8145c31bdfb0ca2f63bdd9ee9c70d3afde3cb693ede66c0ab6db593f412ab124ac1230f1bbf33ff9ce635e29a0cea7556f013fcb7144aacb98c0d0 |
26 |
+DIST Vuze_5720_source.zip 10709515 SHA256 fcad8bc3df5e5d844eb7a8e0f24d199b37cfc831b2c50698e12ce9e5a9db1045 SHA512 073af0c68219884aaf1b860fcc04cf75edaf662f1e82fe6c49f615b928b00d1a50d25f348c6bf5a922fa1c5a53c7bce5f75b7a0c065602675bcb6d80c1c92edf WHIRLPOOL a45cdfba1a42bfdb4cf36a493b1522865b465e37ec8d0921a63d2e449f1d25f1dfd3d96857b29b45f68eb6d36bf4f25767eb13426bf944711411259a8af3ea78 |
27 |
DIST vuze-4.5.0.2-gentoo-patches.tar.bz2 3143 SHA256 972cf16d88d8605f93b77a84770b6512d54ae8281a0d4c06b66890a69deb6c49 SHA512 aacaeb404d9b7dbb40d89b04f9ad26caf447202b1fcb63d532f5e01dc611152adbc38804563f1a35227a080b2eadec0e2e42d0baa163d1d5489eec65cd28f83d WHIRLPOOL a7dd533676c428a00caddc2d4d4c008feec1a1201bb9aef7b7ed9c25d41405344d89bc9f70d442f043beb7aaf6db7d73582cc46edfa3665d599b2635e51b1ee7 |
28 |
|
29 |
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 |
30 |
new file mode 100644 |
31 |
index 0000000..6ae2301 |
32 |
--- /dev/null |
33 |
+++ b/net-p2p/vuze/files/vuze-5.7.2.0-disable-osx.patch |
34 |
@@ -0,0 +1,71 @@ |
35 |
+diff --git a/org/gudy/azureus2/ui/swt/mainwindow/SWTThread.java b/org/gudy/azureus2/ui/swt/mainwindow/SWTThread.java |
36 |
+index 256daff..68010b9 100644 |
37 |
+--- a/org/gudy/azureus2/ui/swt/mainwindow/SWTThread.java |
38 |
++++ b/org/gudy/azureus2/ui/swt/mainwindow/SWTThread.java |
39 |
+@@ -231,66 +231,6 @@ public class SWTThread { |
40 |
+ } |
41 |
+ }); |
42 |
+ |
43 |
+- if (Constants.isOSX) { |
44 |
+- |
45 |
+- // On Cocoa, we get a Close trigger on display. Need to check if all |
46 |
+- // platforms send this. |
47 |
+- display.addListener(SWT.Close, new Listener() { |
48 |
+- public void handleEvent(Event event) { |
49 |
+- UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions(); |
50 |
+- if (uiFunctions != null) { |
51 |
+- event.doit = uiFunctions.dispose(false, false); |
52 |
+- } |
53 |
+- } |
54 |
+- }); |
55 |
+- |
56 |
+- String platform = SWT.getPlatform(); |
57 |
+- // use reflection here so we decouple generic SWT from OSX specific stuff to an extent |
58 |
+- |
59 |
+- if (platform.equals("carbon")) { |
60 |
+- try { |
61 |
+- |
62 |
+- Class<?> ehancerClass = Class.forName("org.gudy.azureus2.ui.swt.osx.CarbonUIEnhancer"); |
63 |
+- |
64 |
+- Constructor<?> constructor = ehancerClass.getConstructor(new Class[] {}); |
65 |
+- |
66 |
+- constructor.newInstance(new Object[] {}); |
67 |
+- |
68 |
+- } catch (Throwable e) { |
69 |
+- |
70 |
+- Debug.printStackTrace(e); |
71 |
+- } |
72 |
+- } else if (platform.equals("cocoa")) { |
73 |
+- try { |
74 |
+- |
75 |
+- Class<?> ehancerClass = Class.forName("org.gudy.azureus2.ui.swt.osx.CocoaUIEnhancer"); |
76 |
+- |
77 |
+- Method mGetInstance = ehancerClass.getMethod("getInstance", new Class[0]); |
78 |
+- Object claObj = mGetInstance.invoke(null, new Object[0] ); |
79 |
+- |
80 |
+- Method mHookAppMenu = claObj.getClass().getMethod("hookApplicationMenu", new Class[] {}); |
81 |
+- if (mHookAppMenu != null) { |
82 |
+- mHookAppMenu.invoke(claObj, new Object[0]); |
83 |
+- } |
84 |
+- |
85 |
+- Method mHookDocOpen = claObj.getClass().getMethod("hookDocumentOpen", new Class[] {}); |
86 |
+- if (mHookDocOpen != null) { |
87 |
+- mHookDocOpen.invoke(claObj, new Object[0]); |
88 |
+- } |
89 |
+- |
90 |
+- Method mIsRetinaDisplay = claObj.getClass().getMethod("isRetinaDisplay"); |
91 |
+- if (mIsRetinaDisplay != null) { |
92 |
+- isRetinaDisplay = (Boolean) mIsRetinaDisplay.invoke(claObj); |
93 |
+- } |
94 |
+- |
95 |
+- |
96 |
+- } catch (Throwable e) { |
97 |
+- |
98 |
+- Debug.printStackTrace(e); |
99 |
+- } |
100 |
+- } |
101 |
+- } |
102 |
+- |
103 |
+ if (app != null) { |
104 |
+ app.runInSWTThread(); |
105 |
+ runner = new Thread(new AERunnable() { |
106 |
|
107 |
diff --git a/net-p2p/vuze/vuze-5.7.2.0.ebuild b/net-p2p/vuze/vuze-5.7.2.0.ebuild |
108 |
new file mode 100644 |
109 |
index 0000000..4b62eaa |
110 |
--- /dev/null |
111 |
+++ b/net-p2p/vuze/vuze-5.7.2.0.ebuild |
112 |
@@ -0,0 +1,145 @@ |
113 |
+# Copyright 1999-2016 Gentoo Foundation |
114 |
+# Distributed under the terms of the GNU General Public License v2 |
115 |
+# $Id$ |
116 |
+ |
117 |
+EAPI="5" |
118 |
+ |
119 |
+JAVA_PKG_IUSE="source" |
120 |
+ |
121 |
+inherit eutils fdo-mime java-pkg-2 java-ant-2 versionator |
122 |
+ |
123 |
+MY_PV=$(replace_all_version_separators "") |
124 |
+MY_SRC="Vuze_${MY_PV}" |
125 |
+ |
126 |
+DESCRIPTION="BitTorrent client in Java, formerly called Azureus" |
127 |
+HOMEPAGE="http://www.vuze.com/" |
128 |
+SRC_URI="mirror://sourceforge/azureus/${PN}/${MY_SRC}/${MY_SRC}_source.zip" |
129 |
+LICENSE="GPL-2 BSD" |
130 |
+ |
131 |
+SLOT="0" |
132 |
+KEYWORDS="~amd64 ~ppc64 ~x86" |
133 |
+IUSE="" |
134 |
+ |
135 |
+# bundles parts of http://www.programmers-friend.org/ |
136 |
+# bundles bcprov - 1.37 required but not in the tree |
137 |
+RDEPEND=" |
138 |
+ dev-java/commons-cli:1 |
139 |
+ dev-java/commons-lang:2.1 |
140 |
+ dev-java/json-simple:0 |
141 |
+ dev-java/log4j:0 |
142 |
+ dev-java/swt:3.8[cairo] |
143 |
+ >=virtual/jre-1.6:*" |
144 |
+ |
145 |
+DEPEND="${RDEPEND} |
146 |
+ app-arch/unzip |
147 |
+ dev-util/desktop-file-utils |
148 |
+ >=virtual/jdk-1.6:*" |
149 |
+ |
150 |
+PDEPEND="~net-p2p/vuze-coreplugins-${PV}" |
151 |
+ |
152 |
+pkg_pretend() { |
153 |
+ if ! has_version dev-java/swt:3.8[webkit]; then |
154 |
+ echo |
155 |
+ ewarn "dev-java/swt:3.8 was built without webkit support." |
156 |
+ ewarn "Web features such as Vuze HD Network will be disabled." |
157 |
+ fi |
158 |
+} |
159 |
+ |
160 |
+src_unpack() { |
161 |
+ mkdir -p "${S}" && cd "${S}" |
162 |
+ unpack ${A} |
163 |
+ |
164 |
+ # build.xml disappeared from 4.4.0.0 although it was there in 4.3.1.4 |
165 |
+ [[ -f build.xml ]] && die "upstream has build.xml again, don't overwrite" |
166 |
+ cp "${FILESDIR}"/build.xml "${S}" || die "failed to copy build.xml" |
167 |
+} |
168 |
+ |
169 |
+java_prepare() { |
170 |
+ # upstream likes randomly changing a subset of files to CRLF every release |
171 |
+ edos2unix $(find "${S}" -type f -name "*.java") |
172 |
+ |
173 |
+ epatch "${FILESDIR}"/${PN}-5.3.0.0-java5.patch |
174 |
+ epatch "${FILESDIR}"/${PN}-5.3.0.0-remove-classpath.patch |
175 |
+ epatch "${FILESDIR}"/${PN}-5.3.0.0-disable-shared-plugins.patch |
176 |
+ epatch "${FILESDIR}"/${PN}-5.7.2.0-disable-osx.patch |
177 |
+ epatch "${FILESDIR}"/${PN}-5.3.0.0-disable-updaters.patch |
178 |
+ epatch "${FILESDIR}"/${PN}-5.3.0.0-unbundle-commons.patch |
179 |
+ epatch "${FILESDIR}"/${PN}-5.3.0.0-unbundle-json.patch |
180 |
+ epatch "${FILESDIR}"/${PN}-5.6.0.0-commons-lang-entities.patch |
181 |
+ epatch "${FILESDIR}"/${PN}-5.6.0.0-invalid-characters.patch |
182 |
+# epatch "${FILESDIR}"/${P}-use-jdk-cipher-only.patch # bcprov |
183 |
+ |
184 |
+ # OSX / Windows |
185 |
+ rm "${S}"/org/gudy/azureus2/ui/swt/osx/CarbonUIEnhancer.java |
186 |
+ rm "${S}"/org/gudy/azureus2/ui/swt/osx/Start.java |
187 |
+ rm "${S}"/org/gudy/azureus2/ui/swt/win32/Win32UIEnhancer.java |
188 |
+ |
189 |
+ # Tree2 file does not compile on linux |
190 |
+ rm -rf "${S}"/org/eclipse || die |
191 |
+ # Bundled apache |
192 |
+ rm -rf "${S}"/org/apache || die |
193 |
+ # Bundled json |
194 |
+ rm -rf "${S}"/org/json || die |
195 |
+ # Bundled bcprov |
196 |
+ # currently disabled - requires bcprov 1.37 |
197 |
+ #rm -rf "${S}"/org/bouncycastle || die |
198 |
+ |
199 |
+ rm -rf "${S}"/org/gudy/azureus2/ui/console/multiuser/TestUserManager.java || die |
200 |
+ mkdir -p "${S}"/build/libs || die |
201 |
+} |
202 |
+ |
203 |
+JAVA_ANT_REWRITE_CLASSPATH="true" |
204 |
+EANT_GENTOO_CLASSPATH="swt-3.8,json-simple,log4j,commons-cli-1 commons-lang-2.1" |
205 |
+ |
206 |
+src_compile() { |
207 |
+ local mem |
208 |
+ use amd64 && mem="320" |
209 |
+ use x86 && mem="192" |
210 |
+ use ppc && mem="192" |
211 |
+ use ppc64 && mem="256" |
212 |
+ use sparc && mem="320" |
213 |
+ export ANT_OPTS="-Xmx${mem}m" |
214 |
+ java-pkg-2_src_compile |
215 |
+ |
216 |
+ # bug #302058 - build.xml excludes .txt but upstream jar has it... |
217 |
+ jar uf dist/Azureus2.jar ChangeLog.txt || die |
218 |
+} |
219 |
+ |
220 |
+src_install() { |
221 |
+ java-pkg_dojar dist/Azureus2.jar |
222 |
+ dodoc ChangeLog.txt |
223 |
+ |
224 |
+ java-pkg_dolauncher "${PN}" \ |
225 |
+ --main org.gudy.azureus2.ui.common.Main -pre "${FILESDIR}/${PN}-4.1.0.0-pre" \ |
226 |
+ --java_args '-Dazureus.install.path=/usr/share/vuze/ ${JAVA_OPTIONS}' \ |
227 |
+ --pkg_args '--ui=${UI}' |
228 |
+ dosym vuze /usr/bin/azureus |
229 |
+ |
230 |
+ # https://bugs.gentoo.org/show_bug.cgi?id=204132 |
231 |
+ java-pkg_register-environment-variable MOZ_PLUGIN_PATH /usr/lib/nsbrowser/plugins |
232 |
+ |
233 |
+ newicon "${S}"/org/gudy/azureus2/ui/icons/a32.png vuze.png |
234 |
+ domenu "${FILESDIR}"/${PN}.desktop |
235 |
+ |
236 |
+ use source && java-pkg_dosrc "${S}"/{com,edu,org} |
237 |
+} |
238 |
+ |
239 |
+pkg_postinst() { |
240 |
+ ewarn "Running Vuze as root is not supported and may result in untracked" |
241 |
+ ewarn "updates to shared components and then collisions on updates" |
242 |
+ echo |
243 |
+ elog "Vuze was formerly called Azureus and many references to the old name remain." |
244 |
+ elog |
245 |
+ elog "After running Vuze for the first time, configuration options will be" |
246 |
+ elog "placed in '~/.azureus/gentoo.config'." |
247 |
+ elog |
248 |
+ elog "If you need to change some startup options, you should modify this file" |
249 |
+ elog "rather than the startup script. You can enable the console UI by" |
250 |
+ elog "editing this config file." |
251 |
+ echo |
252 |
+ fdo-mime_desktop_database_update |
253 |
+} |
254 |
+ |
255 |
+pkg_postrm() { |
256 |
+ fdo-mime_desktop_database_update |
257 |
+} |