Gentoo Archives: gentoo-commits

From: "Vlastimil Babka (caster)" <caster@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/vuze: vuze-4.4.0.0.ebuild ChangeLog
Date: Wed, 21 Apr 2010 21:21:18
Message-Id: 20100421212116.6B10A2C04F@corvid.gentoo.org
1 caster 10/04/21 21:21:16
2
3 Modified: ChangeLog
4 Added: vuze-4.4.0.0.ebuild
5 Log:
6 Version bump. Add patches that disable update of swt and shared plugin, which completes bug #218959. Remove obsolete elog messages.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.33 net-p2p/vuze/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/ChangeLog?rev=1.33&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/ChangeLog?rev=1.33&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/ChangeLog?r1=1.32&r2=1.33
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v
19 retrieving revision 1.32
20 retrieving revision 1.33
21 diff -u -r1.32 -r1.33
22 --- ChangeLog 28 Mar 2010 21:44:24 -0000 1.32
23 +++ ChangeLog 21 Apr 2010 21:21:16 -0000 1.33
24 @@ -1,6 +1,12 @@
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.32 2010/03/28 21:44:24 caster Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v 1.33 2010/04/21 21:21:16 caster Exp $
29 +
30 +*vuze-4.4.0.0 (21 Apr 2010)
31 +
32 + 21 Apr 2010; Vlastimil Babka <caster@g.o> +vuze-4.4.0.0.ebuild:
33 + Version bump. Add patches that disable update of swt and shared plugin,
34 + which completes bug #218959. Remove obsolete elog messages.
35
36 *vuze-4.3.1.4-r2 (28 Mar 2010)
37 *vuze-4.3.0.6-r1 (28 Mar 2010)
38
39
40
41 1.1 net-p2p/vuze/vuze-4.4.0.0.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/vuze-4.4.0.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/vuze/vuze-4.4.0.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: vuze-4.4.0.0.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.4.0.0.ebuild,v 1.1 2010/04/21 21:21:16 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.4.0.0"
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.5[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/swt/test" \
116 org/gudy/azureus2/ui/console/multiuser/TestUserManager.java || die
117
118 ### Removes bouncycastle (we use our own bcprov).
119 rm -rv "org/bouncycastle" || die
120
121 ### Removes bundled json
122 rm -rv "org/json" || die
123
124 mkdir -p build/libs || die
125 }
126
127 JAVA_ANT_REWRITE_CLASSPATH="true"
128 EANT_GENTOO_CLASSPATH="swt-3.5,bcprov-1.3,json-simple,log4j,commons-cli-1"
129
130 src_compile() {
131 local mem
132 use amd64 && mem="256"
133 use x86 && mem="192"
134 use ppc && mem="192"
135 use ppc64 && mem="256"
136 export ANT_OPTS="-Xmx${mem}m"
137 java-pkg-2_src_compile
138
139 # bug #302058 - build.xml excludes .txt but upstream jar has it...
140 jar uf dist/Azureus2.jar ChangeLog.txt || die
141 }
142
143 src_install() {
144 java-pkg_dojar dist/Azureus2.jar
145 dodoc ChangeLog.txt || die
146
147 java-pkg_dolauncher "${PN}" \
148 --main org.gudy.azureus2.ui.common.Main -pre "${FILESDIR}/${PN}-4.1.0.0-pre" \
149 --java_args '-Dazureus.install.path=/usr/share/vuze/ ${JAVA_OPTIONS}' \
150 --pkg_args '--ui=${UI}'
151 dosym vuze /usr/bin/azureus
152
153 # https://bugs.gentoo.org/show_bug.cgi?id=204132
154 java-pkg_register-environment-variable MOZ_PLUGIN_PATH /usr/lib/nsbrowser/plugins
155
156 newicon "${S}"/org/gudy/azureus2/ui/icons/a32.png vuze.png
157 domenu "${FILESDIR}/${PN}.desktop"
158
159 use source && java-pkg_dosrc "${S}"/{com,edu,org}
160 }
161
162 pkg_postinst() {
163 ewarn "Running Vuze as root is not supported and may result in untracked"
164 ewarn "updates to shared components and then collisions on updates via ebuilds"
165
166 elog "Vuze has been formerly called Azureus and many references to the old name remain."
167 elog
168 elog "After running Vuze for the first time, configuration"
169 elog "options will be placed in '~/.azureus/gentoo.config'."
170 elog "If you need to change some startup options, you should"
171 elog "modify this file, rather than the startup script."
172 elog "Using this config file you can start the console UI."
173 elog
174
175 fdo-mime_desktop_database_update
176 }
177
178 pkg_postrm() {
179 fdo-mime_desktop_database_update
180 }