blob: 5048b350cacea989408811901fb5821f02be8de1 (
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
|
# 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.2.3.ebuild,v 1.2 2005/02/25 02:45:37 squinky86 Exp $
IUSE="gtk"
DESCRIPTION="Limewire Java Gnutella client"
HOMEPAGE="http://www.limewire.com"
SRC_URI="http://dev.gentoo.org/~squinky86/files/LimeWireLinux-${PV}.tgz"
LICENSE="GPL-2 Apache-2.0"
SLOT="0"
KEYWORDS="x86 ~ppc ~amd64"
DEPEND="virtual/jre
virtual/x11"
RDEPEND="${DEPEND}
gtk? ( >=x11-libs/gtk+-2.4 )"
S=${WORKDIR}
PREFIX="/opt/limewire"
src_compile() {
( echo \#!/bin/sh
echo cd ${PREFIX}
echo java -cp .:collections.jar:xerces.jar:jl011.jar:MessagesBundles.jar:themes.jar:logicrypto.jar:GURL.jar com.limegroup.gnutella.gui.Main
echo export J2SE_PREEMPTCLOSE=1
echo java -jar LimeWire.jar
) >limewire.gentoo
echo PATH=${PREFIX} >99limewire
}
src_install() {
insinto ${PREFIX}
doins *.jar *.war *.properties *.ver *.sh hashes *.txt
exeinto /usr/bin
newexe limewire.gentoo limewire
insinto /etc/env.d
doins 99limewire
insinto /usr/share/applications
doins ${FILESDIR}/limewire.desktop
insinto /usr/share/pixmaps/limewire
doins ${FILESDIR}/main-icon.png
}
pkg_postinst() {
use gtk || ewarn "You will probably not be able to use the gtk frontend."
einfo " Finished installing LimeWire into ${PREFIX}"
einfo " To start LimeWire, run:"
einfo " $ limewire"
}
|