blob: a4b1b4326439342711dd1dd3b8a767fd4570f7a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/azureus-2.2.0.0-r1.ebuild,v 1.2 2005/04/03 12:01:25 axxo Exp $
DESCRIPTION="Azureus - Java BitTorrent Client"
HOMEPAGE="http://azureus.sourceforge.net/"
SRC_URI="mirror://sourceforge/azureus/Azureus_${PV}_source.zip
mirror://gentoo/seda-20040224.zip"
LICENSE="GPL-2 BSD"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
DEPEND="virtual/libc
>=dev-java/swt-3.0
>=app-arch/unzip-5.0
!net-p2p/azureus-bin"
RDEPEND="virtual/libc
>=dev-java/swt-3.0-r2
>=dev-java/log4j-1.2.8
>=dev-java/commons-cli-1.0
>=dev-java/systray4j-2.4"
S=${WORKDIR}/${PN}
src_unpack() {
local PROGRAM_DIR="/usr/lib/${PN}"
mkdir ${S} && cd ${S}
unpack ${A}
cp ${FILESDIR}/build.xml ${S} || die "cp build.xml failed"
#removing osx files and entries
cp -f ${FILESDIR}/SWTThread.java \
${S}/org/gudy/azureus2/ui/swt/mainwindow/SWTThread.java \
|| die "cp SWTThread.java failed!"
# copying the shell to run the app
cp ${FILESDIR}/azureus-gentoo.sh ${S}/azureus \
|| die "cp azureus-gentoo.sh filed"
# Set runtime settings in the startup script
sed -i "s:##PROGRAM_DIR##:${PROGRAM_DIR}:" ${S}/azureus \
|| die "sed azureus program dir failed !"
rm -fr org/gudy/azureus2/ui/swt/osx org/gudy/azureus2/ui/swt/test
}
src_compile() {
# Figure out correct boot classpath
if [ ! -z "$(java-config --java-version | grep IBM)" ] ; then
# IBM JRE
ant_extra_opts="-Dbootclasspath=$(java-config --jdk-home)/jre/lib/core.jar:$(java-config --jdk-home)/jre/lib/xml.jar:$(java-config --jdk-home)/jre/lib/graphics.jar"
else
# Sun derived JREs (Blackdown, Sun)
ant_extra_opts="-Dbootclasspath=$(java-config --jdk-home)/jre/lib/rt.jar"
fi
ant -q -q \
-buildfile build.xml ${ant_extra_opts} jar \
|| die "ant build failed"
}
src_install() {
local PROGRAM_DIR="/usr/lib/${PN}"
insinto ${PROGRAM_DIR}
doins *.jar || die "doins jar failed"
dobin azureus || die "dobin /usr/bin/azureus failed"
insinto /usr/share/pixmaps
doins "${FILESDIR}/azureus.png"
insinto /usr/share/applications
doins "${FILESDIR}/azureus.desktop"
dodoc seda-README.txt
}
|