blob: 6dfe7c74feff629b37dea6ea0d6d32ced299223f (
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
72
73
74
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/limewire/limewire-4.12.6-r1.ebuild,v 1.5 2007/06/11 17:03:43 betelgeuse Exp $
inherit eutils java-pkg-2
IUSE="gtk"
DESCRIPTION="Limewire Java Gnutella client"
HOMEPAGE="http://www.limewire.com"
SRC_URI="http://maverick.limewire.com/download/LimeWireOther.zip"
LICENSE="GPL-2 Apache-2.0"
SLOT="0"
KEYWORDS="amd64 x86"
COMMON_DEP="
dev-java/commons-logging
dev-java/commons-net
dev-java/icu4j
dev-java/log4j
=dev-java/xerces-1.3*
dev-java/xml-commons-external
gtk? ( >=x11-libs/gtk+-2.4 )"
DEPEND="app-arch/unzip
${COMMON_DEP}"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEP}"
S="${WORKDIR}/LimeWire"
PREFIX="/opt/limewire"
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
sed -i -e 's:icu4j.jar=2EA7BE7FE723AE4A7BB99850238CE7DE::' \
-e 's:xerces.jar=F192FC03C1DFEB0C20A26EDF1D5E04DF::' \
"${S}/hashes" || die "Could not modify hashes file"
}
src_install() {
insinto ${PREFIX}
doins *.jar *.war *.properties *.ver hashes *.sh *.txt
# Replace bundled jars, don't replace commons-httpclient!
cd "${D}/opt/limewire"
java-pkg_jar-from commons-logging commons-logging.jar
java-pkg_jar-from commons-net commons-net.jar
java-pkg_jar-from icu4j icu4j.jar
java-pkg_jar-from log4j log4j.jar
java-pkg_jar-from xerces-1.3 xerces.jar
java-pkg_jar-from xml-commons-external-1.3 xml-apis.jar
cd "${S}"
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
}
pkg_postinst() {
use gtk || ewarn "You will probably not be able to use the gtk frontend."
einfo " Finished installing LimeWire into ${PREFIX}"
}
|