1 |
caster 11/12/27 17:04:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: vuze-4.7.0.0-r1.ebuild |
5 |
Log: |
6 |
Revbump to actually use swt-3.7 instead of 3.6, bug #390921. |
7 |
|
8 |
(Portage version: 2.2.0_alpha83/cvs/Linux x86_64, RepoMan options: --force) |
9 |
|
10 |
Revision Changes Path |
11 |
1.51 net-p2p/vuze/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/ChangeLog?rev=1.51&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/ChangeLog?rev=1.51&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/ChangeLog?r1=1.50&r2=1.51 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v |
20 |
retrieving revision 1.50 |
21 |
retrieving revision 1.51 |
22 |
diff -u -r1.50 -r1.51 |
23 |
--- ChangeLog 17 Nov 2011 23:27:43 -0000 1.50 |
24 |
+++ ChangeLog 27 Dec 2011 17:04:28 -0000 1.51 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-p2p/vuze |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v 1.50 2011/11/17 23:27:43 caster Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v 1.51 2011/12/27 17:04:28 caster Exp $ |
30 |
+ |
31 |
+*vuze-4.7.0.0-r1 (27 Dec 2011) |
32 |
+ |
33 |
+ 27 Dec 2011; Vlastimil Babka <caster@g.o> +vuze-4.7.0.0-r1.ebuild: |
34 |
+ Revbump to actually use swt-3.7 instead of 3.6, bug #390921. |
35 |
|
36 |
*vuze-4.7.0.0 (17 Nov 2011) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 net-p2p/vuze/vuze-4.7.0.0-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/vuze-4.7.0.0-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/vuze-4.7.0.0-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: vuze-4.7.0.0-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 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.7.0.0-r1.ebuild,v 1.1 2011/12/27 17:04:28 caster Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
|
54 |
JAVA_PKG_IUSE="source" |
55 |
|
56 |
inherit eutils fdo-mime java-pkg-2 java-ant-2 versionator |
57 |
|
58 |
MY_PV=$(replace_all_version_separators "") |
59 |
|
60 |
PATCHSET_VER="4.5.0.2" |
61 |
PATCHSET_DIR="${PN}-${PATCHSET_VER}-gentoo-patches" |
62 |
PATCHSET="${PATCHSET_DIR}.tar.bz2" |
63 |
SRC_TARBALL="Vuze_${MY_PV}_source.zip" |
64 |
|
65 |
DESCRIPTION="BitTorrent client in Java, formerly called Azureus" |
66 |
HOMEPAGE="http://www.vuze.com/" |
67 |
SRC_URI="mirror://sourceforge/azureus/${PN}/Vuze_${MY_PV}/${SRC_TARBALL} |
68 |
mirror://gentoo/${PATCHSET}" |
69 |
LICENSE="GPL-2 BSD" |
70 |
|
71 |
SLOT="0" |
72 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
73 |
IUSE="" |
74 |
|
75 |
# bundles parts of commons-lang, but modified |
76 |
# bundles parts of http://www.programmers-friend.org/ |
77 |
RDEPEND=" |
78 |
dev-java/json-simple:0 |
79 |
dev-java/bcprov:1.3 |
80 |
>=dev-java/commons-cli-1.0:1 |
81 |
>=dev-java/log4j-1.2.8:0 |
82 |
dev-java/swt:3.7[cairo] |
83 |
!net-p2p/azureus-bin |
84 |
>=virtual/jre-1.5" |
85 |
|
86 |
DEPEND="${RDEPEND} |
87 |
app-arch/unzip |
88 |
dev-util/desktop-file-utils |
89 |
>=virtual/jdk-1.5" |
90 |
|
91 |
PDEPEND="~net-p2p/vuze-coreplugins-${PV}" |
92 |
|
93 |
src_unpack() { |
94 |
unpack ${PATCHSET} |
95 |
mkdir "${S}" && cd "${S}" || die |
96 |
unpack ${SRC_TARBALL} |
97 |
# this is no longer needed |
98 |
rm "${WORKDIR}/${PATCHSET_DIR}/0006-Remove-the-use-of-windows-only-Tree2-widget.patch" || die |
99 |
} |
100 |
|
101 |
java_prepare() { |
102 |
# build.xml disappeared from 4.4.0.0 although it was there in 4.3.1.4 |
103 |
# hopefully that's just a packaging mistake |
104 |
[[ -f build.xml ]] && die "upstream has build.xml again, don't overwrite" |
105 |
cp "${FILESDIR}/build.xml" . || die "failed to copy build.xml" |
106 |
|
107 |
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PATCHSET_DIR}/" |
108 |
|
109 |
### Removes OS X files and entries. |
110 |
rm -rv "org/gudy/azureus2/platform/macosx" \ |
111 |
"org/gudy/azureus2/ui/swt/osx" || die |
112 |
|
113 |
### Removes Windows files. |
114 |
rm -v ./org/gudy/azureus2/ui/swt/win32/Win32UIEnhancer.java || die |
115 |
|
116 |
### Removes test files. |
117 |
rm -rv org/gudy/azureus2/ui/console/multiuser/TestUserManager.java || die |
118 |
|
119 |
### Removes bouncycastle (we use our own bcprov). |
120 |
rm -rv "org/bouncycastle" || die |
121 |
|
122 |
### Removes bundled json |
123 |
rm -rv "org/json" || die |
124 |
|
125 |
### The Tree2 file does not compile against Linux SWT and is used only on Windows. |
126 |
### It's runtime-conditional use is thus patched out in the patchset. |
127 |
rm -rf "org/eclipse" || die |
128 |
|
129 |
mkdir -p build/libs || die |
130 |
} |
131 |
|
132 |
JAVA_ANT_REWRITE_CLASSPATH="true" |
133 |
EANT_GENTOO_CLASSPATH="swt-3.7,bcprov-1.3,json-simple,log4j,commons-cli-1" |
134 |
|
135 |
src_compile() { |
136 |
local mem |
137 |
use amd64 && mem="320" |
138 |
use x86 && mem="192" |
139 |
use ppc && mem="192" |
140 |
use ppc64 && mem="256" |
141 |
export ANT_OPTS="-Xmx${mem}m" |
142 |
java-pkg-2_src_compile |
143 |
|
144 |
# bug #302058 - build.xml excludes .txt but upstream jar has it... |
145 |
jar uf dist/Azureus2.jar ChangeLog.txt || die |
146 |
} |
147 |
|
148 |
src_install() { |
149 |
java-pkg_dojar dist/Azureus2.jar |
150 |
dodoc ChangeLog.txt || die |
151 |
|
152 |
java-pkg_dolauncher "${PN}" \ |
153 |
--main org.gudy.azureus2.ui.common.Main -pre "${FILESDIR}/${PN}-4.1.0.0-pre" \ |
154 |
--java_args '-Dazureus.install.path=/usr/share/vuze/ ${JAVA_OPTIONS}' \ |
155 |
--pkg_args '--ui=${UI}' |
156 |
dosym vuze /usr/bin/azureus |
157 |
|
158 |
# https://bugs.gentoo.org/show_bug.cgi?id=204132 |
159 |
java-pkg_register-environment-variable MOZ_PLUGIN_PATH /usr/lib/nsbrowser/plugins |
160 |
|
161 |
newicon "${S}"/org/gudy/azureus2/ui/icons/a32.png vuze.png |
162 |
domenu "${FILESDIR}/${PN}.desktop" |
163 |
|
164 |
use source && java-pkg_dosrc "${S}"/{com,edu,org} |
165 |
} |
166 |
|
167 |
pkg_postinst() { |
168 |
ewarn "Running Vuze as root is not supported and may result in untracked" |
169 |
ewarn "updates to shared components and then collisions on updates via ebuilds" |
170 |
|
171 |
elog "Vuze has been formerly called Azureus and many references to the old name remain." |
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 |
|
180 |
if ! has_version dev-java/swt:3.7[webkit]; then |
181 |
elog |
182 |
elog "Your dev-java/swt:3.7 was built without xulrunner support. Features such as Vuze HD Network will not work." |
183 |
elog "Rebuild swt with USE=webkit (needs net-libs/webkit-gtk:2) to use these features." |
184 |
fi |
185 |
|
186 |
fdo-mime_desktop_database_update |
187 |
} |
188 |
|
189 |
pkg_postrm() { |
190 |
fdo-mime_desktop_database_update |
191 |
} |