From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3B5D51582EF for ; Sat, 08 Mar 2025 17:14:30 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 1A2F0342FFB for ; Sat, 08 Mar 2025 17:14:30 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 067E011027C; Sat, 08 Mar 2025 17:14:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id F1CA111027C for ; Sat, 08 Mar 2025 17:14:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 956F134092E for ; Sat, 08 Mar 2025 17:14:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 00D2C263B for ; Sat, 08 Mar 2025 17:14:27 +0000 (UTC) From: "Horodniceanu Andrei" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Horodniceanu Andrei" Message-ID: <1741453780.fe2c1c7ba4f4d2e51c3c202adf9d5b89dfa48d6d.a.horodniceanu@gentoo> Subject: [gentoo-commits] repo/user/dlang:master commit in: net-misc/onedrive/ X-VCS-Repository: repo/user/dlang X-VCS-Files: net-misc/onedrive/Manifest net-misc/onedrive/onedrive-2.5.4.ebuild X-VCS-Directories: net-misc/onedrive/ X-VCS-Committer: a.horodniceanu X-VCS-Committer-Name: Horodniceanu Andrei X-VCS-Revision: fe2c1c7ba4f4d2e51c3c202adf9d5b89dfa48d6d X-VCS-Branch: master Date: Sat, 08 Mar 2025 17:14:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 37a233b8-cdd5-4cbf-b852-2fdb012d6242 X-Archives-Hash: ac2be9651cabfbf972535590b4ebc1f6 commit: fe2c1c7ba4f4d2e51c3c202adf9d5b89dfa48d6d Author: Evgeny Grin (Karlson2k) drgrin dev> AuthorDate: Thu Mar 6 22:18:51 2025 +0000 Commit: Horodniceanu Andrei proton me> CommitDate: Sat Mar 8 17:09:40 2025 +0000 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=fe2c1c7b net-misc/onedrive: add new upstream version 2.5.4 Signed-off-by: Evgeny Grin (Karlson2k) drgrin.dev> Closes: https://github.com/gentoo/dlang/pull/137 Signed-off-by: Andrei Horodniceanu proton.me> net-misc/onedrive/Manifest | 1 + net-misc/onedrive/onedrive-2.5.4.ebuild | 69 +++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/net-misc/onedrive/Manifest b/net-misc/onedrive/Manifest index 8464684..90826c4 100644 --- a/net-misc/onedrive/Manifest +++ b/net-misc/onedrive/Manifest @@ -1,2 +1,3 @@ DIST onedrive-2.4.25.tar.gz 1243977 BLAKE2B 0bcf0b3786586395746c343c0c808c9e868e71b5c0d7b1e789add2a1d1c1305741a8251e239ce48f4d7d76bb9b4ec4c6fbe247874545a0c24c84aeea47b93576 SHA512 bbf1a87be25f69041a36f41967ee5ee692faae012f38d050fdeca7de1fc35c4ff79bf597032354fc7421699f2e9b75b458364c45c17de2db112f884dac42d781 DIST onedrive-2.5.3.tar.gz 4145315 BLAKE2B 1dd36c09121f33807eeafb3caa30913fd0a877cc110951c257b70acc3b0cb4ad8247774ba8f3a1521d1d0901165acad4f0470cddefc9af48e42d8264b1b85bb2 SHA512 440b470f0cb09699486faa6abcfe0fdbc0ca26bfc484f4844f21b5c2bafb93813605771f49025dcb0b6f65f415ffcacd929792efc71f2f52e73faa962536160c +DIST onedrive-2.5.4.tar.gz 4169512 BLAKE2B 24bdb8083086b4e309fd6f6e94aae570da1531c3b6b054470331be11c600801254d06f076fb440172ace334a7395e0a11763ddd31734f1e7fc2130445875863b SHA512 e1a64d7e1a5af4b59213f15177fc5cabbfce36cca6fbddbb9da22f0045e8bd6654ed733485c676621889ed8d0d118533f4fc6cea9161032e00c50ad3b84d5a9e diff --git a/net-misc/onedrive/onedrive-2.5.4.ebuild b/net-misc/onedrive/onedrive-2.5.4.ebuild new file mode 100644 index 0000000..a156ae6 --- /dev/null +++ b/net-misc/onedrive/onedrive-2.5.4.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DLANG_COMPAT=( dmd-2_{106..109} ldc2-1_{35..40} ) +inherit bash-completion-r1 dlang-single systemd + +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 ~x86" +# no straight forward way to run unittests. Probably need to do DFLAGS=-unittest econf +IUSE="debug libnotify" +RESTRICT=test + +REQUIRED_USE=${DLANG_REQUIRED_USE} +RDEPEND=" + ${DLANG_DEPS} + >=dev-db/sqlite-3.7.15:3 + net-misc/curl + libnotify? ( x11-libs/libnotify ) +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" +BDEPEND=${DLANG_DEPS} + +src_configure() { + DCFLAGS="${DCFLAGS} ${DLANG_LDFLAGS}" econf \ + --disable-version-check --enable-completions \ + $(use_enable debug) $(use_enable libnotify notifications) \ + --with-zsh-completion-dir=/usr/share/zsh/site-functions \ + --with-bash-completion-dir="$(get_bashcompdir)" \ + --with-fish-completion-dir=/usr/share/fish/completions \ + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ + --with-systemduserunitdir="$(systemd_get_userunitdir)" +} + +src_install() { + emake DESTDIR="${D}" docdir=/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() { + 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 +}