commit:     72997270fa1bd44c37d7d21984f5f15ec183d4e0
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 12 18:10:44 2025 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Thu Jun 12 18:33:19 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72997270

net-misc/dropbox: add 226.4.5094

Also adjust libffi-compat dep & add new symlinks for libappindicator

Bug: https://bugs.gentoo.org/955139
Closes: https://bugs.gentoo.org/955899
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 net-misc/dropbox/Manifest                  |   1 +
 net-misc/dropbox/dropbox-226.4.5094.ebuild | 113 +++++++++++++++++++++++++++++
 2 files changed, 114 insertions(+)

diff --git a/net-misc/dropbox/Manifest b/net-misc/dropbox/Manifest
index 69b58907fa20..1028f471e712 100644
--- a/net-misc/dropbox/Manifest
+++ b/net-misc/dropbox/Manifest
@@ -3,3 +3,4 @@ DIST dropbox-lnx.x86_64-221.4.5365.tar.gz 111941868 BLAKE2B 
0828b43dba443d0f4cb1
 DIST dropbox-lnx.x86_64-223.4.4909.tar.gz 112292043 BLAKE2B 
2f9ab179f2900c6fac1e3ef496ffc2527461b8c5caf5a9a170eae6524e20f02539988ead70a199f0e767e8bc57dc1e00e557dba33efad3d2012f4c5f5918d1ba
 SHA512 
990cece1725b698ac6cc7dcdeb1871715ae1cfad93f9891cd45debc2824905c79fca4dc511ebe0a631ca3abb9e594556edce8f094e071689438bc9c27e45351d
 DIST dropbox-lnx.x86_64-224.4.4811.tar.gz 111786132 BLAKE2B 
5184833a41252f1dbb57c2e3dd016f884c936ed441ca1a395044d1cfa9474e4611711481fdf996e89a68f501d911921dcc397b72f022cfcda24e8c3c53584847
 SHA512 
ab266d8b23078484eeb4279aad41de1fffe5d262473f7f8dfe0904e7e6d62209188ec56ccb52d9b4b3046e31c408cd60acb5dc065c90dd1b05901b90b15393b0
 DIST dropbox-lnx.x86_64-225.4.4896.tar.gz 111642047 BLAKE2B 
739c1a37df24f314af75ed4959b8745056180e7cfb7ac57c554faadad66183e4f8285b1c8f3cb5fdc6bc26ae8f19d3e0ac00edea53bb6ce4b25dc7ff1b5740f5
 SHA512 
446a870f1a47fe88340cd635e41244970a7341f7ca13e9907a13b98c89b890fb570d7250b77d1d101b7eb7d5fc8f681e673f58c7f03681e9d31e07657dc98168
+DIST dropbox-lnx.x86_64-226.4.5094.tar.gz 111447288 BLAKE2B 
d9873723ae23a1eedc3a200d1f1288cc00a1103cb051800c1aa3214b7fd4f71747d84637aa6c6fcbe78b402e2811d88852c4c87bce013bed529c66073330e63f
 SHA512 
71fd7d19f915bcfb6f760d4eee4e6ccabfbbcf23159dceeac99fde69d97818df625354972c69e6a5910f92a98f9f46ca382d3580f4d589e8fe25a53c5acd48b6

diff --git a/net-misc/dropbox/dropbox-226.4.5094.ebuild 
b/net-misc/dropbox/dropbox-226.4.5094.ebuild
new file mode 100644
index 000000000000..f1223e0f4d96
--- /dev/null
+++ b/net-misc/dropbox/dropbox-226.4.5094.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop pax-utils systemd xdg
+
+DESCRIPTION="Dropbox daemon (pretends to be GUI-less)"
+HOMEPAGE="https://www.dropbox.com/";
+SRC_URI="
+       
https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-${PV}.tar.gz
+       
https://uxwing.com/wp-content/themes/uxwing/download/brands-and-social-media/dropbox-icon.svg
+"
+
+LICENSE="BSD-2 CC-BY-ND-3.0 FTL MIT LGPL-2 openssl dropbox"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+IUSE="selinux X"
+
+RESTRICT="mirror strip"
+
+QA_PREBUILT="opt/.*"
+QA_EXECSTACK="opt/dropbox/dropbox"
+
+BDEPEND="dev-util/patchelf"
+
+# Be sure to have GLIBCXX_3.4.9, #393125
+RDEPEND="
+       X? (
+               x11-themes/hicolor-icon-theme
+       )
+       selinux? ( sec-policy/selinux-dropbox )
+       app-arch/bzip2
+       dev-libs/glib:2
+       dev-libs/libayatana-indicator
+       dev-libs/libffi-compat:7
+       media-libs/fontconfig
+       media-libs/freetype
+       net-misc/wget
+       sys-libs/zlib
+       sys-libs/ncurses-compat:5
+       virtual/opengl
+       x11-libs/libICE
+       x11-libs/libSM
+       x11-libs/libX11
+       x11-libs/libXext
+       x11-libs/libXrender
+       x11-libs/libxcb
+"
+
+src_unpack() {
+       unpack ${A}
+       mkdir -p "${S}" || die
+       mv "${WORKDIR}"/.dropbox-dist/* "${S}" || die
+       mv "${S}"/dropbox-lnx.*-${PV}/* "${S}" || die
+       rmdir "${S}"/dropbox-lnx.*-${PV}/ || die
+       rmdir .dropbox-dist || die
+}
+
+src_prepare() {
+       default
+       # we supply all of these in RDEPEND
+       rm -vf libGL.so.1 libX11* libffi.so.7 || die
+       # some of these do not appear to be used
+       rm -vf 
libQt5{OpenGL,PrintSupport,Qml,Quick,Sql,WebKit,WebKitWidgets}.so.5 \
+               PyQt5.QtPrintSupport.* PyQt5.QtQml.* PyQt5.QtQuick.*  \
+               wmctrl libdrm.so.2 libpopt.so.0 || die
+       if use X ; then
+               mv images/hicolor/16x16/status "${T}" || die
+       else
+               rm -vrf images || die
+       fi
+       patchelf --set-rpath '$ORIGIN' \
+               apex._apex.*.so \
+               nucleus_python.*.so \
+               tprt.*.so \
+               || 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"
+       # symlinks for bug 955139
+       dosym ../../usr/$(get_libdir)/libayatana-appindicator3.so.1 
${targetdir}/libappindicator3.so.1
+       dosym libappindicator3.so.1 ${targetdir}/libappindicator3.so
+
+       if use X; then
+               doicon -s 16 -c status "${T}"/status
+               newicon -s scalable "${DISTDIR}/dropbox-icon.svg" dropbox.svg
+       fi
+
+       make_desktop_entry "${PN}" "Dropbox" "dropbox"
+
+       newinitd "${FILESDIR}"/dropbox.initd dropbox
+       newconfd "${FILESDIR}"/dropbox.conf dropbox
+       systemd_newunit "${FILESDIR}"/dropbox_at.service-r2 "dropbox@.service"
+
+       dodoc "${T}"/{README,ACKNOWLEDGEMENTS}
+}
+
+pkg_postinst() {
+       einfo "Warning: while running, dropbox may attempt to autoupdate itself 
in"
+       einfo " your user's home directory.  To prevent this, run the following 
as"
+       einfo " each user who will run dropbox:"
+       einfo ""
+       einfo "install -dm0 ~/.dropbox-dist"
+}

Reply via email to