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