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: Sat, 15 Aug 2020 18:01:13
Message-Id: 1597514136.41c44f6d68e5364ed0e31997e9bef3ce1016f699.mleise@gentoo
1 commit: 41c44f6d68e5364ed0e31997e9bef3ce1016f699
2 Author: Marco Leise <marco.leise <AT> gmx <DOT> de>
3 AuthorDate: Sat Aug 15 17:55:36 2020 +0000
4 Commit: Marco Leise <marco.leise <AT> gmx <DOT> de>
5 CommitDate: Sat Aug 15 17:55:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=41c44f6d
7
8 onedrive-2.4.5
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.5.ebuild | 64 +++++++++++++++++++++++++++++++++
14 2 files changed, 65 insertions(+)
15
16 diff --git a/net-misc/onedrive/Manifest b/net-misc/onedrive/Manifest
17 index 5eb6749..d182620 100644
18 --- a/net-misc/onedrive/Manifest
19 +++ b/net-misc/onedrive/Manifest
20 @@ -1 +1,2 @@
21 DIST onedrive-2.4.2.tar.gz 685026 BLAKE2B 0eb5e16670d65ae6743f8aa8e6d754bceb6d3f45ac3036e5a03e036b882b58145f3836ab55d5a80bca5bd4e8a4f9dfe590e48771c28f2c90b4d6fa68a6477438 SHA512 08c1a04dfefd0017f1ded8ee17653d91d8ac6ce1e8a942171de37c28deed6fb463e9a85474bea68a6e309dcdf188bdb8a8aed24c723bb01285186135dc43b901
22 +DIST onedrive-2.4.5.tar.gz 965217 BLAKE2B 7c0b8476c862ba2950292e0e4e29b0884f6448d09ec29bd9e14fb33f15a9ad8fbe7a47f37f0a4332a744f000957fecaf2a26ec6c35a37b5cab808c58decfac29 SHA512 5f8d0aea962034c50e920b3cb759bff2e6223a581e63562ab77a9cf364bdca890a62b757a3b4c8046864605edec3abea7e52e877ab384d3c9904f8b83bccf3c3
23
24 diff --git a/net-misc/onedrive/onedrive-2.4.5.ebuild b/net-misc/onedrive/onedrive-2.4.5.ebuild
25 new file mode 100644
26 index 0000000..e2c8738
27 --- /dev/null
28 +++ b/net-misc/onedrive/onedrive-2.4.5.ebuild
29 @@ -0,0 +1,64 @@
30 +# Copyright 1999-2020 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 +}