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, 30 May 2020 16:47:21
Message-Id: 1590852840.92068078c5e1e34f23e696077b887fe85aae9daa.mleise@gentoo
1 commit: 92068078c5e1e34f23e696077b887fe85aae9daa
2 Author: Marco Leise <marco.leise <AT> gmx <DOT> de>
3 AuthorDate: Sat May 30 15:34:00 2020 +0000
4 Commit: Marco Leise <marco.leise <AT> gmx <DOT> de>
5 CommitDate: Sat May 30 15:34:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=92068078
7
8 onedrive-2.4.2
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.2.ebuild | 62 +++++++++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/net-misc/onedrive/Manifest b/net-misc/onedrive/Manifest
17 index 63e9065..b1154af 100644
18 --- a/net-misc/onedrive/Manifest
19 +++ b/net-misc/onedrive/Manifest
20 @@ -1,2 +1,3 @@
21 DIST onedrive-2.4.0.tar.gz 670382 BLAKE2B 1b6adfe6c1eecb3a32461a2a12c1bcae4db534b6fa73bddda2787317dd9285c17081fdeb783c1362e055eaed4ebbe2f2aec5f5bdc80640e9d90e4fd73fa525c8 SHA512 57c57c716b95ab2d517f73a849938dfa49a167d548050eefd4729a5c2ff128072dcc5ca0633eb6eb7722d45533e767dd03b5c7ea529652d36b087d4ab57a542c
22 DIST onedrive-2.4.1.tar.gz 681397 BLAKE2B 41ceec5c6f8e1d2cdb49d74514b7ae68f3dad1795f4d0c95e0e1fd2bacb24dfc4de5709bb831bc7412e626013ed6764f289b57cd96c60c7be2709ece52682e6c SHA512 0844efcacffba5d0473867e803e96869d350c3d1f3b75f374a17899be3469f96ea83e51f69eb1a9a73b8735320b9131a3e2fa782e249980de7639dba9dc2fa0a
23 +DIST onedrive-2.4.2.tar.gz 685026 BLAKE2B 0eb5e16670d65ae6743f8aa8e6d754bceb6d3f45ac3036e5a03e036b882b58145f3836ab55d5a80bca5bd4e8a4f9dfe590e48771c28f2c90b4d6fa68a6477438 SHA512 08c1a04dfefd0017f1ded8ee17653d91d8ac6ce1e8a942171de37c28deed6fb463e9a85474bea68a6e309dcdf188bdb8a8aed24c723bb01285186135dc43b901
24
25 diff --git a/net-misc/onedrive/onedrive-2.4.2.ebuild b/net-misc/onedrive/onedrive-2.4.2.ebuild
26 new file mode 100644
27 index 0000000..c87fd4d
28 --- /dev/null
29 +++ b/net-misc/onedrive/onedrive-2.4.2.ebuild
30 @@ -0,0 +1,62 @@
31 +# Copyright 1999-2020 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://github.com/abraunegg/onedrive"
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 --with-bash-completion-dir="$(get_bashcompdir)" \
69 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
70 + --with-systemduserunitdir="$(systemd_get_userunitdir)"
71 +}
72 +
73 +src_install() {
74 + emake DESTDIR="${D}" docdir=/usr/share/doc/${PF} install
75 + # log directory
76 + keepdir /var/log/onedrive
77 + fperms 775 /var/log/onedrive
78 + fowners root:users /var/log/onedrive
79 + # init script
80 + dobin contrib/init.d/onedrive_service.sh
81 + newinitd contrib/init.d/onedrive.init onedrive
82 +}
83 +
84 +pkg_postinst() {
85 + elog "OneDrive Free Client needs to be authorized to access your data before the"
86 + elog "first use. To do so, run onedrive in a terminal for the user in question and"
87 + elog "follow the steps on screen."
88 + elog
89 + ewarn "When upgrading from 2.3 you are required you to reauthorise your client."
90 + ewarn "This is due to changing the client identifier to assist with resolving"
91 + ewarn "the correct handling of 429 error responses (activityLimitReached)"
92 +}