diff options
author | Hanno Meyer-Thurow <h.mth@web.de> | 2006-02-23 16:20:19 +0100 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2006-02-23 16:20:19 +0100 |
commit | b0ef5392fd32ec4111b93c578c59b84b9f4a0ec8 (patch) | |
tree | dd1d664b20f70e8402662e9aa8b51f5fca302a88 /net-p2p | |
parent | Revert "Grisbi: now in portage, delete" (diff) | |
download | portage-b0ef5392fd32ec4111b93c578c59b84b9f4a0ec8.tar.xz |
Java: GCJ work
Overlay from http://geki.ath.cx/hacks/gcj-overlay-2.tar.bz2
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/azureus/Manifest | 18 | ||||
-rw-r--r-- | net-p2p/azureus/azureus-2.4.0.0.ebuild | 99 | ||||
-rw-r--r-- | net-p2p/azureus/files/azureus-gentoo-2.4.0.0.sh | 65 | ||||
-rw-r--r-- | net-p2p/azureus/files/azureus-java.beans.XMLEncoder.patch | 24 | ||||
-rw-r--r-- | net-p2p/azureus/files/azureus.desktop | 8 | ||||
-rw-r--r-- | net-p2p/azureus/files/azureus.png | bin | 0 -> 743 bytes | |||
-rw-r--r-- | net-p2p/azureus/files/digest-azureus-2.4.0.0 | 3 |
7 files changed, 217 insertions, 0 deletions
diff --git a/net-p2p/azureus/Manifest b/net-p2p/azureus/Manifest new file mode 100644 index 00000000..819af7c8 --- /dev/null +++ b/net-p2p/azureus/Manifest @@ -0,0 +1,18 @@ +MD5 3486acb372bc3a7e35eccfe6dd973c66 azureus-2.4.0.0.ebuild 3060 +RMD160 ca3198c8f4eeab878856d6c9a00c64fcc5c4902b azureus-2.4.0.0.ebuild 3060 +SHA256 a49b5f797f0d7b37972097ab86b2b8502fb5060894384d9e4b8d941ad7d4721a azureus-2.4.0.0.ebuild 3060 +MD5 b7dc949ae21b0bd296bd187de5587cb1 files/azureus-gentoo-2.4.0.0.sh 1649 +RMD160 8746118f1426fbda7ef680b6df927211c314673d files/azureus-gentoo-2.4.0.0.sh 1649 +SHA256 3dbc1df04f6fac5f3c92e65ec6f0ccc0b98a93abb92fa0a09e4d8844bbc9a669 files/azureus-gentoo-2.4.0.0.sh 1649 +MD5 59cc507e2e00f3a7c52e6e555ef187f0 files/azureus-java.beans.XMLEncoder.patch 924 +RMD160 5b5137ec5880fe100a87e16710244aedb504934e files/azureus-java.beans.XMLEncoder.patch 924 +SHA256 c09184a45a96101fe1ebd9ae919adabf62623e7445c5783289f57463eeb16a85 files/azureus-java.beans.XMLEncoder.patch 924 +MD5 70c17db47c9a596929112714f82ac010 files/azureus.desktop 153 +RMD160 817c8e44b1068b5030b19d5f61a516f560fd4e92 files/azureus.desktop 153 +SHA256 6eb562481d31292ed0ab9cf16f88c9385318b4c3a3c015fd26238624e1fe9f7c files/azureus.desktop 153 +MD5 2d3136c60488dd51bef012cbcb59201b files/azureus.png 743 +RMD160 234517f80f6306ef4cf3704de59473a00efb50ab files/azureus.png 743 +SHA256 951bcf1bbd46d049740f50be4d1cd41bbac0892ca40b83891db6a2beff9f6a30 files/azureus.png 743 +MD5 497f8a2bf6381748bb47e98cbeec8a1d files/digest-azureus-2.4.0.0 262 +RMD160 ee0c23f350b5c49ac514f69ae02e80741b57b9a1 files/digest-azureus-2.4.0.0 262 +SHA256 a8f0b5d51f50afe16bbe6ea05c78b32b5c43f6f2c63080b0ce3f798e5ad6fb19 files/digest-azureus-2.4.0.0 262 diff --git a/net-p2p/azureus/azureus-2.4.0.0.ebuild b/net-p2p/azureus/azureus-2.4.0.0.ebuild new file mode 100644 index 00000000..2be21f4f --- /dev/null +++ b/net-p2p/azureus/azureus-2.4.0.0.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/azureus-2.3.0.6-r1.ebuild,v 1.1 2006/01/02 21:24:54 betelgeuse Exp $ + +inherit eutils java-pkg + +DESCRIPTION="Azureus - Java BitTorrent Client" +HOMEPAGE="http://azureus.sourceforge.net/" +SRC_URI="mirror://sourceforge/azureus/Azureus_${PV}_source.zip" +LICENSE="GPL-2 BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +IUSE="gcj source" + +RDEPEND=">=virtual/jre-1.4 + gcj? ( dev-java/gcj ) + >=dev-java/eclipse-ecj-3.1-r2 + >dev-java/swt-3.2_pre1 + >=dev-java/log4j-1.2.8 + >=dev-java/commons-cli-1.0 + dev-java/junit + !net-p2p/azureus-bin" +DEPEND=">=virtual/jdk-1.4 + ${RDEPEND} + >=dev-java/ant-core-1.6.2 + >=app-arch/unzip-5.0" + +S=${WORKDIR}/${PN} + +src_unpack() { + mkdir ${S} + cd ${S} + unpack ${A} + + use gcj && epatch ${FILESDIR}/${PN}-java.beans.XMLEncoder.patch + + #removing osx files and entries + rm -fr org/gudy/azureus2/ui/swt/osx org/gudy/azureus2/ui/swt/test org/gudy/azureus2/platform/macosx/access + + mkdir -p build/libs + cd build/libs + java-pkg_jar-from log4j + java-pkg_jar-from commons-cli-1 + java-pkg_jar-from swt-3 + java-pkg_jar-from junit +} + +src_compile() { + use gcj && ant_extra_opts="-Dbuild.compiler=ecj" + + # Fails to build on amd64 without this + use amd64 && export ANT_OPTS="${ANT_OPTS} -Xmx1g" + + ant -q -q ${ant_extra_opts} jar \ + || die "ant build failed" +} + +src_install() { + java-pkg_dojar dist/Azureus2.jar || die "dojar failed" + + # copying the shell script to run the app + newbin ${FILESDIR}/azureus-gentoo-${PV}.sh azureus \ + || die "Creating launcher failed." + + doicon "${FILESDIR}/azureus.png" + domenu "${FILESDIR}/azureus.desktop" + use source && java-pkg_dosrc ${S}/{com,org} +} + +pkg_postinst() { + echo + einfo "Due to the nature of the portage system, we recommend" + einfo "that users check portage for new versions of Azureus" + einfo "instead of attempting to use the auto-update feature." + einfo "You can disable auto-update in" + einfo "Tools->Options...->Interface->Start" + echo + einfo "After running azureus for the first time, configuration" + einfo "options will be placed in ~/.Azureus/gentoo.config" + einfo "It is recommended that you modify this file rather than" + einfo "the azureus startup script directly." + echo + einfo "As of this version, the new ui type 'console' is supported," + einfo "and this may be set in ~/.Azureus/gentoo.config." + echo + ewarn "If you are upgrading, and the menu in azureus has entries like" + ewarn "\"!MainWindow.menu.transfers!\" then you have a stray" + ewarn "MessageBundle.properties file," + ewarn "and you may safely delete ~/.Azureus/MessagesBundle.properties" + echo + einfo "It's recommended to use sun-java in version 1.5 or later." + einfo "If you'll notice any problems running azureus and you've" + einfo "got older java, try to upgrade it. Just remember not to set" + einfo "a 1.5 jdk as the system jdk or things will break." + echo + ewarn "Please, do not run azureus as root!" + ewarn "Azureus has not been developed for multi-user environments!" +} diff --git a/net-p2p/azureus/files/azureus-gentoo-2.4.0.0.sh b/net-p2p/azureus/files/azureus-gentoo-2.4.0.0.sh new file mode 100644 index 00000000..86b55cb9 --- /dev/null +++ b/net-p2p/azureus/files/azureus-gentoo-2.4.0.0.sh @@ -0,0 +1,65 @@ +#! /bin/bash +# +# Copyright (c) 2005, Petteri Räty <betelgeuse@gentoo.org> +# 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 + +# The Azureus config dir has moved +olddotazudir="${HOME}/.Azureus" +oldgentoocfg="${olddotazudir}/gentoo.config" +dotazudir="${HOME}/.azureus" +gentoocfg="${dotazudir}/gentoo.config" + +if [[ -f "${oldgentoocfg}" && -f "${gentoocfg}" ]]; then + cat > /dev/stderr <<END +You have gentoo.config files in both +${dotazudir} and +${olddotazudir} +${olddotazudir} is deprecated and you can delete this directory. + +END +fi + +if [[ -f "${gentoocfg}" ]] ; then + . "${gentoocfg}" + echo "using ${gentoocfg}" +elif [[ -f "${oldgentoocfg}" ]]; then + . "${oldgentoocfg}" + echo "using ${oldgentoocfg}" +else + if [[ ! -e "${dotazudir}" ]] ; then + mkdir "${dotazudir}" + echo "Creating ${dotazudir}" + fi + + # Setup defaults + UI_OPTIONS="--ui=swt" + + echo "Creating ${gentoocfg}" + + # Create the config file + cat > "${gentoocfg}" <<END +# User Interface options: +# console - console based +# swt - swt (GUI) based +# +# When selecting just 1, use '--ui=<ui>' +# When selecting multiple, use '--uis=<ui>,<ui>' +UI_OPTIONS="${UI_OPTIONS}" + +# Options you want to pass to the java binary +JAVA_OPTIONS="" +END + +fi + +#cd "${dotazudir}" + +CLASSPATH="$(java-config -p junit,log4j,commons-cli-1,swt-3,azureus)" +exec ${JAVA} -cp "${CLASSPATH}" \ + -Djava.library.path=$(java-config -i swt-3) \ + -Dazureus.install.path="${dotazudir}" \ + ${JAVA_OPTIONS} org.gudy.azureus2.ui.common.Main ${UI_OPTIONS} "${@}" diff --git a/net-p2p/azureus/files/azureus-java.beans.XMLEncoder.patch b/net-p2p/azureus/files/azureus-java.beans.XMLEncoder.patch new file mode 100644 index 00000000..8854d433 --- /dev/null +++ b/net-p2p/azureus/files/azureus-java.beans.XMLEncoder.patch @@ -0,0 +1,24 @@ +--- azureus/org/gudy/azureus2/ui/console/multiuser/UserManager.java~ 2005-09-06 08:44:54.000000000 -0700 ++++ azureus/org/gudy/azureus2/ui/console/multiuser/UserManager.java 2005-12-17 12:06:13.000000000 -0800 +@@ -23,7 +23,7 @@ + package org.gudy.azureus2.ui.console.multiuser;
+
+ import java.beans.XMLDecoder;
+-import java.beans.XMLEncoder;
++// import java.beans.XMLEncoder;
+ import java.io.BufferedInputStream;
+ import java.io.BufferedOutputStream;
+ import java.io.File;
+@@ -159,9 +159,9 @@ + List users = new ArrayList( usersMap.values() );
+ config.setUsers(users);
+
+- XMLEncoder encoder = new XMLEncoder( new BufferedOutputStream( out ) );
+- encoder.writeObject(config);
+- encoder.close();
++ // XMLEncoder encoder = new XMLEncoder( new BufferedOutputStream( out ) );
++ // encoder.writeObject(config);
++ // encoder.close();
+ }
+
+ public static UserManager getInstance(PluginInterface pi)
diff --git a/net-p2p/azureus/files/azureus.desktop b/net-p2p/azureus/files/azureus.desktop new file mode 100644 index 00000000..7a45c5e9 --- /dev/null +++ b/net-p2p/azureus/files/azureus.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Azureus +Comment=Azureus BitTorrent Client +Exec=azureus +Icon=azureus.png +Terminal=0 +Categories=Application;Network; +Type=Application diff --git a/net-p2p/azureus/files/azureus.png b/net-p2p/azureus/files/azureus.png Binary files differnew file mode 100644 index 00000000..9ece3a94 --- /dev/null +++ b/net-p2p/azureus/files/azureus.png diff --git a/net-p2p/azureus/files/digest-azureus-2.4.0.0 b/net-p2p/azureus/files/digest-azureus-2.4.0.0 new file mode 100644 index 00000000..6256a5c8 --- /dev/null +++ b/net-p2p/azureus/files/digest-azureus-2.4.0.0 @@ -0,0 +1,3 @@ +MD5 cb0390f3e1d158453fca980c92050a56 Azureus_2.4.0.0_source.zip 5235489 +RMD160 63aae0ad115be529d6abf51ddf8bba139ac439e5 Azureus_2.4.0.0_source.zip 5235489 +SHA256 1190c7281433ef9bdb32c3aac52d2c0fd31ff13114a2c569d31ccb1cc0d69d70 Azureus_2.4.0.0_source.zip 5235489 |