1 |
caster 10/09/09 21:46:45 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: vuze-4.5.0.4.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2_rc77/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.41 net-p2p/vuze/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/ChangeLog?rev=1.41&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/ChangeLog?rev=1.41&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/ChangeLog?r1=1.40&r2=1.41 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v |
20 |
retrieving revision 1.40 |
21 |
retrieving revision 1.41 |
22 |
diff -u -r1.40 -r1.41 |
23 |
--- ChangeLog 26 Aug 2010 10:19:46 -0000 1.40 |
24 |
+++ ChangeLog 9 Sep 2010 21:46:45 -0000 1.41 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-p2p/vuze |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v 1.40 2010/08/26 10:19:46 caster Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v 1.41 2010/09/09 21:46:45 caster Exp $ |
30 |
+ |
31 |
+*vuze-4.5.0.4 (09 Sep 2010) |
32 |
+ |
33 |
+ 09 Sep 2010; Vlastimil Babka <caster@g.o> +vuze-4.5.0.4.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
*vuze-4.5.0.2 (26 Aug 2010) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 net-p2p/vuze/vuze-4.5.0.4.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/vuze-4.5.0.4.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/vuze-4.5.0.4.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: vuze-4.5.0.4.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 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.5.0.4.ebuild,v 1.1 2010/09/09 21:46:45 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.6[cairo,xulrunner] |
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 |
} |
98 |
|
99 |
java_prepare() { |
100 |
# build.xml disappeared from 4.4.0.0 although it was there in 4.3.1.4 |
101 |
# hopefully that's just a packaging mistake |
102 |
[[ -f build.xml ]] && die "upstream has build.xml again, don't overwrite" |
103 |
cp "${FILESDIR}/build.xml" . || die "failed to copy build.xml" |
104 |
|
105 |
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PATCHSET_DIR}/" |
106 |
|
107 |
### Removes OS X files and entries. |
108 |
rm -rv "org/gudy/azureus2/platform/macosx" \ |
109 |
"org/gudy/azureus2/ui/swt/osx" || die |
110 |
|
111 |
### Removes Windows files. |
112 |
rm -v ./org/gudy/azureus2/ui/swt/win32/Win32UIEnhancer.java || die |
113 |
|
114 |
### Removes test files. |
115 |
rm -rv org/gudy/azureus2/ui/console/multiuser/TestUserManager.java || die |
116 |
|
117 |
### Removes bouncycastle (we use our own bcprov). |
118 |
rm -rv "org/bouncycastle" || die |
119 |
|
120 |
### Removes bundled json |
121 |
rm -rv "org/json" || die |
122 |
|
123 |
### The Tree2 file does not compile against Linux SWT and is used only on Windows. |
124 |
### It's runtime-conditional use is thus patched out in the patchset. |
125 |
rm -rf "org/eclipse" || die |
126 |
|
127 |
mkdir -p build/libs || die |
128 |
} |
129 |
|
130 |
JAVA_ANT_REWRITE_CLASSPATH="true" |
131 |
EANT_GENTOO_CLASSPATH="swt-3.6,bcprov-1.3,json-simple,log4j,commons-cli-1" |
132 |
|
133 |
src_compile() { |
134 |
local mem |
135 |
use amd64 && mem="256" |
136 |
use x86 && mem="192" |
137 |
use ppc && mem="192" |
138 |
use ppc64 && mem="256" |
139 |
export ANT_OPTS="-Xmx${mem}m" |
140 |
java-pkg-2_src_compile |
141 |
|
142 |
# bug #302058 - build.xml excludes .txt but upstream jar has it... |
143 |
jar uf dist/Azureus2.jar ChangeLog.txt || die |
144 |
} |
145 |
|
146 |
src_install() { |
147 |
java-pkg_dojar dist/Azureus2.jar |
148 |
dodoc ChangeLog.txt || die |
149 |
|
150 |
java-pkg_dolauncher "${PN}" \ |
151 |
--main org.gudy.azureus2.ui.common.Main -pre "${FILESDIR}/${PN}-4.1.0.0-pre" \ |
152 |
--java_args '-Dazureus.install.path=/usr/share/vuze/ ${JAVA_OPTIONS}' \ |
153 |
--pkg_args '--ui=${UI}' |
154 |
dosym vuze /usr/bin/azureus |
155 |
|
156 |
# https://bugs.gentoo.org/show_bug.cgi?id=204132 |
157 |
java-pkg_register-environment-variable MOZ_PLUGIN_PATH /usr/lib/nsbrowser/plugins |
158 |
|
159 |
newicon "${S}"/org/gudy/azureus2/ui/icons/a32.png vuze.png |
160 |
domenu "${FILESDIR}/${PN}.desktop" |
161 |
|
162 |
use source && java-pkg_dosrc "${S}"/{com,edu,org} |
163 |
} |
164 |
|
165 |
pkg_postinst() { |
166 |
ewarn "Running Vuze as root is not supported and may result in untracked" |
167 |
ewarn "updates to shared components and then collisions on updates via ebuilds" |
168 |
|
169 |
elog "Vuze has been formerly called Azureus and many references to the old name remain." |
170 |
elog |
171 |
elog "After running Vuze for the first time, configuration" |
172 |
elog "options will be placed in '~/.azureus/gentoo.config'." |
173 |
elog "If you need to change some startup options, you should" |
174 |
elog "modify this file, rather than the startup script." |
175 |
elog "Using this config file you can start the console UI." |
176 |
elog |
177 |
|
178 |
fdo-mime_desktop_database_update |
179 |
} |
180 |
|
181 |
pkg_postrm() { |
182 |
fdo-mime_desktop_database_update |
183 |
} |