# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-p2p/limewire/limewire-4.8.1.ebuild,v 1.5 2005/05/14 14:21:11 luckyduck Exp $ inherit eutils java-pkg IUSE="gtk" DESCRIPTION="Limewire Java Gnutella client" HOMEPAGE="http://www.limewire.com" SRC_URI="http://dev.gentoo.org/~sekretarz/distfiles/LimeWireOther-${PV}.zip" LICENSE="GPL-2 Apache-2.0" SLOT="0" KEYWORDS="x86 ~ppc amd64" DEPEND="app-arch/unzip" RDEPEND="virtual/jre virtual/x11 gtk? ( >=x11-libs/gtk+-2.4 ) dev-java/commons-logging dev-java/commons-httpclient dev-java/jdictrayapi dev-java/jmdns dev-java/log4j =dev-java/xerces-2*" S=${WORKDIR}/LimeWire PREFIX="/opt/limewire" src_unpack() { unpack ${A} cd ${S} } src_compile() { ( echo \#!/bin/sh echo cd ${PREFIX} echo export J2SE_PREEMPTCLOSE=1 echo java -cp .:collections.jar:xerces.jar:jl011.jar:MessagesBundles.jar:themes.jar:logicrypto.jar:GURL.jar:LimeWire.jar com.limegroup.gnutella.gui.Main ) >limewire.gentoo echo PATH=${PREFIX} > limewire.envd } src_install() { insinto ${PREFIX} doins *.jar *.war *.properties *.ver *.sh hashes *.txt exeinto /usr/bin newexe limewire.gentoo limewire newenvd limewire.envd 99limewire insinto /usr/share/icons/hicolor/32x32/apps newins ${FILESDIR}/main-icon.png limewire.png make_desktop_entry limewire LimeWire einfo "Fixing jar files in ${PREFIX}" # NOTE: LimeWire seems to check the hash of the jars against # a known value... so anything we use probably needs to be the exact same # version as shipped with LimeWire cd ${D}/${PREFIX} # TODO: clink.jar cybergarage.org ? java-pkg_jar-from commons-logging java-pkg_jar-from commons-httpclient # TODO: daap.jar kapsi.de ? # TODO: i18n.jar # It doesn't seem to like icu4j.jar # The packed jar is 2.6, but the version available from portage is 3.0 #java-pkg_jar-from icu4j # TODO: id3v2.jar http://vdheide.de/java_mp3/ # TODO: jcraft.jar http://jcraft.com ? # TODO: jdic.jar https://jdic.dev.java.net/ java-pkg_jar-from jdictrayapi # TODO: jl011.jar java-pkg_jar-from jmdns java-pkg_jar-from log4j # TODO: logicrypto.jar http://logi.org/logi.crypto/ # TODO: looks.jar # TODO: mp3sp14.jar http://www.javazoom.net/mp3spi/mp3spi.html # TODO: themes.jar # TODO: tritonus.jar http://tritonus.org/ # TODO: vorbis.jar http://www.javazoom.net/vorbisspi/vorbisspi.html # xerces.jar doesn't appear to be from xerces-1.3 # nor does it seem to match anything from 2* #java-pkg_jar-from xerces-1.3 java-pkg_jar-from xerces-2 xml-apis.jar } pkg_postinst() { use gtk || ewarn "You will probably not be able to use the gtk frontend." }