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.2.0.0.ebuild vuze-4.1.0.0.ebuild vuze-4.1.0.2.ebuild
Date: Fri, 27 Mar 2009 19:39:44
Message-Id: E1LnHu1-00009A-Rn@stork.gentoo.org
1 caster 09/03/27 19:39:41
2
3 Modified: ChangeLog
4 Added: vuze-4.2.0.0.ebuild
5 Removed: vuze-4.1.0.0.ebuild vuze-4.1.0.2.ebuild
6 Log:
7 Version bump.
8 (Portage version: 2.2_rc27/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.9 net-p2p/vuze/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/ChangeLog?rev=1.9&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/ChangeLog?rev=1.9&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/ChangeLog?r1=1.8&r2=1.9
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v
20 retrieving revision 1.8
21 retrieving revision 1.9
22 diff -u -r1.8 -r1.9
23 --- ChangeLog 4 Mar 2009 20:46:24 -0000 1.8
24 +++ ChangeLog 27 Mar 2009 19:39:41 -0000 1.9
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-p2p/vuze
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v 1.8 2009/03/04 20:46:24 caster Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v 1.9 2009/03/27 19:39:41 caster Exp $
30 +
31 +*vuze-4.2.0.0 (19 Mar 2009)
32 +
33 + 19 Mar 2009; Vlastimil Babka <caster@g.o>
34 + +files/patches-4.2.0.0/0001-remove-osx-platform.patch,
35 + +files/patches-4.2.0.0/0002-use-jdk-cipher-only.patch,
36 + -vuze-4.1.0.0.ebuild, -vuze-4.1.0.2.ebuild, +vuze-4.2.0.0.ebuild:
37 + Version bump.
38
39 04 Mar 2009; Vlastimil Babka <caster@g.o> vuze-4.1.0.0.ebuild,
40 vuze-4.1.0.2.ebuild, vuze-4.1.0.4.ebuild:
41
42
43
44 1.1 net-p2p/vuze/vuze-4.2.0.0.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/vuze-4.2.0.0.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/vuze-4.2.0.0.ebuild?rev=1.1&content-type=text/plain
48
49 Index: vuze-4.2.0.0.ebuild
50 ===================================================================
51 # Copyright 1999-2009 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/vuze-4.2.0.0.ebuild,v 1.1 2009/03/27 19:39:41 caster Exp $
54
55 EAPI=2
56
57 JAVA_PKG_IUSE="source"
58
59 inherit eutils fdo-mime java-pkg-2 java-ant-2
60
61 DESCRIPTION="BitTorrent client in Java, formerly called Azureus"
62 HOMEPAGE="http://www.vuze.com/"
63 SRC_URI="mirror://sourceforge/azureus/Vuze_${PV}_source.zip"
64 LICENSE="GPL-2 BSD"
65
66 SLOT="0"
67 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
68 IUSE=""
69
70 # bundles parts of commons-lang, but modified
71 # bundles parts of http://www.programmers-friend.org/
72 RDEPEND="
73 dev-java/json-simple:0
74 >=dev-java/bcprov-1.35:0
75 >=dev-java/commons-cli-1.0:1
76 >=dev-java/log4j-1.2.8:0
77 >=dev-java/swt-3.4:3.4[cairo,xulrunner]
78 !net-p2p/azureus-bin
79 >=virtual/jre-1.5"
80
81 DEPEND="${RDEPEND}
82 app-arch/unzip
83 dev-util/desktop-file-utils
84 >=virtual/jdk-1.5"
85
86 PDEPEND="~net-p2p/vuze-coreplugins-${PV}"
87
88 src_unpack() {
89 mkdir "${S}" && cd "${S}" || die
90 unpack ${A}
91
92 # build.xml disappeared from 4.1.0.0 although it was there in 4.0.0.4
93 # hopefully that's just a packaging mistake
94 [[ -f build.xml ]] && die "upstream has build.xml again, don't overwrite"
95 cp "${FILESDIR}/build.xml" . || die "failed to copy build.xml"
96
97 epatch "${FILESDIR}/patches-4.2.0.0/0001-remove-osx-platform.patch"
98 epatch "${FILESDIR}/patches-4.2.0.0/0002-use-jdk-cipher-only.patch"
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.4,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
133 src_install() {
134 java-pkg_dojar dist/*.jar || die "dojar failed"
135 dodoc ChangeLog.txt || die
136
137 java-pkg_dolauncher "${PN}" \
138 --main org.gudy.azureus2.ui.common.Main -pre "${FILESDIR}/${PN}-4.1.0.0-pre" \
139 --java_args '-Dazureus.install.path=/usr/share/vuze/ ${JAVA_OPTIONS}' \
140 --pkg_args '--ui=${UI}'
141 dosym vuze /usr/bin/azureus
142
143 # https://bugs.gentoo.org/show_bug.cgi?id=204132
144 java-pkg_register-environment-variable MOZ_PLUGIN_PATH /usr/lib/nsbrowser/plugins
145
146 newicon "${S}"/org/gudy/azureus2/ui/icons/a32.png vuze.png
147 domenu "${FILESDIR}/${PN}.desktop"
148
149 use source && java-pkg_dosrc "${S}"/{com,edu,org}
150 }
151
152 pkg_postinst() {
153 ###
154 ### @Todo We should probably deactivate auto-update it by default,
155 ### or even remove the option - bug #218959
156 ###
157 ewarn "Running Vuze as root is not supported and may result in untracked"
158 ewarn "updates to shared components and then collisions on updates via portage"
159
160 elog "Vuze has been formerly called Azureus and many references to the old name remain."
161 elog
162 elog "Since version 4.1.0.0, plugins that are normally bundled by upstream"
163 elog "(and auto-installed in each user's ~/.azureus if not bundled)"
164 elog "are now installed into shared plugin directory by the vuze-coreplugins ebuild."
165 elog
166 elog "Vuze may warn that shared plugin dir is not writable, that's fine."
167 elog "It may also attempt to update some these plugins and fail to write."
168 elog "In that case look for or fill a bump bug in bugs.gentoo.org"
169 elog
170 elog "We plan to disable updater for shared components and plugins."
171 elog "See progress in bug #218959, patches welcome."
172 elog
173 elog "After running Vuze for the first time, configuration"
174 elog "options will be placed in '~/.azureus/gentoo.config'."
175 elog "If you need to change some startup options, you should"
176 elog "modify this file, rather than the startup script."
177 elog "Using this config file you can start the console UI."
178 elog
179 elog "To switch from classic UI to Vuze use"
180 elog "1: Tools > Options > Interface > Start > Display Vuze UI Chooser"
181 elog "2: Toolbar (right-hand side)"
182 elog
183 elog "If you have problems starting Vuze, try starting it"
184 elog "from the command line to look at debugging output."
185
186 fdo-mime_desktop_database_update
187 }
188
189 pkg_postrm() {
190 fdo-mime_desktop_database_update
191 }