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.5.0.2.ebuild ChangeLog vuze-4.4.0.4.ebuild
Date: Thu, 26 Aug 2010 10:19:51
Message-Id: 20100826101946.574C32004E@flycatcher.gentoo.org
1 caster 10/08/26 10:19:46
2
3 Modified: ChangeLog
4 Added: vuze-4.5.0.2.ebuild
5 Removed: vuze-4.4.0.4.ebuild
6 Log:
7 Version bump, bug #331601. Remove the xfs_io patch as xfsprogs-3.1.2 uses /usr/sbin - bug #188875.
8 (Portage version: 2.2_rc67/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.40 net-p2p/vuze/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/ChangeLog?rev=1.40&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/ChangeLog?rev=1.40&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/ChangeLog?r1=1.39&r2=1.40
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v
20 retrieving revision 1.39
21 retrieving revision 1.40
22 diff -u -r1.39 -r1.40
23 --- ChangeLog 26 Jun 2010 10:39:09 -0000 1.39
24 +++ ChangeLog 26 Aug 2010 10:19:46 -0000 1.40
25 @@ -1,6 +1,13 @@
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.39 2010/06/26 10:39:09 nirbheek Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v 1.40 2010/08/26 10:19:46 caster Exp $
30 +
31 +*vuze-4.5.0.2 (26 Aug 2010)
32 +
33 + 26 Aug 2010; Vlastimil Babka <caster@g.o> -vuze-4.4.0.4.ebuild,
34 + +vuze-4.5.0.2.ebuild:
35 + Version bump, bug #331601. Remove the xfs_io patch as xfsprogs-3.1.2 uses
36 + /usr/sbin - bug #188875.
37
38 26 Jun 2010; Nirbheek Chauhan <nirbheek@g.o>
39 -vuze-3.0.4.2-r2.ebuild:
40
41
42
43 1.1 net-p2p/vuze/vuze-4.5.0.2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/vuze-4.5.0.2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/vuze/vuze-4.5.0.2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: vuze-4.5.0.2.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.0.2.ebuild,v 1.1 2010/08/26 10:19:46 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="256"
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 }