/[gentoo-x86]/net-p2p/vuze/vuze-3.0.4.2-r2.ebuild
Gentoo

Contents of /net-p2p/vuze/vuze-3.0.4.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 26 10:39:09 2010 UTC (9 years, 4 months ago) by nirbheek
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove vuze-3 as per bug 218584, bug 282289, bug 324953
(Portage version: 2.1.8.3/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/vuze-3.0.4.2-r2.ebuild,v 1.1 2010/03/28 21:44:24 caster Exp $
4
5 ###
6 ### @Todo The new Azureus gui requires swt built with embedded mozilla support,
7 ### or azureus will hang at startup. However, you can still start
8 ### the old GUI which doesn't require it, by using file/restart (which
9 ### is kind of bug, and maybe I should put that patch, that removes
10 ### restart from menu, back). It probably could be invoked also by using
11 ### a different Main class (look for them there are plenty :) so we could
12 ### have some old-gui flag which would run that one and remove
13 ### the mozilla dep. Best would be some per-user setting and startup
14 ### script check for swt mozilla support and die...
15 ###
16
17 EAPI=2
18 JAVA_PKG_IUSE="source"
19
20 inherit eutils fdo-mime java-pkg-2 java-ant-2
21
22 PATCHSET_VER="3.0.3.4"
23
24 DESCRIPTION="BitTorrent client in Java, formerly called Azureus"
25 HOMEPAGE="http://www.vuze.com/"
26 SRC_URI="mirror://sourceforge/azureus/Azureus_${PV}_source.zip
27 mirror://gentoo/${PN}-${PATCHSET_VER}-gentoo-patches.tar.bz2"
28 LICENSE="GPL-2 BSD"
29
30 SLOT="0"
31 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
32 IUSE=""
33
34 RDEPEND="
35 dev-java/bcprov:1.3
36 >=dev-java/commons-cli-1.0
37 >=dev-java/log4j-1.2.8
38 || (
39 >=dev-java/swt-3.3_pre3:3[xulrunner]
40 >=dev-java/swt-3.3_pre3:3[seamonkey]
41 >=dev-java/swt-3.3_pre3:3[firefox]
42 )
43 !net-p2p/azureus-bin
44 >=virtual/jre-1.4"
45
46 DEPEND="${RDEPEND}
47 app-arch/unzip
48 dev-util/desktop-file-utils
49 >=virtual/jdk-1.4"
50 JAVA_PKG_FILTER_COMPILER="jikes"
51
52 S="${WORKDIR}"
53
54 src_unpack() {
55 unpack ${A}
56
57 ### Patches Azureus to use bcprov,
58 EPATCH_SUFFIX="patch" epatch "${S}/${PN}-${PATCHSET_VER}-gentoo-patches/"
59
60 ### Remove an unit test we never run
61 rm -v ./org/gudy/azureus2/ui/console/multiuser/TestUserManager.java || die
62
63 ### Removes OS X files and entries.
64 rm -rv "org/gudy/azureus2/platform/macosx" \
65 "org/gudy/azureus2/ui/swt/osx" || die
66
67 ### Removes Windows files.
68 rm -rv "com/aelitis/azureus/util/win32" \
69 "org/gudy/azureus2/platform/win32" \
70 "org/gudy/azureus2/ui/swt/win32" || die
71
72 ### Removes test files.
73 rm -rv "org/gudy/azureus2/ui/swt/test" || die
74
75 ### Removes bouncycastle (we use our own bcprov).
76 rm -rv "org/bouncycastle" || die
77 }
78
79 src_compile() {
80 local mem
81 use amd64 && mem="256"
82 use x86 && mem="128"
83 use ppc && mem="192"
84 find . -name "*.java" > "${T}/az-src"
85 ejavac -J-Xmx${mem}m -encoding latin1 \
86 -classpath $(java-pkg_getjars swt-3,commons-cli-1,log4j,bcprov-1.3) \
87 @"${T}/az-src"
88 find . -type f -a ! -name "*.java" > "${T}/az-jarlist"
89 jar cf azureus.jar @"${T}/az-jarlist"
90 }
91
92 src_install() {
93
94 java-pkg_dojar "azureus.jar" || die "dojar failed"
95
96 java-pkg_dolauncher "${PN}" \
97 --main "org.gudy.azureus2.ui.common.Main" \
98 -pre "${FILESDIR}/${PN}-4.1.0.0-pre" \
99 --java_args '-Dazureus.install.path=${HOME}/.azureus/ ${JAVA_OPTIONS}' \
100 --pkg_args '--ui=${UI}'
101 dosym vuze /usr/bin/azureus
102
103 # https://bugs.gentoo.org/show_bug.cgi?id=204132
104 java-pkg_register-environment-variable MOZ_PLUGIN_PATH /usr/lib/nsbrowser/plugins
105
106 newicon "${S}"/org/gudy/azureus2/ui/icons/a32.png vuze.png
107 domenu "${FILESDIR}/vuze.desktop"
108
109 use source && java-pkg_dosrc "${S}"/{com,edu,org}
110 }
111
112 pkg_postinst() {
113 ###
114 ### @Todo We should probably deactivate auto-update it by default,
115 ### or even remove the option.
116 ###
117 elog "Vuze has been formerly called Azureus and many references to the old name remain."
118 elog
119
120 elog "It is not recommended to use the Vuze auto-update feature,"
121 elog "and it might not even work. You should disable auto-update,"
122 elog "in \"Tools\" -> \"Options...\" -> \"Interface\" -> \"Start\"."
123 elog
124
125 elog
126 elog "After running Vuze for the first time, configuration"
127 elog "options will be placed in \"~/.azureus/gentoo.config\"."
128 elog "If you need to change some startup options, you should"
129 elog "modify this file, rather than the startup script."
130 elog
131 elog "Using this config file you can start the console UI."
132 elog
133
134 elog
135 elog "If you have problems starting Vuze, try starting it"
136 elog "from the command line to look at debugging output."
137 elog
138
139 elog
140 elog "To switch from classic UI to Vuze use:"
141 elog "Tools -> Options -> Interface -> Start"
142 elog "\t-> Display Azureus UI Chooser"
143 elog "Restart not working properly is a known issue."
144 elog
145
146 ewarn
147 ewarn "If you are upgrading, and the menu in Vuze has entries"
148 ewarn "like \"!MainWindow.menu.transfers!\" then you have a stray"
149 ewarn "\"MessageBundle.properties\" file, and you may safely"
150 ewarn "delete \"~/.azureus/MessagesBundle.properties\"."
151 ewarn
152
153 ewarn
154 ewarn "Before azureus-2.5.0.0-r3, the Azureus plugin directory was"
155 ewarn "set to \"~/plugins\", instead of \"~/.azureus/plugins\"."
156 ewarn "If needed, you should move the plugins, to the new location."
157 ewarn
158
159 ewarn
160 ewarn "Running Azureus as root is not supported."
161 ewarn
162
163 fdo-mime_desktop_database_update
164 }
165
166 pkg_postrm() {
167 fdo-mime_desktop_database_update
168 }

  ViewVC Help
Powered by ViewVC 1.1.20