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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed May 27 08:55:22 2015 UTC (5 years, 2 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Version Bump

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

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.3 2015/05/22 09:49:09 ago Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 python3_{3,4} pypy pypy3 )
8
9 inherit distutils-r1
10
11 MY_PN="Markdown"
12 MY_P=${MY_PN}-${PV}
13
14 DESCRIPTION="Python implementation of the markdown markup language"
15 HOMEPAGE="http://www.freewisdom.org/projects/python-markdown http://pypi.python.org/pypi/Markdown"
16 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
17
18 LICENSE="|| ( BSD GPL-2 )"
19 SLOT="0"
20 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
21 IUSE="doc test pygments"
22
23 DEPEND="
24 test? (
25 dev-python/nose[${PYTHON_USEDEP}]
26 dev-python/pyyaml[${PYTHON_USEDEP}]
27 )"
28 # source cites pytidylib however from testruns it appears optional
29 RDEPEND="pygments? ( dev-python/pygments[${PYTHON_USEDEP}] )"
30
31 S="${WORKDIR}/${MY_P}"
32
33 python_compile_all() {
34 use doc && esetup.py build_docs
35 }
36
37 python_test() {
38 cp -r -l run-tests.py tests "${BUILD_DIR}"/ || die
39 cd "${BUILD_DIR}" || die
40 "${PYTHON}" run-tests.py || die "Tests fail with ${EPYTHON}"
41 }
42
43 python_install_all() {
44 # make use doc do a doc build
45 use doc && local HTML_DOCS=( "${BUILD_DIR}"/docs/. )
46
47 distutils-r1_python_install_all
48 }

  ViewVC Help
Powered by ViewVC 1.1.20