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/azureus: ChangeLog azureus-4.0.0.4.ebuild
Date: Fri, 21 Nov 2008 23:14:01
Message-Id: E1L3fCI-00068Z-Jz@stork.gentoo.org
1 caster 08/11/21 23:13:58
2
3 Modified: ChangeLog
4 Added: azureus-4.0.0.4.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc14/cvs/Linux 2.6.27-gentoo-r1-perfctr x86_64)
8
9 Revision Changes Path
10 1.72 net-p2p/azureus/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/ChangeLog?rev=1.72&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/ChangeLog?rev=1.72&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/ChangeLog?r1=1.71&r2=1.72
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-p2p/azureus/ChangeLog,v
19 retrieving revision 1.71
20 retrieving revision 1.72
21 diff -u -r1.71 -r1.72
22 --- ChangeLog 4 Nov 2008 12:13:43 -0000 1.71
23 +++ ChangeLog 21 Nov 2008 23:13:58 -0000 1.72
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-p2p/azureus
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/ChangeLog,v 1.71 2008/11/04 12:13:43 caster Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/ChangeLog,v 1.72 2008/11/21 23:13:58 caster Exp $
29 +
30 +*azureus-4.0.0.4 (21 Nov 2008)
31 +
32 + 21 Nov 2008; Vlastimil Babka <caster@g.o> +azureus-4.0.0.4.ebuild:
33 + Version bump.
34
35 04 Nov 2008; Vlastimil Babka <caster@g.o> azureus-4.0.0.2.ebuild:
36 Raise max heap size on x86 to 192MB due to problems with ibm-jdk-bin-1.6,
37
38
39
40 1.1 net-p2p/azureus/azureus-4.0.0.4.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/azureus-4.0.0.4.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/azureus-4.0.0.4.ebuild?rev=1.1&content-type=text/plain
44
45 Index: azureus-4.0.0.4.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/azureus-4.0.0.4.ebuild,v 1.1 2008/11/21 23:13:58 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 MAIN_DIST=Vuze_${PV}_source.zip
58 PLUGINS_N=azplugins
59 RATING_N=azrating
60 UPDATER_N=azupdater
61 UPNPAV_N=azupnpav
62 PLUGINS_V=2.1.6
63 RATING_V=1.3.1
64 UPDATER_V=1.8.8
65 UPNPAV_V=0.2.2
66 PLUGINS_DIST=${PLUGINS_N}_${PLUGINS_V}.jar
67 RATING_DIST=${RATING_N}_${RATING_V}.jar
68 UPDATER_DIST=${UPDATER_N}_${UPDATER_V}.zip
69 UPNPAV_DIST=${UPNPAV_N}_${UPNPAV_V}.zip
70
71
72 ALLPLUGINS_URL="http://azureus.sourceforge.net/plugins"
73
74 DESCRIPTION="BitTorrent client in Java, now called Vuze"
75 HOMEPAGE="http://www.vuze.com/"
76 SRC_URI="mirror://sourceforge/azureus/${MAIN_DIST}
77 ${ALLPLUGINS_URL}/${PLUGINS_DIST}
78 ${ALLPLUGINS_URL}/${RATING_DIST}
79 ${ALLPLUGINS_URL}/${UPDATER_DIST}
80 ${ALLPLUGINS_URL}/${UPNPAV_DIST}"
81 LICENSE="GPL-2 BSD"
82
83 SLOT="0"
84 KEYWORDS="~amd64 ~x86 ~ppc ~ppc64"
85 IUSE=""
86
87 # bundles parts of commons-lang, but modified
88 # bundles parts of http://www.programmers-friend.org/
89 RDEPEND="
90 dev-java/json-simple:0
91 >=dev-java/bcprov-1.35:0
92 >=dev-java/commons-cli-1.0:1
93 >=dev-java/log4j-1.2.8:0
94 >=dev-java/swt-3.4:3.4[cairo,xulrunner]
95 !net-p2p/azureus-bin
96 >=virtual/jre-1.5"
97
98 DEPEND="${RDEPEND}
99 app-arch/unzip
100 dev-util/desktop-file-utils
101 >=virtual/jdk-1.5"
102
103 JAVA_PKG_FILTER_COMPILER="jikes"
104
105 src_unpack() {
106 mkdir "${S}" && cd "${S}" || die
107 unpack ${MAIN_DIST}
108
109 cd "${WORKDIR}"
110 mkdir -p plugins/{${PLUGINS_N},${RATING_N},${UPDATER_N},${UPNPAV_N}} || die
111 cp "${DISTDIR}/${PLUGINS_DIST}" plugins/${PLUGINS_N} || die
112 cp "${DISTDIR}/${RATING_DIST}" plugins/${RATING_N} || die
113 cd "${WORKDIR}/plugins/${UPDATER_N}" && unpack ${UPDATER_DIST} || die
114 cd "${WORKDIR}/plugins/${UPNPAV_N}" && unpack ${UPNPAV_DIST} || die
115
116 cd "${S}"
117 epatch "${FILESDIR}/patches-4.0.0.2/use-jdk-cipher-only.diff"
118 epatch "${FILESDIR}/patches-4.0.0.2/remove-osx-platform.diff"
119
120 ### Removes OS X files and entries.
121 rm -rv "org/gudy/azureus2/platform/macosx" \
122 "org/gudy/azureus2/ui/swt/osx" || die
123
124 ### Removes Windows files.
125 rm -v ./org/gudy/azureus2/ui/swt/win32/Win32UIEnhancer.java || die
126
127 ### Removes test files.
128 rm -rv "org/gudy/azureus2/ui/swt/test" \
129 org/gudy/azureus2/ui/console/multiuser/TestUserManager.java || die
130
131 ### Removes bouncycastle (we use our own bcprov).
132 rm -rv "org/bouncycastle" || die
133
134 ### Removes bundled json
135 rm -rv "org/json" || die
136
137 mkdir -p build/libs || die
138 }
139
140 JAVA_ANT_REWRITE_CLASSPATH="true"
141 EANT_GENTOO_CLASSPATH="swt-3.4,bcprov,json-simple,log4j,commons-cli-1"
142
143 src_compile() {
144 local mem
145 use amd64 && mem="256"
146 use x86 && mem="192"
147 use ppc && mem="192"
148 use ppc64 && mem="256"
149 export ANT_OPTS="-Xmx${mem}m"
150 java-pkg-2_src_compile
151 }
152
153 src_install() {
154 java-pkg_dojar dist/*.jar || die "dojar failed"
155 dodoc ChangeLog.txt || die
156
157 java-pkg_dolauncher "${PN}" \
158 --main org.gudy.azureus2.ui.common.Main -pre "${FILESDIR}/${PN}-4.0.0.2-pre" \
159 --java_args '-Dazureus.install.path=/usr/share/azureus/ ${JAVA_OPTIONS}' \
160 --pkg_args '--ui=${UI}'
161
162 insinto /usr/share/${PN}/
163 doins -r "${WORKDIR}/plugins"
164
165 # https://bugs.gentoo.org/show_bug.cgi?id=204132
166 java-pkg_register-environment-variable MOZ_PLUGIN_PATH /usr/lib/nsbrowser/plugins
167
168 doicon "${FILESDIR}/${PN}.png"
169 domenu "${FILESDIR}/${PN}.desktop"
170
171 use source && java-pkg_dosrc "${S}"/{com,edu,org}
172 }
173
174 pkg_postinst() {
175 ###
176 ### @Todo We should probably deactivate auto-update it by default,
177 ### or even remove the option - bug #218959
178 ###
179 ewarn "Running Azureus as root is not supported and may result in untracked"
180 ewarn "updates to shared components and then collisions on updates via portage"
181
182 elog "Since version 4.0.0.2, plugins that are normally bundled by upstream"
183 elog "(and auto-installed in each user's ~/.azureus if not bundled)"
184 elog "are now installed into shared plugin directory by the ebuild."
185 elog "Users are recommended to delete the following plugin copies:"
186 elog "~/.azureus/plugins/{${PLUGINS_N},${RATING_N},${UPDATER_N},${UPNPAV_N}}"
187 elog
188 elog "Azureus may warn that shared plugin dir is not writable, that's fine."
189 elog "It may also attempt to update some these plugins and fail to write."
190 elog "In that case look for or fill a bump bug in bugs.gentoo.org"
191 elog
192 elog "We plan to disable updater for shared components and plugins."
193 elog "See progress in bug #218959, patches welcome."
194 elog
195 elog "After running azureus for the first time, configuration"
196 elog "options will be placed in '~/.azureus/gentoo.config'."
197 elog "If you need to change some startup options, you should"
198 elog "modify this file, rather than the startup script."
199 elog "Using this config file you can start the console UI."
200 elog
201 elog "To switch from classic UI to Vuze use"
202 elog "1: Tools > Options > Interface > Start > Display Vuze UI Chooser"
203 elog "2: Toolbar (right-hand side)"
204 elog
205 elog "If you have problems starting Azureus, try starting it"
206 elog "from the command line to look at debugging output."
207
208 fdo-mime_desktop_database_update
209 }
210
211 pkg_postrm() {
212 fdo-mime_desktop_database_update
213 }