From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1E685158043 for ; Sat, 13 Apr 2024 23:04:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1506FE2A40; Sat, 13 Apr 2024 23:04:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id F0E32E2A40 for ; Sat, 13 Apr 2024 23:04:33 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 43AFA3433A8 for ; Sat, 13 Apr 2024 23:04:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7F1D716E9 for ; Sat, 13 Apr 2024 23:04:29 +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: <1713048451.75b3199f36a6afae6162ee4eb54716ed9fd1e09d.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/onedrive-2.4.25-r1.ebuild X-VCS-Directories: net-misc/onedrive/ X-VCS-Committer: a.horodniceanu X-VCS-Committer-Name: Horodniceanu Andrei X-VCS-Revision: 75b3199f36a6afae6162ee4eb54716ed9fd1e09d X-VCS-Branch: master Date: Sat, 13 Apr 2024 23:04:29 +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: 3614e070-619c-4f49-a9ca-1e32e3b01f32 X-Archives-Hash: 3bfc1ae4a47ab85eca9fbd395139d515 commit: 75b3199f36a6afae6162ee4eb54716ed9fd1e09d Author: Andrei Horodniceanu proton me> AuthorDate: Sat Mar 9 18:21:26 2024 +0000 Commit: Horodniceanu Andrei proton me> CommitDate: Sat Apr 13 22:47:31 2024 +0000 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=75b3199f net-misc/onedrive: port to dlang-single.eclass Signed-off-by: Andrei Horodniceanu proton.me> net-misc/onedrive/onedrive-2.4.25-r1.ebuild | 62 +++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/net-misc/onedrive/onedrive-2.4.25-r1.ebuild b/net-misc/onedrive/onedrive-2.4.25-r1.ebuild new file mode 100644 index 0000000..668b493 --- /dev/null +++ b/net-misc/onedrive/onedrive-2.4.25-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Free Client for OneDrive on Linux" +HOMEPAGE="https://abraunegg.github.io/" +LICENSE="GPL-3" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +SRC_URI="https://codeload.github.com/abraunegg/onedrive/tar.gz/v${PV} -> ${P}.tar.gz" +IUSE="debug libnotify" + +DLANG_COMPAT=( dmd-2_{106..107} ldc2-1_{35..36} ) + +inherit dlang-single systemd bash-completion-r1 + +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." + elog + ewarn "When upgrading from 2.3 you are required to reauthorise your client." + ewarn "This is due to changing the client identifier to assist with resolving" + ewarn "the correct handling of 429 error responses (activityLimitReached)" +}