# ChangeLog for net-p2p/azureus
# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/ChangeLog,v 1.1 2004/11/15 10:29:24 sejo Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/ChangeLog,v 1.2 2004/12/20 16:41:26 karltk Exp $
+
+*azureus-2.2.0.0-r1 (20 Dec 2004)
+
+ 20 Dec 2004; Karl Trygve Kalleberg <karltk@gentoo.org>
+ files/azureus-gentoo.sh, files/build.xml, +azureus-2.2.0.0-r1.ebuild,
+ -azureus-2.2.0.0.ebuild:
+ Rewrote startup script. Reindented ebuild. Requires properly SLOTed version
+ of dev-java/swt. Modified build.xml script. Should fix #71378.
+
+*azureus-2.2.0.0-r1 (20 Dec 2004)
15 Nov 2004; <SeJo@gentoo.org> :
initial add of ebuild
+MD5 e673454e4f8d9b980f5987e8074d82d3 azureus-2.2.0.0-r1.ebuild 2176
+MD5 5258bcb9a105fd96ff8f4cbf798bb3c7 ChangeLog 633
MD5 a63336d02253ae5fe2ad69f813bdd7d8 metadata.xml 329
-MD5 575d8c4c512344e302dcda6e0b2f8723 ChangeLog 261
-MD5 f4bbad69c5641c5a91d1daa68ab3e492 azureus-2.2.0.0.ebuild 2169
-MD5 21218e1a7c134f02c8e42bcb63375e74 files/SWTThread.java 2549
-MD5 176ecbdf186cc2d1e318ece1acd3f1bf files/build.xml 659
+MD5 67821fe5d66efda508803dfa3a87b967 files/digest-azureus-2.2.0.0-r1 134
+MD5 77d299aef0633c501b998f3ec0c1f0c9 files/azureus-gentoo.sh 1010
MD5 70c17db47c9a596929112714f82ac010 files/azureus.desktop 153
+MD5 3ae1e81c8450fa93040e4e97a1311d88 files/build.xml 661
+MD5 21218e1a7c134f02c8e42bcb63375e74 files/SWTThread.java 2549
MD5 2d3136c60488dd51bef012cbcb59201b files/azureus.png 743
-MD5 5ad6311f84c6f6205bf3c57160a246a2 files/azureus-gentoo.sh 1793
-MD5 67821fe5d66efda508803dfa3a87b967 files/digest-azureus-2.2.0.0 134
--- /dev/null
+# Copyright 1999-2004 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.1 2004/12/20 16:41:26 karltk 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"
+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
+}
+++ /dev/null
-# Copyright 1999-2004 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.ebuild,v 1.1 2004/11/15 10:29:24 sejo 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="~ppc"
-IUSE=""
-DEPEND="virtual/libc
- >=dev-java/swt-3.0
- >=app-arch/unzip-5.0"
-RDEPEND="virtual/libc
- >=dev-java/swt-3.0
- >=dev-java/log4j-1.2.8
- >=dev-java/commons-cli-1.0
- >=dev-java/systray4j-2.4"
-S=${WORKDIR}/${PN}
-
-src_unpack() {
- 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() {
- 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
-}
-#!/bin/sh
+#! /bin/bash
+#
+# Copyright (c) 2004, Jochen Maes <sejo@gentoo.org>
+# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
+# Copyright (c) 2004, Gentoo Foundation
+#
+# Licensed under the GNU General Public License, v2
-PROGRAM_DIR=##PROGRAM_DIR## # directory where all the files were extracted
+azudir=/usr/lib/azureus
+dotazudir=${HOME}/.Azureus
+gentoocfg=${dotazudir}/gentoo.config
-AZ_CONFIG="${HOME}/.Azureus/gentoo.config"
-if [ -f ~/.Azureus/gentoo.config ]; then
- . ~/.Azureus/gentoo.config
+if [ -f ${gentoocfg} ] ; then
+ . ${gentoocfg}
else
- if [ ! -e ~/.Azureus ]; then
- mkdir ~/.Azureus
- echo "Creating ~/.Azureus..."
+ if [ ! -e ${dotazudir} ] ; then
+ mkdir ${dotazudir}
+ echo "Creating ${dotazudir}"
fi
# Setup defaults
UI_OPTIONS="--ui=swt"
# Create the config file
- cat > ${AZ_CONFIG} <<END
+ cat > ${gentoocfg} <<END
# User Interface options:
# web - web based
# web2 - web based
fi
-MSG0="ERROR:\nYou must edit this script and change PROGRAM_DIR to point to where you installed Azureus"
-MSG1="Attempting to start Azureus..."
-
-AZDIR=./
-if [ ! -e id.azureus.dir.file ]; then
- AZDIR=$PROGRAM_DIR
- if [ ! -d $AZDIR ]; then
- echo $MSG0 >&2
- exit -1
- fi
-fi
+cd ${dotazudir}
-cd ${AZDIR}
-echo $MSG1
-
-# This should work as long as your classpath is setup right...
-#JARS=`ls *.jar | grep -v Azureus2`
-#for FILE in $JARS; do CLASSPATH="${FILE}:${CLASSPATH}"; done
-#java -cp $CLASSPATH -Djava.library.path="/usr/lib:${AZDIR}" -jar Azureus2.jar ${UI_OPTIONS} "$1"
-
-# Try this if the above doesn't work
-for FILE in *.jar; do CLASSPATH="${FILE}:${CLASSPATH}"; done
-java -cp $CLASSPATH -Djava.library.path="/usr/share/swt/lib:${AZDIR}" org.gudy.azureus2.ui.swt.Main "$1"
-
-if [ $? -ne 0 ]; then
- echo "If you recieved an error about a missing java class, you need to setup"
- echo "your classpath correctly."
- echo "This should do the trick (as root):"
- echo "java-config --add-system-classpath=junit,log4j,commons-cli-1,systray4j,swt"
- echo "env-update && source /etc/profile"
- echo
- echo "Currently, your classpath (including azureus additions) is:"
- echo "${CLASSPATH}"
-fi
+CLASSPATH=$(java-config -p junit,log4j,commons-cli-1,systray4j,swt-3):${azudir}/azureus.jar:${azudir}/seda.jar
+java -cp $CLASSPATH -Djava.library.path=/usr/lib org.gudy.azureus2.ui.swt.Main "$1"
<classpath>
<pathelement location="."/>
<pathelement location="/usr/share/commons-cli-1/lib/commons-cli.jar"/>
- <pathelement location="/usr/share/swt/lib/swt.jar"/>
+ <pathelement location="/usr/share/swt-3/lib/swt.jar"/>
<pathelement location="seda.jar"/>
</classpath>
</javac>