blob: 53414914c9ba53d2bc32c43033790192e11f3d9d (
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
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/marrie/marrie-0.3.2-r1.ebuild,v 1.1 2014/12/21 17:38:11 rafaelmartins Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
GIT_ECLASS=""
if [[ ${PV} = *9999* ]]; then
GIT_ECLASS="git-r3"
EGIT_REPO_URI="git://github.com/rafaelmartins/marrie.git
https://github.com/rafaelmartins/marrie.git"
fi
inherit distutils-r1 ${GIT_ECLASS}
DESCRIPTION="A simple podcast client that runs on the Command Line Interface"
HOMEPAGE="https://github.com/rafaelmartins/marrie"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
if [[ ${PV} = *9999* ]]; then
SRC_URI=""
KEYWORDS=""
fi
LICENSE="BSD"
SLOT="0"
IUSE="doc"
RDEPEND="
dev-python/setuptools
>=dev-python/feedparser-5.1.3"
DEPEND="${RDEPEND}
doc? ( dev-python/docutils )"
src_compile() {
distutils-r1_src_compile
if use doc; then
rst2html.py README.rst marrie.html || die "rst2html.py failed"
fi
}
src_install() {
distutils-r1_src_install
if use doc; then
dohtml marrie.html
fi
}
pkg_postinst() {
distutils-r1_pkg_postinst
elog
elog "You'll need a media player and a file downloader."
elog "Recommended packages: net-misc/wget and media-video/mplayer"
elog
}
|