1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit bash-completion-r1 eutils rpm
8 MY_P="${PN}-${PV/_p/-}"
10 DESCRIPTION="CLI to access Yandex Disk file storage service"
11 HOMEPAGE="https://disk.yandex.ru"
13 amd64? ( http://repo.yandex.ru/yandex-disk/rpm/stable/x86_64/${MY_P}.fedora.x86_64.rpm )
14 x86? ( http://repo.yandex.ru/yandex-disk/rpm/stable/i386/${MY_P}.fedora.i386.rpm )
19 KEYWORDS="-* amd64 x86"
22 RDEPEND="sys-libs/zlib"
26 QA_PREBUILT="opt/bin/yandex-disk"
32 -e 's/+o nospace/-o nospace/' \
33 -e '/^complete/s/-X //' \
34 etc/bash_completion.d/yandex-disk-completion.bash || die
41 doexe usr/bin/yandex-disk
42 newbashcomp etc/bash_completion.d/yandex-disk-completion.bash "${PN}"
43 insinto /usr/share/man
44 doins -r usr/share/man/*
46 doins -r usr/share/locale