blob: 647c557686642ff548f9565e7e63843d86db7eea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="git://github.com/MediaCrush/MediaCrush-cli.git"
SRC_URI=""
KEYWORDS=""
inherit git-r3
else
SRC_URI="https://github.com/MediaCrush/MediaCrush-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/MediaCrush-cli-${PV}"
fi
DESCRIPTION="A bash script for working with MediaCrush from a shell"
HOMEPAGE="https://github.com/MediaCrush/MediaCrush-cli"
LICENSE="MIT"
SLOT="0"
IUSE=""
DEPEND="
app-text/asciidoc
"
RDEPEND="
app-editors/vim-core
net-misc/curl
sys-apps/file
sys-apps/sed
"
src_compile() {
a2x --doctype manpage --format manpage mediacrush.1.txt
}
src_install() {
dobin mediacrush
doman mediacrush.1
if ! has_version x11-misc/xdg-utils; then
einfo "Install x11-misc/xdg-utils to enable '--open' argument"
fi
}
|