1 |
betelgeuse 08/01/03 03:34:19 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: azureus-3.0.4.2-r1.ebuild |
5 |
Log: |
6 |
Set MOZ_PLUGIN_PATH environment variable so that flash works properly in the Vuze UI. Add instructions how to switch between different UIs. Fixes bug #204132. |
7 |
(Portage version: 2.1.4_rc11) |
8 |
|
9 |
Revision Changes Path |
10 |
1.58 net-p2p/azureus/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/ChangeLog?rev=1.58&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/ChangeLog?rev=1.58&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/ChangeLog?r1=1.57&r2=1.58 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-p2p/azureus/ChangeLog,v |
19 |
retrieving revision 1.57 |
20 |
retrieving revision 1.58 |
21 |
diff -u -r1.57 -r1.58 |
22 |
--- ChangeLog 28 Dec 2007 00:52:25 -0000 1.57 |
23 |
+++ ChangeLog 3 Jan 2008 03:34:19 -0000 1.58 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for net-p2p/azureus |
26 |
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/ChangeLog,v 1.57 2007/12/28 00:52:25 betelgeuse Exp $ |
28 |
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/ChangeLog,v 1.58 2008/01/03 03:34:19 betelgeuse Exp $ |
30 |
+ |
31 |
+*azureus-3.0.4.2-r1 (03 Jan 2008) |
32 |
+ |
33 |
+ 03 Jan 2008; Petteri Räty <betelgeuse@g.o> |
34 |
+ +azureus-3.0.4.2-r1.ebuild: |
35 |
+ Set MOZ_PLUGIN_PATH environment variable so that flash works properly in the |
36 |
+ Vuze UI. Add instructions how to switch between different UIs. Fixes bug |
37 |
+ #204132. |
38 |
|
39 |
*azureus-3.0.4.2 (28 Dec 2007) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 net-p2p/azureus/azureus-3.0.4.2-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/azureus-3.0.4.2-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/azureus-3.0.4.2-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: azureus-3.0.4.2-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2008 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/azureus-3.0.4.2-r1.ebuild,v 1.1 2008/01/03 03:34:19 betelgeuse Exp $ |
54 |
|
55 |
### |
56 |
### @Todo The new Azureus gui requires swt built with embedded mozilla support, |
57 |
### or azureus will hang at startup. However, you can still start |
58 |
### the old GUI which doesn't require it, by using file/restart (which |
59 |
### is kind of bug, and maybe I should put that patch, that removes |
60 |
### restart from menu, back). It probably could be invoked also by using |
61 |
### a different Main class (look for them there are plenty :) so we could |
62 |
### have some old-gui flag which would run that one and remove |
63 |
### the mozilla dep. Best would be some per-user setting and startup |
64 |
### script check for swt mozilla support and die... |
65 |
### |
66 |
|
67 |
JAVA_PKG_IUSE="source" |
68 |
|
69 |
inherit eutils fdo-mime java-pkg-2 java-ant-2 |
70 |
|
71 |
DESCRIPTION="BitTorrent client in Java" |
72 |
HOMEPAGE="http://azureus.sourceforge.net/" |
73 |
SRC_URI="mirror://sourceforge/azureus/Azureus_${PV}_source.zip" |
74 |
LICENSE="GPL-2 BSD" |
75 |
|
76 |
SLOT="0" |
77 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
78 |
IUSE="" |
79 |
|
80 |
RDEPEND=" |
81 |
>=dev-java/bcprov-1.35 |
82 |
>=dev-java/commons-cli-1.0 |
83 |
>=dev-java/log4j-1.2.8 |
84 |
>=dev-java/swt-3.3_pre3 |
85 |
!net-p2p/azureus-bin |
86 |
>=virtual/jre-1.4" |
87 |
|
88 |
DEPEND="${RDEPEND} |
89 |
app-arch/unzip |
90 |
dev-util/desktop-file-utils |
91 |
>=virtual/jdk-1.4" |
92 |
|
93 |
S="${WORKDIR}" |
94 |
|
95 |
pkg_setup() { |
96 |
if ! built_with_use --missing false -o dev-java/swt firefox seamonkey xulrunner; then |
97 |
eerror |
98 |
eerror "dev-java/swt must be compiled with the firefox, seamonkey or xulrunner USE flag" |
99 |
eerror "(support may vary per swt version) or azureus will hang at startup!" |
100 |
eerror |
101 |
die "recompile dev-java/swt with embedded browser" |
102 |
fi |
103 |
java-pkg-2_pkg_setup |
104 |
} |
105 |
|
106 |
src_unpack() { |
107 |
unpack "${A}" |
108 |
|
109 |
### Patches Azureus to use bcprov, |
110 |
EPATCH_SUFFIX="patch" epatch "${FILESDIR}/patches-3.0.3.4" |
111 |
|
112 |
### Remove an unit test we never run |
113 |
rm -v ./org/gudy/azureus2/ui/console/multiuser/TestUserManager.java || die |
114 |
|
115 |
### Removes OS X files and entries. |
116 |
rm -rv "org/gudy/azureus2/platform/macosx" \ |
117 |
"org/gudy/azureus2/ui/swt/osx" || die |
118 |
|
119 |
### Removes Windows files. |
120 |
rm -rv "com/aelitis/azureus/util/win32" \ |
121 |
"org/gudy/azureus2/platform/win32" \ |
122 |
"org/gudy/azureus2/ui/swt/win32" || die |
123 |
|
124 |
### Removes test files. |
125 |
rm -rv "org/gudy/azureus2/ui/swt/test" || die |
126 |
|
127 |
### Removes bouncycastle (we use our own bcprov). |
128 |
rm -rv "org/bouncycastle" || die |
129 |
} |
130 |
|
131 |
src_compile() { |
132 |
local mem |
133 |
use amd64 && mem="256" |
134 |
use x86 && mem="128" |
135 |
use ppc && mem="192" |
136 |
find . -name "*.java" > "${T}/az-src" |
137 |
ejavac -J-Xmx${mem}m -encoding latin1 \ |
138 |
-classpath $(java-pkg_getjars swt-3,commons-cli-1,log4j,bcprov) \ |
139 |
@"${T}/az-src" |
140 |
find . -type f -a ! -name "*.java" > "${T}/az-jarlist" |
141 |
jar cf azureus.jar @"${T}/az-jarlist" |
142 |
} |
143 |
|
144 |
src_install() { |
145 |
|
146 |
java-pkg_dojar "azureus.jar" || die "dojar failed" |
147 |
|
148 |
java-pkg_dolauncher "${PN}" \ |
149 |
--main "org.gudy.azureus2.ui.common.Main" \ |
150 |
-pre "${FILESDIR}/${PN}-2.5.0.0-pre" \ |
151 |
--java_args '-Dazureus.install.path=${HOME}/.azureus/ ${JAVA_OPTIONS}' \ |
152 |
--pkg_args '--ui=${UI}' |
153 |
|
154 |
# https://bugs.gentoo.org/show_bug.cgi?id=204132 |
155 |
java-pkg_register-environment-variable MOZ_PLUGIN_PATH /usr/lib/nsbrowser/plugins |
156 |
|
157 |
doicon "${FILESDIR}/azureus.png" |
158 |
domenu "${FILESDIR}/azureus.desktop" |
159 |
|
160 |
use source && java-pkg_dosrc "${S}"/{com,edu,org} |
161 |
} |
162 |
|
163 |
pkg_postinst() { |
164 |
### |
165 |
### @Todo We should probably deactivate auto-update it by default, |
166 |
### or even remove the option. |
167 |
### |
168 |
elog |
169 |
elog "It is not recommended to use the Azureus auto-update feature," |
170 |
elog "and it might not even work. You should disable auto-update," |
171 |
elog "in \"Tools\" -> \"Options...\" -> \"Interface\" -> \"Start\"." |
172 |
elog |
173 |
|
174 |
elog |
175 |
elog "After running azureus for the first time, configuration" |
176 |
elog "options will be placed in \"~/.azureus/gentoo.config\"." |
177 |
elog "If you need to change some startup options, you should" |
178 |
elog "modify this file, rather than the startup script." |
179 |
elog |
180 |
elog "Using this config file you can start the console UI." |
181 |
elog |
182 |
|
183 |
elog |
184 |
elog "If you have problems starting Azureus, try starting it" |
185 |
elog "from the command line to look at debugging output." |
186 |
elog |
187 |
|
188 |
elog |
189 |
elog "To switch from classic UI to Vuze use:" |
190 |
elog "Tools -> Options -> Interface -> Start" |
191 |
elog "\t-> Display Azureus UI Chooser" |
192 |
elog "Restart not working properly is a known issue." |
193 |
elog |
194 |
|
195 |
ewarn |
196 |
ewarn "If you are upgrading, and the menu in Azureus has entries" |
197 |
ewarn "like \"!MainWindow.menu.transfers!\" then you have a stray" |
198 |
ewarn "\"MessageBundle.properties\" file, and you may safely" |
199 |
ewarn "delete \"~/.azureus/MessagesBundle.properties\"." |
200 |
ewarn |
201 |
|
202 |
ewarn |
203 |
ewarn "Before azureus-2.5.0.0-r3, the Azureus plugin directory was" |
204 |
ewarn "set to \"~/plugins\", instead of \"~/.azureus/plugins\"." |
205 |
ewarn "If needed, you should move the plugins, to the new location." |
206 |
ewarn |
207 |
|
208 |
ewarn |
209 |
ewarn "Running Azureus as root is not supported." |
210 |
ewarn |
211 |
|
212 |
fdo-mime_desktop_database_update |
213 |
} |
214 |
|
215 |
pkg_postrm() { |
216 |
fdo-mime_desktop_database_update |
217 |
} |
218 |
|
219 |
|
220 |
|
221 |
-- |
222 |
gentoo-commits@g.o mailing list |