1 |
commit: f077123201dc708a95b2a59b336083491bcb5777 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 15 20:43:43 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 19 23:51:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0771232 |
7 |
|
8 |
net-misc/dropbox: Prepare for dev-qt/qtgui[xcb -> X] |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
net-misc/dropbox/dropbox-89.3.268-r1.ebuild | 109 ++++++++++++++++++++++++++++ |
14 |
1 file changed, 109 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/dropbox/dropbox-89.3.268-r1.ebuild b/net-misc/dropbox/dropbox-89.3.268-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..c62cee3a6ea |
19 |
--- /dev/null |
20 |
+++ b/net-misc/dropbox/dropbox-89.3.268-r1.ebuild |
21 |
@@ -0,0 +1,109 @@ |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit desktop pax-utils systemd xdg |
28 |
+ |
29 |
+DESCRIPTION="Dropbox daemon (pretends to be GUI-less)" |
30 |
+HOMEPAGE="https://www.dropbox.com/" |
31 |
+SRC_URI=" |
32 |
+ amd64? ( https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-${PV}.tar.gz ) |
33 |
+ x86? ( https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86-${PV}.tar.gz )" |
34 |
+ |
35 |
+LICENSE="BSD-2 CC-BY-ND-3.0 FTL MIT LGPL-2 openssl dropbox" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="amd64 x86 ~x86-linux" |
38 |
+IUSE="+librsync-bundled selinux X" |
39 |
+ |
40 |
+RESTRICT="mirror strip" |
41 |
+ |
42 |
+QA_PREBUILT="opt/.*" |
43 |
+QA_EXECSTACK="opt/dropbox/dropbox" |
44 |
+ |
45 |
+DEPEND="librsync-bundled? ( dev-util/patchelf )" |
46 |
+ |
47 |
+# Be sure to have GLIBCXX_3.4.9, #393125 |
48 |
+RDEPEND=" |
49 |
+ X? ( |
50 |
+ dev-libs/glib:2 |
51 |
+ dev-qt/qtcore:5 |
52 |
+ dev-qt/qtdbus:5 |
53 |
+ dev-qt/qtdeclarative:5 |
54 |
+ || ( |
55 |
+ dev-qt/qtgui:5[-gles2,X(-)] |
56 |
+ dev-qt/qtgui:5[-gles2,xcb(-)] |
57 |
+ ) |
58 |
+ dev-qt/qtopengl:5[-gles2] |
59 |
+ dev-qt/qtnetwork:5 |
60 |
+ dev-qt/qtprintsupport:5[-gles2] |
61 |
+ dev-qt/qtwebkit:5 |
62 |
+ dev-qt/qtwidgets:5[-gles2] |
63 |
+ media-libs/fontconfig |
64 |
+ media-libs/freetype |
65 |
+ virtual/jpeg |
66 |
+ x11-libs/libSM |
67 |
+ x11-libs/libX11 |
68 |
+ x11-libs/libXinerama |
69 |
+ x11-libs/libXxf86vm |
70 |
+ x11-libs/pango[X] |
71 |
+ x11-misc/wmctrl |
72 |
+ x11-themes/hicolor-icon-theme |
73 |
+ ) |
74 |
+ !librsync-bundled? ( <net-libs/librsync-2 ) |
75 |
+ selinux? ( sec-policy/selinux-dropbox ) |
76 |
+ app-arch/bzip2 |
77 |
+ dev-libs/libffi-compat:6 |
78 |
+ dev-libs/popt |
79 |
+ net-misc/wget |
80 |
+ >=sys-devel/gcc-4.2.0 |
81 |
+ sys-libs/zlib |
82 |
+ sys-libs/ncurses-compat:5" |
83 |
+ |
84 |
+src_unpack() { |
85 |
+ unpack ${A} |
86 |
+ mkdir -p "${S}" || die |
87 |
+ mv "${WORKDIR}"/.dropbox-dist/* "${S}" || die |
88 |
+ mv "${S}"/dropbox-lnx.*-${PV}/* "${S}" || die |
89 |
+ rmdir "${S}"/dropbox-lnx.*-${PV}/ || die |
90 |
+ rmdir .dropbox-dist || die |
91 |
+} |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ default |
95 |
+ |
96 |
+ rm -vf libGL.so.1 libX11* libdrm.so.2 libffi.so.6 libpopt.so.0 wmctrl || die |
97 |
+ # tray icon doesnt load when removing libQt5* (bug 641416) |
98 |
+ #rm -vrf libQt5* libicu* qt.conf plugins/ || die |
99 |
+ if use X ; then |
100 |
+ mv images/hicolor/16x16/status "${T}" || die |
101 |
+ else |
102 |
+ rm -vrf PyQt5* *pyqt5* images || die |
103 |
+ fi |
104 |
+ if use librsync-bundled ; then |
105 |
+ patchelf --set-rpath '$ORIGIN' librsyncffi_native.*.so || die |
106 |
+ else |
107 |
+ rm -vf librsync.so.1 || die |
108 |
+ fi |
109 |
+ pax-mark cm dropbox |
110 |
+ mv README ACKNOWLEDGEMENTS "${T}" || die |
111 |
+} |
112 |
+ |
113 |
+src_install() { |
114 |
+ local targetdir="/opt/dropbox" |
115 |
+ |
116 |
+ insinto "${targetdir}" |
117 |
+ doins -r * |
118 |
+ fperms a+x "${targetdir}"/{dropbox,dropboxd} |
119 |
+ dosym "${targetdir}/dropboxd" "/opt/bin/dropbox" |
120 |
+ |
121 |
+ use X && doicon -s 16 -c status "${T}"/status |
122 |
+ |
123 |
+ make_desktop_entry "${PN}" "Dropbox" "dropboxstatus-logo" |
124 |
+ |
125 |
+ newinitd "${FILESDIR}"/dropbox.initd dropbox |
126 |
+ newconfd "${FILESDIR}"/dropbox.conf dropbox |
127 |
+ systemd_newunit "${FILESDIR}"/dropbox_at.service-r2 "dropbox@.service" |
128 |
+ |
129 |
+ dodoc "${T}"/{README,ACKNOWLEDGEMENTS} |
130 |
+} |