blob: e3e20adf6414c2e27a5a466099a80bbf65b9d70b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pygments/pygments-0.8.1.ebuild,v 1.1 2007/06/28 04:15:22 pythonhead Exp $
inherit eutils distutils
MY_PN="Pygments"
MY_P="${MY_PN}-${PV}"
NEED_PYTHON=2.3
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="~amd64 ~ppc64 ~x86"
SLOT="0"
IUSE="doc"
S=${WORKDIR}/${MY_P}
PYTHON_MODNAME="pygments"
DOCS="CHANGES"
src_unpack() {
unpack ${A}
cd ${S}
#Gentoo patches to make lexer recognize ebuilds as bash input
epatch ${FILESDIR}/${PN}-0.8-other.py-ebuild.patch || die "Patch failed"
epatch ${FILESDIR}/${PN}-0.8-_mapping.py-ebuild.patch || die "Patch failed"
}
src_install(){
distutils_src_install
use doc && dohtml -r docs/build/
}
src_test() {
PYTHONPATH=. "${python}" tests/run.py || die "tests failed"
}
|