1 |
caster 10/02/21 16:16:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: vuze-4.3.1.4-r1.ebuild |
5 |
Log: |
6 |
Revbump to add missing ChangeLog.txt to the jar file. Fixes bug #302058 by Hanno Meyer-Thurow <h.mth@×××.de>. |
7 |
(Portage version: 2.2_rc62/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.30 net-p2p/vuze/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/ChangeLog?rev=1.30&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/ChangeLog?rev=1.30&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/ChangeLog?r1=1.29&r2=1.30 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v |
19 |
retrieving revision 1.29 |
20 |
retrieving revision 1.30 |
21 |
diff -u -r1.29 -r1.30 |
22 |
--- ChangeLog 12 Feb 2010 09:43:21 -0000 1.29 |
23 |
+++ ChangeLog 21 Feb 2010 16:16:02 -0000 1.30 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for net-p2p/vuze |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v 1.29 2010/02/12 09:43:21 caster Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v 1.30 2010/02/21 16:16:02 caster Exp $ |
29 |
+ |
30 |
+*vuze-4.3.1.4-r1 (21 Feb 2010) |
31 |
+ |
32 |
+ 21 Feb 2010; Vlastimil Babka <caster@g.o> +vuze-4.3.1.4-r1.ebuild: |
33 |
+ Revbump to add missing ChangeLog.txt to the jar file. Fixes bug #302058 by |
34 |
+ Hanno Meyer-Thurow <h.mth@×××.de>. |
35 |
|
36 |
*vuze-4.3.1.4 (12 Feb 2010) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 net-p2p/vuze/vuze-4.3.1.4-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/vuze-4.3.1.4-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/vuze-4.3.1.4-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: vuze-4.3.1.4-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/vuze-4.3.1.4-r1.ebuild,v 1.1 2010/02/21 16:16:02 caster Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
|
54 |
JAVA_PKG_IUSE="source" |
55 |
|
56 |
inherit eutils fdo-mime java-pkg-2 java-ant-2 |
57 |
|
58 |
PATCHSET_VER="4.3.1.2" |
59 |
PATCHSET_DIR="${PN}-${PATCHSET_VER}-gentoo-patches" |
60 |
PATCHSET="${PATCHSET_DIR}.tar.bz2" |
61 |
SRC_TARBALL="Vuze_${PV}_source.zip" |
62 |
|
63 |
DESCRIPTION="BitTorrent client in Java, formerly called Azureus" |
64 |
HOMEPAGE="http://www.vuze.com/" |
65 |
SRC_URI="mirror://sourceforge/azureus/${SRC_TARBALL} |
66 |
mirror://gentoo/${PATCHSET}" |
67 |
LICENSE="GPL-2 BSD" |
68 |
|
69 |
SLOT="0" |
70 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
71 |
IUSE="" |
72 |
|
73 |
# bundles parts of commons-lang, but modified |
74 |
# bundles parts of http://www.programmers-friend.org/ |
75 |
RDEPEND=" |
76 |
dev-java/json-simple:0 |
77 |
>=dev-java/bcprov-1.35:0 |
78 |
>=dev-java/commons-cli-1.0:1 |
79 |
>=dev-java/log4j-1.2.8:0 |
80 |
dev-java/swt:3.5[cairo,xulrunner] |
81 |
!net-p2p/azureus-bin |
82 |
>=virtual/jre-1.5" |
83 |
|
84 |
DEPEND="${RDEPEND} |
85 |
app-arch/unzip |
86 |
dev-util/desktop-file-utils |
87 |
>=virtual/jdk-1.5" |
88 |
|
89 |
PDEPEND="~net-p2p/vuze-coreplugins-${PV}" |
90 |
|
91 |
src_unpack() { |
92 |
unpack ${PATCHSET} |
93 |
mkdir "${S}" && cd "${S}" || die |
94 |
unpack ${SRC_TARBALL} |
95 |
} |
96 |
|
97 |
java_prepare() { |
98 |
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PATCHSET_DIR}/" |
99 |
|
100 |
### Removes OS X files and entries. |
101 |
rm -rv "org/gudy/azureus2/platform/macosx" \ |
102 |
"org/gudy/azureus2/ui/swt/osx" || die |
103 |
|
104 |
### Removes Windows files. |
105 |
rm -v ./org/gudy/azureus2/ui/swt/win32/Win32UIEnhancer.java || die |
106 |
|
107 |
### Removes test files. |
108 |
rm -rv "org/gudy/azureus2/ui/swt/test" \ |
109 |
org/gudy/azureus2/ui/console/multiuser/TestUserManager.java || die |
110 |
|
111 |
### Removes bouncycastle (we use our own bcprov). |
112 |
rm -rv "org/bouncycastle" || die |
113 |
|
114 |
### Removes bundled json |
115 |
rm -rv "org/json" || die |
116 |
|
117 |
mkdir -p build/libs || die |
118 |
} |
119 |
|
120 |
JAVA_ANT_REWRITE_CLASSPATH="true" |
121 |
EANT_GENTOO_CLASSPATH="swt-3.5,bcprov,json-simple,log4j,commons-cli-1" |
122 |
|
123 |
src_compile() { |
124 |
local mem |
125 |
use amd64 && mem="256" |
126 |
use x86 && mem="192" |
127 |
use ppc && mem="192" |
128 |
use ppc64 && mem="256" |
129 |
export ANT_OPTS="-Xmx${mem}m" |
130 |
java-pkg-2_src_compile |
131 |
|
132 |
# bug #302058 - build.xml excludes .txt but upstream jar has it... |
133 |
jar uf dist/Azureus2.jar ChangeLog.txt || die |
134 |
} |
135 |
|
136 |
src_install() { |
137 |
java-pkg_dojar dist/Azureus2.jar |
138 |
dodoc ChangeLog.txt || die |
139 |
|
140 |
java-pkg_dolauncher "${PN}" \ |
141 |
--main org.gudy.azureus2.ui.common.Main -pre "${FILESDIR}/${PN}-4.1.0.0-pre" \ |
142 |
--java_args '-Dazureus.install.path=/usr/share/vuze/ ${JAVA_OPTIONS}' \ |
143 |
--pkg_args '--ui=${UI}' |
144 |
dosym vuze /usr/bin/azureus |
145 |
|
146 |
# https://bugs.gentoo.org/show_bug.cgi?id=204132 |
147 |
java-pkg_register-environment-variable MOZ_PLUGIN_PATH /usr/lib/nsbrowser/plugins |
148 |
|
149 |
newicon "${S}"/org/gudy/azureus2/ui/icons/a32.png vuze.png |
150 |
domenu "${FILESDIR}/${PN}.desktop" |
151 |
|
152 |
use source && java-pkg_dosrc "${S}"/{com,edu,org} |
153 |
} |
154 |
|
155 |
pkg_postinst() { |
156 |
### |
157 |
### @Todo We should probably deactivate auto-update it by default, |
158 |
### or even remove the option - bug #218959 |
159 |
### |
160 |
ewarn "Running Vuze as root is not supported and may result in untracked" |
161 |
ewarn "updates to shared components and then collisions on updates via portage" |
162 |
|
163 |
elog "Vuze has been formerly called Azureus and many references to the old name remain." |
164 |
elog |
165 |
elog "Since version 4.1.0.0, plugins that are normally bundled by upstream" |
166 |
elog "(and auto-installed in each user's ~/.azureus if not bundled)" |
167 |
elog "are now installed into shared plugin directory by the vuze-coreplugins ebuild." |
168 |
elog |
169 |
elog "Vuze may warn that shared plugin dir is not writable, that's fine." |
170 |
elog "It may also attempt to update some these plugins and fail to write." |
171 |
elog "In that case look for or fill a bump bug in bugs.gentoo.org" |
172 |
elog |
173 |
elog "We plan to disable updater for shared components and plugins." |
174 |
elog "See progress in bug #218959, patches welcome." |
175 |
elog |
176 |
elog "After running Vuze for the first time, configuration" |
177 |
elog "options will be placed in '~/.azureus/gentoo.config'." |
178 |
elog "If you need to change some startup options, you should" |
179 |
elog "modify this file, rather than the startup script." |
180 |
elog "Using this config file you can start the console UI." |
181 |
elog |
182 |
elog "To switch from classic UI to Vuze use" |
183 |
elog "1: Tools > Options > Interface > Start > Display Vuze UI Chooser" |
184 |
elog "2: Toolbar (right-hand side)" |
185 |
elog |
186 |
elog "If you have problems starting Vuze, try starting it" |
187 |
elog "from the command line to look at debugging output." |
188 |
elog |
189 |
elog "If vuze crashes with sun-jdk or icedtea and crash log includes CompileTask" |
190 |
elog "add this line to the end of your ~/.axureus/gentoo.config file:" |
191 |
local opts='-XX:CompileCommand=exclude,com/aelitis/net/udp/uc/impl/PRUDPPacketHandlerImpl$5,runSupport' |
192 |
elog "JAVA_OPTIONS='${opts}'" |
193 |
elog "This is a workaround for a bug in the JDK, see https://bugs.gentoo.org/show_bug.cgi?id=259884" |
194 |
|
195 |
fdo-mime_desktop_database_update |
196 |
} |
197 |
|
198 |
pkg_postrm() { |
199 |
fdo-mime_desktop_database_update |
200 |
} |