1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
8 inherit distutils-r1 git-r3
10 DESCRIPTION="A tool to generate a static blog, with restructured text or markdown input files"
11 HOMEPAGE="http://blog.getpelican.com/ https://pypi.python.org/pypi/pelican"
12 EGIT_REPO_URI="https://github.com/getpelican/pelican.git"
13 EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
18 IUSE="doc examples markdown test"
19 # Tests fail for this release but are fixed upstream
22 DEPEND=">=dev-python/feedgenerator-1.6[${PYTHON_USEDEP}]
23 >=dev-python/jinja-2.7[${PYTHON_USEDEP}]
24 dev-python/docutils[${PYTHON_USEDEP}]
25 dev-python/pygments[${PYTHON_USEDEP}]
26 dev-python/pytz[${PYTHON_USEDEP}]
27 dev-python/unidecode[${PYTHON_USEDEP}]
28 dev-python/blinker[${PYTHON_USEDEP}]
29 >=dev-python/six-1.4[${PYTHON_USEDEP}]
30 dev-python/python-dateutil[${PYTHON_USEDEP}]
31 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
32 markdown? ( dev-python/markdown[${PYTHON_USEDEP}] )
34 dev-python/nose[${PYTHON_USEDEP}]
35 dev-python/markdown[${PYTHON_USEDEP}]
41 python_compile_all() {
42 use doc && emake -C docs html
45 python_install_all() {
46 use doc && local HTML_DOCS=( docs/_build/html/. )
48 insinto "/usr/share/doc/${PF}"
49 docompress -x "/usr/share/doc/${PF}/samples"
52 distutils-r1_python_install_all
56 nosetests || die "Testing failed with ${EPYTHON}"