2017-07-31 18:47:13 +03:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
2012-11-24 00:07:00 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2014-12-04 19:39:17 +03:00
|
|
|
EAPI=5
|
2012-11-24 00:07:00 +04:00
|
|
|
|
2014-12-04 19:39:17 +03:00
|
|
|
PYTHON_COMPAT=( python2_7 )
|
2012-11-24 00:07:00 +04:00
|
|
|
|
2014-12-04 19:39:17 +03:00
|
|
|
GIT_ECLASS=""
|
2012-11-24 00:07:00 +04:00
|
|
|
if [[ ${PV} = *9999* ]]; then
|
2014-12-04 19:39:17 +03:00
|
|
|
GIT_ECLASS="git-r3"
|
2017-07-31 18:47:13 +03:00
|
|
|
EGIT_REPO_URI="https://github.com/rafaelmartins/${PN}.git"
|
2012-11-24 00:07:00 +04:00
|
|
|
fi
|
|
|
|
|
2014-12-04 19:39:17 +03:00
|
|
|
inherit distutils-r1 ${GIT_ECLASS}
|
2012-11-24 00:07:00 +04:00
|
|
|
|
|
|
|
DESCRIPTION="A simple podcast client that runs on the Command Line Interface"
|
2014-12-04 19:39:17 +03:00
|
|
|
HOMEPAGE="https://github.com/rafaelmartins/marrie"
|
2012-11-24 00:07:00 +04:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
2014-12-04 19:39:17 +03:00
|
|
|
RDEPEND="
|
|
|
|
dev-python/setuptools
|
2014-12-22 03:03:58 +03:00
|
|
|
>=dev-python/feedparser-5.1.3"
|
2012-11-24 00:07:00 +04:00
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
doc? ( dev-python/docutils )"
|
|
|
|
|
|
|
|
src_compile() {
|
2014-12-04 19:39:17 +03:00
|
|
|
distutils-r1_src_compile
|
2012-11-24 00:07:00 +04:00
|
|
|
if use doc; then
|
|
|
|
rst2html.py README.rst marrie.html || die "rst2html.py failed"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2014-12-04 19:39:17 +03:00
|
|
|
distutils-r1_src_install
|
2012-11-24 00:07:00 +04:00
|
|
|
if use doc; then
|
|
|
|
dohtml marrie.html
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
2014-12-04 19:39:17 +03:00
|
|
|
distutils-r1_pkg_postinst
|
2012-11-24 00:07:00 +04:00
|
|
|
elog
|
|
|
|
elog "You'll need a media player and a file downloader."
|
|
|
|
elog "Recommended packages: net-misc/wget and media-video/mplayer"
|
|
|
|
elog
|
|
|
|
}
|