commit:     0fc35d1226f9d87c0ce02d89617610a3478c5095
Author:     Lucas Ivan Benchat Parra <libenchat <AT> hotmail <DOT> com>
AuthorDate: Sun Nov 16 03:19:10 2025 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sun Nov 16 18:14:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=0fc35d12

net-misc/onedrive: add 2.5.9

Signed-off-by: Lucas Ivan Benchat Parra <libenchat <AT> hotmail.com>
Part-of: https://github.com/gentoo/dlang/pull/143
Closes: https://github.com/gentoo/dlang/pull/143
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>

 net-misc/onedrive/Manifest              |  1 +
 net-misc/onedrive/onedrive-2.5.9.ebuild | 88 +++++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+)

diff --git a/net-misc/onedrive/Manifest b/net-misc/onedrive/Manifest
index e9b6d64..83f3152 100644
--- a/net-misc/onedrive/Manifest
+++ b/net-misc/onedrive/Manifest
@@ -1,2 +1,3 @@
 DIST onedrive-2.5.6.tar.gz 4284403 BLAKE2B 
0c9e9ddca88ec3766bb7c575f594d99a7565da49c26e4f0b740efb19896fa718100b866a2fbc148c284b498e833d892fd1ae5517abf7f682d3c1595153a31a57
 SHA512 
0d67318978b08057bb2dab28bd66914bed4fcc6b967c5c833c381af09a03b9de340369cb5c5117a8c3c6795347a96ed661e0c14cb4e112fcf73a3318fb3c713e
 DIST onedrive-2.5.7.tar.gz 8269826 BLAKE2B 
5ea04cb4c42fe53efc660121d8c8d477bcf00e9786a131e781a4c3679810fb55dbe02557cb4feff287210c6bf10d241303de0e1e57418d8048faced8fa1efd99
 SHA512 
b08d54df9505690cb62aba43afa1f23bb31fa2dff5301446dfacbc3025c9ac0d459e5008d3b32942dd0468f1a264a220c9096ba0fec46462ce73aedf89b082d2
+DIST onedrive-2.5.9.tar.gz 10150105 BLAKE2B 
9b997ea4978e609126666248ffe9785114f429ac57487617c0f958a86cdce906a0e4116cfdea4f0d0425d648fba8fd626ccfb4fe1aa6851141bf8c5084401032
 SHA512 
54c173ec1e324b5b1f3e630ddd9395c7a7e23b11cccb9be842a145f14b59253fdab74f2898e96c4ad6bb4f286b001bec92c7b0bcc781e5698c580d0458cdc78b

diff --git a/net-misc/onedrive/onedrive-2.5.9.ebuild 
b/net-misc/onedrive/onedrive-2.5.9.ebuild
new file mode 100644
index 0000000..892b541
--- /dev/null
+++ b/net-misc/onedrive/onedrive-2.5.9.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DLANG_COMPAT=( dmd-2_{107..111} gdc-15 ldc2-1_{36..40} )
+inherit dlang-single optfeature prefix shell-completion systemd xdg-utils
+
+DESCRIPTION="Free Client for OneDrive on Linux"
+HOMEPAGE="https://abraunegg.github.io/";
+SRC_URI="https://codeload.github.com/abraunegg/onedrive/tar.gz/v${PV} -> 
${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+# no straight forward way to run unittests. Probably need to do 
DFLAGS=-unittest econf
+IUSE="libnotify"
+RESTRICT="test"
+
+REQUIRED_USE=${DLANG_REQUIRED_USE}
+RDEPEND="
+       ${DLANG_DEPS}
+       >=dev-db/sqlite-3.7.15:3
+       net-misc/curl
+       sys-apps/dbus
+       libnotify? ( x11-libs/libnotify )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       ${DLANG_DEPS}
+       virtual/pkgconfig
+"
+
+src_prepare() {
+       hprefixify contrib/init.d/onedrive.init
+       # Add EPREFIX to the system config path (/etc)
+       hprefixify -w '/string systemConfigDirBase/' src/config.d
+       default
+}
+
+src_configure() {
+       myeconfargs=(
+               $(use_enable libnotify notifications)
+               --with-bash-completion-dir="$(get_bashcompdir)"
+               --with-zsh-completion-dir="$(get_zshcompdir)"
+               --with-fish-completion-dir="$(get_fishcompdir)"
+               --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
+               --with-systemduserunitdir="$(systemd_get_userunitdir)"
+               --enable-completions
+               --disable-version-check
+               # Adds -g and -debug. There are only a few instructions guarded 
by debug
+               --disable-debug
+       )
+       DCFLAGS="${DCFLAGS} ${DLANG_LDFLAGS}" econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       emake DESTDIR="${D}" docdir="${EPREFIX}"/usr/share/doc/${PF} install
+       # log directory
+       keepdir /var/log/onedrive
+       fperms 775 /var/log/onedrive
+       fowners root:users /var/log/onedrive
+       # init script
+       dobin contrib/init.d/onedrive_service.sh
+       newinitd contrib/init.d/onedrive.init onedrive
+}
+
+pkg_postinst() {
+       xdg_icon_cache_update
+       elog "OneDrive Free Client needs to be authorized to access your data 
before the"
+       elog "first use. To do so, run onedrive in a terminal for the user in 
question and"
+       elog "follow the steps on screen."
+
+       local old_ver minor_part="$(ver_cut 1-2)"
+       for old_ver in ${REPLACING_VERSIONS}; do
+               if ver_test "${old_ver}" -lt "${minor_part}"; then
+                       ewarn "You are performing an upgrade that is not 
backwards-compatible"
+                       ewarn "and you need to upgrade to ${PN}-${minor_part} 
on all your devices."
+                       ewarn "Please read: 
https://github.com/abraunegg/onedrive/releases/tag/v${PV}";
+                       break
+               fi
+       done
+       optfeature "Single Sign-On via Intune" sys-apps/intune-portal
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+}

Reply via email to