Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/vuze/
Date: Mon, 04 Apr 2022 07:31:51
Message-Id: 1649057499.14bf1e03e427ba9607b4573761f7de9d624ee773.flow@gentoo
1 commit: 14bf1e03e427ba9607b4573761f7de9d624ee773
2 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
3 AuthorDate: Sat Apr 2 17:19:11 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 4 07:31:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14bf1e03
7
8 net-p2p/vuze: Drop 5.7.6.0-r1
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
12 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
13
14 net-p2p/vuze/vuze-5.7.6.0-r1.ebuild | 144 ------------------------------------
15 1 file changed, 144 deletions(-)
16
17 diff --git a/net-p2p/vuze/vuze-5.7.6.0-r1.ebuild b/net-p2p/vuze/vuze-5.7.6.0-r1.ebuild
18 deleted file mode 100644
19 index a26544780ba1..000000000000
20 --- a/net-p2p/vuze/vuze-5.7.6.0-r1.ebuild
21 +++ /dev/null
22 @@ -1,144 +0,0 @@
23 -# Copyright 1999-2021 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=7
27 -
28 -JAVA_PKG_IUSE="source"
29 -
30 -inherit desktop edos2unix java-pkg-2 java-ant-2 xdg-utils
31 -
32 -MY_PV=$(ver_rs 1- "")
33 -MY_SRC="Vuze_${MY_PV}"
34 -
35 -DESCRIPTION="BitTorrent client in Java, formerly called Azureus"
36 -HOMEPAGE="http://www.vuze.com/"
37 -SRC_URI="mirror://sourceforge/azureus/${PN}/${MY_SRC}/${MY_SRC}_source.zip"
38 -LICENSE="GPL-2 BSD"
39 -
40 -SLOT="0"
41 -KEYWORDS="amd64 ppc64 x86"
42 -
43 -# bundles parts of http://www.programmers-friend.org/
44 -# bundles bcprov - 1.37 required but not in the tree
45 -CDEPEND="
46 - dev-java/log4j:0
47 - dev-java/swt:3.8[cairo]
48 - dev-java/commons-cli:1
49 - dev-java/commons-text:0
50 - dev-java/json-simple:0"
51 -
52 -RDEPEND="
53 - ${CDEPEND}
54 - >=virtual/jre-1.8:*"
55 -
56 -# does not compile with java 11, uses classes deprecated even in java 8
57 -DEPEND="
58 - ${CDEPEND}
59 - app-arch/unzip
60 - dev-util/desktop-file-utils
61 - virtual/jdk:1.8"
62 -
63 -PDEPEND="~net-p2p/vuze-coreplugins-${PV}"
64 -
65 -PATCHES=(
66 - "${FILESDIR}"/${PN}-5.3.0.0-java5.patch
67 - "${FILESDIR}"/${PN}-5.3.0.0-remove-classpath.patch
68 - "${FILESDIR}"/${PN}-5.3.0.0-disable-shared-plugins.patch
69 - "${FILESDIR}"/${PN}-5.7.2.0-disable-osx.patch
70 - "${FILESDIR}"/${PN}-5.3.0.0-disable-updaters.patch
71 - "${FILESDIR}"/${PN}-5.3.0.0-unbundle-json.patch
72 - "${FILESDIR}"/${PN}-5.7.6.0-commons-lang.patch
73 -)
74 -
75 -src_unpack() {
76 - mkdir -p "${S}" || die
77 - cd "${S}" || die
78 - unpack ${A}
79 -
80 - # build.xml disappeared from 4.4.0.0 although it was there in 4.3.1.4
81 - if [[ -f build.xml ]]; then
82 - die "upstream has build.xml again, don't overwrite"
83 - fi
84 - cp "${FILESDIR}"/build.xml "${S}" || die "failed to copy build.xml"
85 -}
86 -
87 -src_prepare() {
88 - # upstream likes randomly changing a subset of files to CRLF every release
89 - edos2unix $(find "${S}" -type f -name "*.java")
90 -
91 - default
92 -
93 - # OSX / Windows
94 - rm "${S}"/org/gudy/azureus2/ui/swt/osx/CarbonUIEnhancer.java || die
95 - rm "${S}"/org/gudy/azureus2/ui/swt/osx/Start.java || die
96 - rm "${S}"/org/gudy/azureus2/ui/swt/win32/Win32UIEnhancer.java || die
97 -
98 - # Tree2 file does not compile on linux
99 - rm -rf "${S}"/org/eclipse || die
100 - # Bundled apache
101 - rm -rf "${S}"/org/apache || die
102 - # Bundled json
103 - rm -rf "${S}"/org/json || die
104 - # Bundled bcprov
105 - # currently disabled - requires bcprov 1.37
106 - #rm -rf "${S}"/org/bouncycastle || die
107 -
108 - rm -rf "${S}"/org/gudy/azureus2/ui/console/multiuser/TestUserManager.java || die
109 - mkdir -p "${S}"/build/libs || die
110 -}
111 -
112 -JAVA_ANT_REWRITE_CLASSPATH="true"
113 -EANT_GENTOO_CLASSPATH="swt-3.8,json-simple,log4j,commons-cli-1,commons-text"
114 -
115 -src_compile() {
116 - local mem
117 - use amd64 && mem="320"
118 - use x86 && mem="256"
119 - use ppc && mem="192"
120 - use ppc64 && mem="256"
121 - use sparc && mem="320"
122 - export ANT_OPTS="-Xmx${mem}m"
123 - java-pkg-2_src_compile
124 -
125 - # bug #302058 - build.xml excludes .txt but upstream jar has it...
126 - jar uf dist/Azureus2.jar ChangeLog.txt || die
127 -}
128 -
129 -src_install() {
130 - java-pkg_dojar dist/Azureus2.jar
131 - dodoc ChangeLog.txt
132 -
133 - java-pkg_dolauncher "${PN}" \
134 - --main org.gudy.azureus2.ui.common.Main -pre "${FILESDIR}/${PN}-4.1.0.0-pre" \
135 - --java_args '-Dazureus.install.path=/usr/share/vuze/ ${JAVA_OPTIONS}' \
136 - --pkg_args '--ui=${UI}'
137 - dosym vuze /usr/bin/azureus
138 -
139 - # https://bugs.gentoo.org/show_bug.cgi?id=204132
140 - java-pkg_register-environment-variable MOZ_PLUGIN_PATH /usr/lib/nsbrowser/plugins
141 -
142 - newicon "${S}"/org/gudy/azureus2/ui/icons/a32.png vuze.png
143 - domenu "${FILESDIR}"/${PN}.desktop
144 -
145 - use source && java-pkg_dosrc "${S}"/{com,edu,org}
146 -}
147 -
148 -pkg_postinst() {
149 - ewarn "Running Vuze as root is not supported and may result in untracked"
150 - ewarn "updates to shared components and then collisions on updates"
151 - echo
152 - elog "Vuze was formerly called Azureus and many references to the old name remain."
153 - elog
154 - elog "After running Vuze for the first time, configuration options will be"
155 - elog "placed in '~/.azureus/gentoo.config'."
156 - elog
157 - elog "If you need to change some startup options, you should modify this file"
158 - elog "rather than the startup script. You can enable the console UI by"
159 - elog "editing this config file."
160 - echo
161 - xdg_desktop_database_update
162 -}
163 -
164 -pkg_postrm() {
165 - xdg_desktop_database_update
166 -}