summaryrefslogtreecommitdiff
path: root/net-p2p/wuala/wuala-0_pre20120716.ebuild
blob: 3e8f367462f2630a918e2a516f9b623ec702d481 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

DESCRIPTION="Wuala, your free online hard-disk"
HOMEPAGE="http://wuala.com/"
SRC_URI="http://cdn.wuala.com/repo/other/wuala.tar.gz"

LICENSE="wuala"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND="sys-fs/fuse
	>=virtual/jre-1.5.0"

S="${WORKDIR}/${PN}"

src_prepare() {
	sed -i wuala -e 's|loader3\.jar|/opt/wuala/loader3.jar|'
	sed -i wualacmd -e 's|\./wuala|/opt/bin/wuala|'
}

src_install() {
	dodir "/opt/${PN}"

	insinto "/opt/${PN}"
	doins loader3.jar

	exeinto "/opt/${PN}"
	doexe wuala wualacmd
	dosym "/opt/${PN}/wuala" "/opt/bin/wuala"
	dosym "/opt/${PN}/wualacmd" "/opt/bin/wualacmd"

	dodoc readme.txt
}