Gentoo Archives: gentoo-commits

From: Marco Leise <marco.leise@×××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/user/dlang:master commit in: net-misc/onedrive/
Date: Tue, 08 Feb 2022 21:39:38
Message-Id: 1644258122.dd676235e2c8746ede2f7655e82e105c5461af64.mleise@gentoo
1 commit: dd676235e2c8746ede2f7655e82e105c5461af64
2 Author: Niko Böckerman <niko.bockerman <AT> protonmail <DOT> com>
3 AuthorDate: Thu Feb 3 20:54:31 2022 +0000
4 Commit: Marco Leise <marco.leise <AT> gmx <DOT> de>
5 CommitDate: Mon Feb 7 18:22:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=dd676235
7
8 onedrive-2.4.13
9
10 Signed-off-by: Niko Böckerman <niko.bockerman <AT> protonmail.com>
11
12 net-misc/onedrive/Manifest | 1 +
13 net-misc/onedrive/onedrive-2.4.13.ebuild | 64 ++++++++++++++++++++++++++++++++
14 2 files changed, 65 insertions(+)
15
16 diff --git a/net-misc/onedrive/Manifest b/net-misc/onedrive/Manifest
17 index b1ab92c..a4dbe85 100644
18 --- a/net-misc/onedrive/Manifest
19 +++ b/net-misc/onedrive/Manifest
20 @@ -1,2 +1,3 @@
21 DIST onedrive-2.4.12.tar.gz 1034187 BLAKE2B 5c9bf0a4c9fbf966762bee68f83af62021910d26052c258d8c805c9628f76d91181a56b2eb32bb1d8ad2d5c449d1bfb848a2b33e73c9b6ab92d0216abea89ff9 SHA512 e870b85716a1d86c4b589daeb790006e8b15fe83064337be73eb985f821a476f172fef4e7372b6f953190243a117fe71c959afae0039ee81b0ad2151317d93d2
22 +DIST onedrive-2.4.13.tar.gz 1036028 BLAKE2B f11d750c3e9b452a997c0aaa260f072b1614fadf6eb50d8b0524752fd8340698fd4fa6b9678a92a95f9237454d40bbfc97f7de04665ceb40ce5e85bbd0aa5047 SHA512 6861c01d996ede667f0cb622038ad714a060cd2bc1c78f650cb6bcc9a671879f0ef675519db83a46668ce41bf7b71ef36157e2a1c7786e7b97d0e9153abf704c
23 DIST onedrive-2.4.9.tar.gz 1016024 BLAKE2B c77bd74f6ab2a529aeed213e1dad66019ddc339c0e006f5c9c9933939eefbd4fb1800921bf078bca7989680ccfcc4c3ed905d584c8261905736e9175fd72faf6 SHA512 713abb3ddf7367c386efc1c2b1fb72115675befaef5c2627b1920cb707daecafe1af2358921be7f19b05f3e9df7cbb6014e2cf6367c61d27e72531f8afa0f4b4
24
25 diff --git a/net-misc/onedrive/onedrive-2.4.13.ebuild b/net-misc/onedrive/onedrive-2.4.13.ebuild
26 new file mode 100644
27 index 0000000..e6ca50f
28 --- /dev/null
29 +++ b/net-misc/onedrive/onedrive-2.4.13.ebuild
30 @@ -0,0 +1,64 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +DESCRIPTION="Free Client for OneDrive on Linux"
37 +HOMEPAGE="https://abraunegg.github.io/"
38 +LICENSE="GPL-3"
39 +
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +RDEPEND="
43 + >=dev-db/sqlite-3.7.15:3
44 + net-misc/curl
45 + libnotify? ( x11-libs/libnotify )
46 +"
47 +DEPEND="
48 + ${RDEPEND}
49 + virtual/pkgconfig
50 +"
51 +SRC_URI="https://codeload.github.com/abraunegg/onedrive/tar.gz/v${PV} -> ${P}.tar.gz"
52 +DLANG_VERSION_RANGE="2.082-"
53 +DLANG_PACKAGE_TYPE="single"
54 +IUSE="debug libnotify"
55 +
56 +inherit dlang systemd bash-completion-r1
57 +
58 +d_src_configure() {
59 + # LDC is supported without wrapper
60 + if [[ "${DLANG_VENDOR}" == "LDC" ]]; then
61 + export DC=${DC}
62 + export DCFLAGS=${DCFLAGS}
63 + else
64 + export DC=${DMD}
65 + export DCFLAGS=${DMDFLAGS}
66 + fi
67 + econf --disable-version-check --enable-completions $(use_enable debug) $(use_enable libnotify notifications) \
68 + --with-zsh-completion-dir=/usr/share/zsh/site-functions \
69 + --with-bash-completion-dir="$(get_bashcompdir)" \
70 + --with-fish-completion-dir=/usr/share/fish/completions \
71 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
72 + --with-systemduserunitdir="$(systemd_get_userunitdir)"
73 +}
74 +
75 +src_install() {
76 + emake DESTDIR="${D}" docdir=/usr/share/doc/${PF} install
77 + # log directory
78 + keepdir /var/log/onedrive
79 + fperms 775 /var/log/onedrive
80 + fowners root:users /var/log/onedrive
81 + # init script
82 + dobin contrib/init.d/onedrive_service.sh
83 + newinitd contrib/init.d/onedrive.init onedrive
84 +}
85 +
86 +pkg_postinst() {
87 + elog "OneDrive Free Client needs to be authorized to access your data before the"
88 + elog "first use. To do so, run onedrive in a terminal for the user in question and"
89 + elog "follow the steps on screen."
90 + elog
91 + ewarn "When upgrading from 2.3 you are required you to reauthorise your client."
92 + ewarn "This is due to changing the client identifier to assist with resolving"
93 + ewarn "the correct handling of 429 error responses (activityLimitReached)"
94 +}