Gentoo Archives: gentoo-commits

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