/[gentoo-x86]/dev-python/markdown/markdown-2.5.1.ebuild
Gentoo

Contents of /dev-python/markdown/markdown-2.5.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Fri Jan 2 12:24:19 2015 UTC (5 years, 7 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +3 -3 lines
Stable for sparc, wrt bug #530534

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="sparc", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/markdown/markdown-2.5.1.ebuild,v 1.8 2014/12/23 16:01:04 ago Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 )
7
8 inherit distutils-r1
9
10 MY_PN="Markdown"
11 MY_P=${MY_PN}-${PV}
12
13 DESCRIPTION="Python implementation of the markdown markup language"
14 HOMEPAGE="http://www.freewisdom.org/projects/python-markdown http://pypi.python.org/pypi/Markdown"
15 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
16
17 LICENSE="|| ( BSD GPL-2 )"
18 SLOT="0"
19 KEYWORDS="alpha amd64 arm ia64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
20 IUSE="doc test pygments"
21
22 DEPEND="test? ( dev-python/nose[${PYTHON_USEDEP}]
23 dev-python/pyyaml[${PYTHON_USEDEP}] )"
24 # source cites pytidylib however from testruns it appears optional
25 RDEPEND="pygments? ( dev-python/pygments[${PYTHON_USEDEP}] )"
26
27 S="${WORKDIR}/${MY_P}"
28
29 python_compile_all() {
30 use doc && esetup.py build_docs
31 }
32
33 python_test() {
34 cp -r -l run-tests.py tests "${BUILD_DIR}"/ || die
35 pushd "${BUILD_DIR}" > /dev/null
36 "${PYTHON}" run-tests.py || die "Tests fail with ${EPYTHON}"
37 popd > /dev/null
38 }
39
40 python_install_all() {
41 # make use doc do a doc build
42 use doc && local HTML_DOCS=( "${BUILD_DIR}"/docs/. )
43
44 distutils-r1_python_install_all
45 }

  ViewVC Help
Powered by ViewVC 1.1.20