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