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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Jul 16 17:17:47 2015 UTC (5 years ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -2 lines
ia64 stable wrt bug #550128

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xC42EB5D6)

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.6.1.ebuild,v 1.9 2015/06/28 13:08:51 zlogene 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 ~arm64 ia64 ppc ppc64 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