commit:     c7d9e459f605491d5f790ad0da796799ca2ee920
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 25 12:58:42 2025 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Wed Jun 25 12:59:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7d9e459

net-misc/dropbox: add 227.4.4774

Also add missing icon cache update for bug 955491

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

 net-misc/dropbox/Manifest                  |   1 +
 net-misc/dropbox/dropbox-227.4.4774.ebuild | 130 +++++++++++++++++++++++++++++
 2 files changed, 131 insertions(+)

diff --git a/net-misc/dropbox/Manifest b/net-misc/dropbox/Manifest
index 1028f471e712..ee5b90be148a 100644
--- a/net-misc/dropbox/Manifest
+++ b/net-misc/dropbox/Manifest
@@ -4,3 +4,4 @@ DIST dropbox-lnx.x86_64-223.4.4909.tar.gz 112292043 BLAKE2B 
2f9ab179f2900c6fac1e
 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
+DIST dropbox-lnx.x86_64-227.4.4774.tar.gz 110725691 BLAKE2B 
ece59056b5a8103f6761a378840459642c5fb4ad3e1c75b53c76fd5ca091974552c37b6d009ae7dc03ac3babd400504335d6da0e02187946ac05eaf17cdd8ab4
 SHA512 
0574bcd2189d7de2350b1409a0b99e2df42b009b5df48c84c442626849d90d86a1a652ada9e119cd0a741950e74e8781a94a69b25af8fc48db2c1b40f4ba111d

diff --git a/net-misc/dropbox/dropbox-227.4.4774.ebuild 
b/net-misc/dropbox/dropbox-227.4.4774.ebuild
new file mode 100644
index 000000000000..270b7f77a1ad
--- /dev/null
+++ b/net-misc/dropbox/dropbox-227.4.4774.ebuild
@@ -0,0 +1,130 @@
+# 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-appindicator
+       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 "[email protected]"
+
+       dodoc "${T}"/{README,ACKNOWLEDGEMENTS}
+}
+
+pkg_postinst() {
+       xdg_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"
+       einfo ""
+       einfo "If you do allow dropbox to update/install to your user homedir, 
you"
+       einfo " will need to create some compat symlinks to keep the tray icon 
working:"
+       einfo ""
+       einfo "ln -sf /usr/$(get_libdir)/libayatana-appindicator3.so.1 
~/.dropbox-dist/libappindicator3.so.1"
+       einfo "ln -sf libappindicator3.so.1 ~/.dropbox-dist/libappindicator3.so"
+
+       if has_version gnome-base/gnome-shell; then
+               if ! has_version 
gnome-extra/gnome-shell-extension-appindicator; then
+                       einfo ""
+                       einfo "Please install 
gnome-extra/gnome-shell-extension-appindicator if you"
+                       einfo " require tray icon support for Dropbox in Gnome."
+               fi
+       fi
+
+}

Reply via email to