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