blob: 6073c45f5f0f366eb9f36dce2cb00c4af136084d (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/myster/myster-8.0.ebuild,v 1.1 2004/06/29 09:06:40 squinky86 Exp $
inherit java-pkg
MY_PV=${PV/.0/}
DESCRIPTION="Myster is a decentralized file sharing network"
HOMEPAGE="http://www.mysternetworks.com/"
SRC_URI="mirror://sourceforge/myster/Myster_PR${MY_PV}_Generic.zip"
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=virtual/jdk-1.4"
RDEPEND=">=virtual/jre-1.4"
src_unpack() {
unpack ${A}
cd ${WORKDIR}
mv "Myster PR ${MY_PV} Generic" ${P}
cd ${S}
}
src_compile () {
echo "java -jar /opt/myster/Myster.jar" >> myster
chmod -R go-w ${S}
chmod +x myster
einfo "Nothing to Compile, this is a binary package"
}
src_install () {
dodir /opt/myster
mv ${S}/* ${D}/opt/myster
dodir /opt/myster/bin
mv ${D}/opt/myster/myster ${D}/opt/myster/bin/
dodir /etc/env.d
echo "HOME=/opt/myster" >> ${D}/etc/env.d/50myster
echo "PATH=/opt/myster/bin" >> ${D}/etc/env.d/50myster
}
|