1 |
caster 10/10/07 21:18:49 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: vuze-4.5.1.0.ebuild |
5 |
Removed: vuze-4.5.0.2.ebuild |
6 |
Log: |
7 |
Version bump. |
8 |
|
9 |
(Portage version: 2.2_rc88/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.43 net-p2p/vuze/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/ChangeLog?rev=1.43&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/ChangeLog?rev=1.43&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/ChangeLog?r1=1.42&r2=1.43 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v |
21 |
retrieving revision 1.42 |
22 |
retrieving revision 1.43 |
23 |
diff -u -r1.42 -r1.43 |
24 |
--- ChangeLog 10 Sep 2010 15:28:54 -0000 1.42 |
25 |
+++ ChangeLog 7 Oct 2010 21:18:49 -0000 1.43 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-p2p/vuze |
28 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v 1.42 2010/09/10 15:28:54 caster Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v 1.43 2010/10/07 21:18:49 caster Exp $ |
31 |
+ |
32 |
+*vuze-4.5.1.0 (07 Oct 2010) |
33 |
+ |
34 |
+ 07 Oct 2010; Vlastimil Babka <caster@g.o> -vuze-4.5.0.2.ebuild, |
35 |
+ +vuze-4.5.1.0.ebuild: |
36 |
+ Version bump. |
37 |
|
38 |
10 Sep 2010; Vlastimil Babka <caster@g.o> vuze-4.3.1.4-r2.ebuild, |
39 |
vuze-4.4.0.6.ebuild, vuze-4.5.0.2.ebuild, vuze-4.5.0.4.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-p2p/vuze/vuze-4.5.1.0.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/vuze-4.5.1.0.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/vuze-4.5.1.0.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: vuze-4.5.1.0.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2010 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.5.1.0.ebuild,v 1.1 2010/10/07 21:18:49 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.6[cairo,xulrunner] |
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 |
} |
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.6,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 |
fdo-mime_desktop_database_update |
181 |
} |
182 |
|
183 |
pkg_postrm() { |
184 |
fdo-mime_desktop_database_update |
185 |
} |