Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/dropbox/
Date: Mon, 15 Oct 2018 17:36:13
Message-Id: 1539624952.dd50bef5b76ce24fe585e65170bd448e07dcc682.bkohler@gentoo
1 commit: dd50bef5b76ce24fe585e65170bd448e07dcc682
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 15 17:35:28 2018 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 15 17:35:52 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd50bef5
7
8 net-misc/dropbox: revbump to keep bundled libffi.so.6
9
10 Until we package a compat libffi in slot 6 to supply libffi.so.6 for
11 prebuild binary packages like this one,we need to keep the bundled copy.
12
13 Change approved by perfinion.
14
15 Closes: https://bugs.gentoo.org/668266
16 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
17 Package-Manager: Portage-2.3.51, Repoman-2.3.11
18
19 net-misc/dropbox/dropbox-58.3.88-r1.ebuild | 121 +++++++++++++++++++++++++++++
20 1 file changed, 121 insertions(+)
21
22 diff --git a/net-misc/dropbox/dropbox-58.3.88-r1.ebuild b/net-misc/dropbox/dropbox-58.3.88-r1.ebuild
23 new file mode 100644
24 index 00000000000..57625334abc
25 --- /dev/null
26 +++ b/net-misc/dropbox/dropbox-58.3.88-r1.ebuild
27 @@ -0,0 +1,121 @@
28 +# Copyright 1999-2018 Gentoo Authors
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=6
32 +
33 +PYTHON_COMPAT=( python2_7 python3_5 python3_6 )
34 +inherit eutils gnome2-utils pax-utils systemd python-single-r1
35 +
36 +DESCRIPTION="Dropbox daemon (pretends to be GUI-less)"
37 +HOMEPAGE="https://www.dropbox.com/"
38 +SRC_URI="
39 + x86? ( https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86-${PV}.tar.gz )
40 + amd64? ( https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-${PV}.tar.gz )"
41 +
42 +LICENSE="CC-BY-ND-3.0 FTL MIT LGPL-2 openssl dropbox"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86 ~x86-linux"
45 +IUSE="+librsync-bundled selinux X"
46 +RESTRICT="mirror strip"
47 +
48 +QA_PREBUILT="opt/.*"
49 +QA_EXECSTACK="opt/dropbox/dropbox"
50 +
51 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
52 +
53 +DEPEND="librsync-bundled? ( dev-util/patchelf )"
54 +
55 +# Be sure to have GLIBCXX_3.4.9, #393125
56 +# USE=X require wxGTK's dependencies. system-library cannot be used due to
57 +# missing symbol (CtlColorEvent). #443686
58 +RDEPEND="${PYTHON_DEPS}
59 + X? (
60 + dev-libs/glib:2
61 + dev-qt/qtcore:5
62 + dev-qt/qtdbus:5
63 + dev-qt/qtdeclarative:5
64 + dev-qt/qtgui:5[-gles2,xcb]
65 + dev-qt/qtopengl:5[-gles2]
66 + dev-qt/qtnetwork:5
67 + dev-qt/qtprintsupport:5[-gles2]
68 + dev-qt/qtwebkit:5
69 + dev-qt/qtwidgets:5[-gles2]
70 + media-libs/fontconfig
71 + media-libs/freetype
72 + virtual/jpeg
73 + x11-libs/libSM
74 + x11-libs/libX11
75 + x11-libs/libXinerama
76 + x11-libs/libXxf86vm
77 + x11-libs/pango[X]
78 + x11-misc/wmctrl
79 + x11-themes/hicolor-icon-theme
80 + )
81 + !librsync-bundled? ( <net-libs/librsync-2 )
82 + selinux? ( sec-policy/selinux-dropbox )
83 + app-arch/bzip2
84 + dev-libs/popt
85 + net-misc/wget
86 + >=sys-devel/gcc-4.2.0
87 + sys-libs/zlib
88 + sys-libs/ncurses:5/5"
89 +
90 +src_unpack() {
91 + unpack ${A}
92 + mkdir -p "${S}" || die
93 + mv "${WORKDIR}"/.dropbox-dist/* "${S}" || die
94 + mv "${S}"/dropbox-lnx.*-${PV}/* "${S}" || die
95 + rmdir "${S}"/dropbox-lnx.*-${PV}/ || die
96 + rmdir .dropbox-dist || die
97 +}
98 +
99 +src_prepare() {
100 + eapply_user
101 +
102 + rm -vf libGL.so.1 libX11* libdrm.so.2 libpopt.so.0 wmctrl || die
103 + # tray icon doesnt load when removing libQt5* (bug 641416)
104 + #rm -vrf libQt5* libicu* qt.conf plugins/ || die
105 + if use X ; then
106 + mv images/hicolor/16x16/status "${T}" || die
107 + else
108 + rm -vrf PyQt5* *pyqt5* images || die
109 + fi
110 + if use librsync-bundled ; then
111 + patchelf --set-rpath '$ORIGIN' librsyncffi.compiled._librsyncffi*.so || die
112 + else
113 + rm -vf librsync.so.1 || die
114 + fi
115 + pax-mark cm dropbox
116 + mv README ACKNOWLEDGEMENTS "${T}" || die
117 +}
118 +
119 +src_install() {
120 + local targetdir="/opt/dropbox"
121 +
122 + insinto "${targetdir}"
123 + doins -r *
124 + fperms a+x "${targetdir}"/{dropbox,dropboxd}
125 + dosym "${targetdir}/dropboxd" "/opt/bin/dropbox"
126 +
127 + use X && doicon -s 16 -c status "${T}"/status
128 +
129 + make_desktop_entry "${PN}" "Dropbox"
130 +
131 + newinitd "${FILESDIR}"/dropbox.initd dropbox
132 + newconfd "${FILESDIR}"/dropbox.conf dropbox
133 + systemd_newunit "${FILESDIR}"/dropbox_at.service-r1 "dropbox@.service"
134 +
135 + dodoc "${T}"/{README,ACKNOWLEDGEMENTS}
136 +}
137 +
138 +pkg_preinst() {
139 + gnome2_icon_savelist
140 +}
141 +
142 +pkg_postinst() {
143 + gnome2_icon_cache_update
144 +}
145 +
146 +pkg_postrm() {
147 + gnome2_icon_cache_update
148 +}