diff options
-rw-r--r-- | dev-python/pygments/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/pygments/pygments-0.10.ebuild | 45 |
2 files changed, 51 insertions, 1 deletions
diff --git a/dev-python/pygments/ChangeLog b/dev-python/pygments/ChangeLog index e326dd0ac39d..ee50035fe268 100644 --- a/dev-python/pygments/ChangeLog +++ b/dev-python/pygments/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/pygments # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pygments/ChangeLog,v 1.12 2008/05/25 06:39:07 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygments/ChangeLog,v 1.13 2008/05/27 18:36:27 hawking Exp $ + +*pygments-0.10 (27 May 2008) + + 27 May 2008; Ali Polatel <hawking@gentoo.org> +pygments-0.10.ebuild: + Version bump. 25 May 2008; Markus Rothe <corsair@gentoo.org> pygments-0.9.ebuild: Stable on ppc64 diff --git a/dev-python/pygments/pygments-0.10.ebuild b/dev-python/pygments/pygments-0.10.ebuild new file mode 100644 index 000000000000..cb43c984cb7f --- /dev/null +++ b/dev-python/pygments/pygments-0.10.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygments/pygments-0.10.ebuild,v 1.1 2008/05/27 18:36:27 hawking Exp $ + +NEED_PYTHON=2.3 + +inherit eutils distutils + +MY_PN="Pygments" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Pygments is a syntax highlighting package written in Python." +HOMEPAGE="http://pygments.org/" +SRC_URI="http://cheeseshop.python.org/packages/source/P/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +SLOT="0" +IUSE="doc" + +DEPEND="dev-python/setuptools" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" +DOCS="CHANGES" + +src_unpack() { + distutils_src_unpack + + # Make lexer recognize ebuilds as bash input + sed -i \ + -e "/\(BashLexer\|aliases\)/s/\('sh'\)/\1, 'ebuild'/" \ + -e "/\(BashLexer\|filenames\)/s/\('\*\.sh'\)/\1, '*.ebuild'/" \ + ${PN}/lexers/_mapping.py ${PN}/lexers/other.py ||\ + die "sed failed." +} + +src_install(){ + distutils_src_install + use doc && dohtml -r docs/build/ +} + +src_test() { + PYTHONPATH=. "${python}" tests/run.py || die "tests failed" +} |