blob: 108950c7a97196f65352344758f85c09b66d7a7d [file] [log] [blame]
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pygments/pygments-1.5.ebuild,v 1.12 2012/11/09 12:07:43 idella4 Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
inherit distutils
MY_PN="Pygments"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Pygments is a syntax highlighting package written in Python."
HOMEPAGE="http://pygments.org/ http://pypi.python.org/pypi/Pygments"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="*"
IUSE="doc test"
RDEPEND="dev-python/setuptools"
DEPEND="${RDEPEND}
test? (
dev-python/nose
virtual/ttf-fonts
dev-texlive/texlive-latexrecommended
)"
S="${WORKDIR}/${MY_P}"
DOCS="CHANGES"
src_test() {
testing() {
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" tests/run.py
}
python_execute_function testing
}
src_install(){
distutils_src_install
if use doc; then
dohtml -r docs/build || die "Installation of documentation failed"
fi
}