diff options
Diffstat (limited to 'net-misc/yandex-disk/yandex-disk-0.1.6.1080_p1.ebuild')
-rw-r--r-- | net-misc/yandex-disk/yandex-disk-0.1.6.1080_p1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/net-misc/yandex-disk/yandex-disk-0.1.6.1080_p1.ebuild b/net-misc/yandex-disk/yandex-disk-0.1.6.1080_p1.ebuild new file mode 100644 index 000000000000..b8c324f9da4e --- /dev/null +++ b/net-misc/yandex-disk/yandex-disk-0.1.6.1080_p1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 rpm + +MY_P="${PN}-${PV/_p/-}" + +DESCRIPTION="CLI to access Yandex Disk file storage service" +HOMEPAGE="https://disk.yandex.ru" +SRC_URI=" + amd64? ( https://repo.yandex.ru/yandex-disk/rpm/stable/x86_64/${MY_P}.fedora.x86_64.rpm ) + x86? ( https://repo.yandex.ru/yandex-disk/rpm/stable/i386/${MY_P}.fedora.i386.rpm ) +" + +LICENSE="YDSLA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" + +DEPEND="app-arch/gzip" +RDEPEND="sys-libs/zlib" + +S="${WORKDIR}" + +QA_PREBUILT="opt/bin/yandex-disk" + +src_prepare() { + # bug #526312 + sed -i \ + -e '/have /d' \ + -e 's/+o nospace/-o nospace/' \ + -e '/^complete/s/-X //' \ + etc/bash_completion.d/yandex-disk-completion.bash || die + + # Uncompress man pages to prevent QA warnings, bug #731684 + find usr/share/man -type f -name *.gz | xargs gunzip + + eapply_user +} + +src_install() { + exeinto /opt/bin + doexe usr/bin/yandex-disk + newbashcomp etc/bash_completion.d/yandex-disk-completion.bash "${PN}" + insinto /usr/share/man + doins -r usr/share/man/* + insinto /usr/share + doins -r usr/share/locale +} |