diff options
author | 2022-10-06 18:07:41 -0400 | |
---|---|---|
committer | 2022-10-06 18:07:41 -0400 | |
commit | 9c98703f7ec567198e57eeaf9baef45deaf175f7 (patch) | |
tree | c02509365be1c12e4c2b9395b53e7a542ab905ff /net-misc | |
parent | dev-util/dub version bump (diff) | |
download | dlang-9c98703f7ec567198e57eeaf9baef45deaf175f7.tar.gz dlang-9c98703f7ec567198e57eeaf9baef45deaf175f7.tar.bz2 dlang-9c98703f7ec567198e57eeaf9baef45deaf175f7.zip |
net-misc/onedrive: add 2.4.21
Also move to EAPI 8.
Signed-off-by: Joe Kappus <joe@wt.gd>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/onedrive/Manifest | 1 | ||||
-rw-r--r-- | net-misc/onedrive/onedrive-2.4.21.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/net-misc/onedrive/Manifest b/net-misc/onedrive/Manifest index 36973fd..718d2c4 100644 --- a/net-misc/onedrive/Manifest +++ b/net-misc/onedrive/Manifest @@ -1,2 +1,3 @@ DIST onedrive-2.4.19.tar.gz 1145669 BLAKE2B ab2537089be2da474fcdff23c9e12c002136b07ad8a97d0e1182314d9205c938747381b3ad2870ffaf22adb29e39130a0ff0a7ca078809143fb8c3f0ee8f93d3 SHA512 e1542efd12b0dd30c5a17ff8afbceadc23d9b280d7bbe856dad3e93e3c88ae65ab7c50e6cd7dec0bab3e84ac941e7b0f318134ee33c245fe81deddb4a3bce91f DIST onedrive-2.4.20.tar.gz 1147454 BLAKE2B 397fb17d6b0f71ad20a91ca7e8d75a0cbd0c91562d25f24961b48d7c6704af0931d2a9a3bd2bce7a4c3d6a4560b198f7d8acd45da09b2fda499c50106a967e46 SHA512 c70f0ad8943582eeee98bc6612d94c1b4d53992da78e8e578ba24f9dbb422f37527decfac02e0745f853b32f5546debc30dc27bec30cc7cf9587204e0189e11f +DIST onedrive-2.4.21.tar.gz 1223054 BLAKE2B ecb424c303ec1e47ea49f3429c6db5436573df537ae4f75468a80385f4dc43d56a99253baa8b1b537450836326c78609ccd924ed7ae0cc0599e4e90561394801 SHA512 e1f74d68e82dd65027642b0585e5379a41c7d900fdad3015cd55d4e161bdd3ed5580f1a3a0bd3ea69faa34c417d17ab13774bec58c3497368eeae9017dd46ecd diff --git a/net-misc/onedrive/onedrive-2.4.21.ebuild b/net-misc/onedrive/onedrive-2.4.21.ebuild new file mode 100644 index 0000000..eff9231 --- /dev/null +++ b/net-misc/onedrive/onedrive-2.4.21.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2022 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" +RDEPEND=" + >=dev-db/sqlite-3.7.15:3 + net-misc/curl + libnotify? ( x11-libs/libnotify ) +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" +SRC_URI="https://codeload.github.com/abraunegg/onedrive/tar.gz/v${PV} -> ${P}.tar.gz" +DLANG_VERSION_RANGE="2.087-" +DLANG_PACKAGE_TYPE="single" +IUSE="debug libnotify" + +inherit dlang systemd bash-completion-r1 + +d_src_configure() { + # LDC is supported without wrapper + if [[ "${DLANG_VENDOR}" == "LDC" ]]; then + export DC=${DC} + export DCFLAGS=${DCFLAGS} + else + export DC=${DMD} + export DCFLAGS=${DMDFLAGS} + fi + 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)" +} |