blob: 2579f5d3c35ff24cc311f46e922c68485cd06d20 (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/xnap/xnap-2.5-r1.ebuild,v 1.1 2004/02/14 20:53:15 zx Exp $
DESCRIPTION="A P2P framework and client"
HOMEPAGE="http://xnap.sf.net"
SRC_URI="mirror://sourceforge/xnap/${P}.jar"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~alpha"
IUSE=""
RDEPEND=">=virtual/jre-1.3"
S=${WORKDIR}
src_unpack() {
cp ${DISTDIR}/${A} ${WORKDIR}/
}
src_install() {
insinto /opt/${PN}/lib
doins ${P}.jar
echo "#!/bin/sh" > ${PN}
echo "cd /opt/${PN}" >> ${PN}
echo '${JAVA_HOME}'/bin/java -jar lib/${P}.jar '$*' >> ${PN}
into /opt
dobin ${PN}
}
|