blob: f49a278c7f1e1ae026e9e516c7e982a6c164d09e (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=6
inherit eutils multilib
DESCRIPTION="The official QT-Based mega.co.nz client for sync your MEGA account"
HOMEPAGE="http://mega.co.nz"
URL_64="https://mega.nz/linux/MEGAsync/xUbuntu_${PV}/amd64/${PN}-xUbuntu_${PV}_amd64.deb"
URL_32="https://mega.nz/linux/MEGAsync/xUbuntu_${PV}/i386/${PN}-xUbuntu_${PV}_i386.deb"
SRC_URI="
amd64? ( ${URL_64} )
x86? ( ${URL_32} )
"
LICENSE="TheClarifiedArtisticLicense"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="mirror"
IUSE="libressl"
DEPEND="
sys-devel/binutils
app-arch/tar
"
RDEPEND="
dev-qt/qtdbus:4
libressl? ( dev-libs/libressl )
!libressl? ( dev-libs/openssl )
media-libs/libpng
net-dns/c-ares"
S="${WORKDIR}"
src_unpack() {
unpack $A
unpack ./data.tar.xz
cd ./usr
}
src_install() {
exeinto /usr/bin
doexe usr/bin/megasync
domenu usr/share/applications/megasync.desktop
doicon -s 16 usr/share/icons/hicolor/16x16/apps/mega.png
doicon -s 32 usr/share/icons/hicolor/32x32/apps/mega.png
doicon -s 48 usr/share/icons/hicolor/48x48/apps/mega.png
doicon -s 128 usr/share/icons/hicolor/128x128/apps/mega.png
doicon -s 256 usr/share/icons/hicolor/256x256/apps/mega.png
# Unfortunately the damn thing wants openssl so-names,
# although it works fine with libressl
if use libressl; then
dosym "libcrypto.so" "${EPREFIX}usr/$(get_libdir)/libcrypto.so.1.0.0"
dosym "libssl.so" "${EPREFIX}usr/$(get_libdir)/libssl.so.1.0.0"
fi
}
|