You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/markdown/markdown-2.2.1.ebuild

50 lines
1.3 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/markdown/markdown-2.2.1.ebuild,v 1.1 2013/01/11 08:01:42 patrick Exp $
EAPI="4"
PYTHON_DEPEND="2:2.6 3:3.1"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.5"
inherit distutils eutils
MY_PN="Markdown"
MY_P=${MY_PN}-${PV}
DESCRIPTION="Python implementation of the markdown markup language"
HOMEPAGE="http://www.freewisdom.org/projects/python-markdown http://pypi.python.org/pypi/Markdown"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="|| ( BSD GPL-2 )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~ppc-macos ~x86-macos"
IUSE="doc test pygments"
DEPEND="test? ( dev-python/nose )"
RDEPEND="pygments? ( dev-python/pygments )"
S="${WORKDIR}/${MY_P}"
src_install() {
distutils_src_install
if use doc; then
dodoc docs/[!extensions]*
docinto extensions
dodoc docs/extensions/*
fi
}
src_test() {
testing() {
cp -r run-tests.py tests build-${PYTHON_ABI}/ || return
cd build-${PYTHON_ABI}
if [[ $(python_get_version -l --major) == 3 ]]; then
2to3-${PYTHON_ABI} -n -w --no-diffs tests || return
fi
PYTHONPATH=lib "$(PYTHON)" run-tests.py
}
python_execute_function testing
}