blob: 6a92f659949b67d3cd8a5ee36412b2e1a23b3a2b (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/dropbox/dropbox-2.4.8-r1.ebuild,v 1.2 2014/03/09 17:46:56 vapier Exp $
EAPI=5
inherit eutils gnome2-utils pax-utils systemd
DESCRIPTION="Dropbox daemon (pretends to be GUI-less)"
HOMEPAGE="http://dropbox.com/"
SRC_URI="
x86? ( http://dl-web.dropbox.com/u/17/dropbox-lnx.x86-${PV}.tar.gz )
amd64? ( http://dl-web.dropbox.com/u/17/dropbox-lnx.x86_64-${PV}.tar.gz )"
LICENSE="CC-BY-ND-3.0 FTL MIT LGPL-2 openssl dropbox"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~x86-linux"
IUSE="+librsync-bundled X"
RESTRICT="mirror strip"
QA_PREBUILT="opt/.*"
QA_EXECSTACK="opt/dropbox/dropbox"
DEPEND="librsync-bundled? ( dev-util/patchelf )"
# Be sure to have GLIBCXX_3.4.9, #393125
# USE=X require wxGTK's dependencies. system-library cannot be used due to
# missing symbol (CtlColorEvent). #443686
RDEPEND="
X? (
dev-libs/glib:2
media-libs/libpng:1.2
sys-libs/zlib
virtual/jpeg
x11-libs/gtk+:2
x11-libs/libSM
x11-libs/libXinerama
x11-libs/libXxf86vm
x11-libs/pango[X]
x11-themes/hicolor-icon-theme
)
>=app-arch/bzip2-1.0.6-r1
dev-libs/popt
!librsync-bundled? ( net-libs/librsync )
net-misc/wget
>=sys-devel/gcc-4.2.0
sys-libs/zlib
"
src_unpack() {
unpack ${A}
mkdir -p "${S}"
mv "${WORKDIR}"/.dropbox-dist/* "${S}" || die
rmdir .dropbox-dist
}
src_prepare() {
rm -vf libbz2* libpopt.so.0 libpng12.so.0 || die
if use X ; then
mv images/hicolor/16x16/status "${T}" || die
else
rm -vrf *wx* images || die
fi
if use librsync-bundled ; then
patchelf --set-rpath '$ORIGIN' _librsync.so || die
else
rm -vf librsync.so.1 || die
fi
mv cffi-0.6-py2.7-*.egg "${T}" || die
rm -rf *.egg library.zip || die
mv "${T}"/cffi-0.6-py2.7-*.egg "${S}" || die
ln -s dropbox library.zip || die
pax-mark cm dropbox
mv README ACKNOWLEDGEMENTS "${T}" || die
}
src_install() {
local targetdir="/opt/dropbox"
insinto "${targetdir}"
doins -r *
fperms a+x "${targetdir}"/{dropbox,dropboxd}
dosym "${targetdir}/dropboxd" "/opt/bin/dropbox"
use X && doicon -s 16 -c status "${T}"/status
newinitd "${FILESDIR}"/dropbox.initd dropbox
newconfd "${FILESDIR}"/dropbox.conf dropbox
systemd_newunit "${FILESDIR}"/dropbox_at.service "dropbox@.service"
dodoc "${T}"/{README,ACKNOWLEDGEMENTS}
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
|