summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Tennis <caleb@gentoo.org>2008-12-09 13:16:33 +0000
committerCaleb Tennis <caleb@gentoo.org>2008-12-09 13:16:33 +0000
commit602b807c5a579149e9772c21401c83d7426c819f (patch)
treedfe805434d86365bf50e3d8b825318e09e6660e0 /dev-python/pygments
parentdrop bsd patch that doesnt apply anymore, bug #231910 (diff)
downloadgentoo-2-602b807c5a579149e9772c21401c83d7426c819f.tar.gz
gentoo-2-602b807c5a579149e9772c21401c83d7426c819f.tar.bz2
gentoo-2-602b807c5a579149e9772c21401c83d7426c819f.zip
Version bump
(Portage version: 2.2_rc14/cvs/Linux 2.6.21-gentoo-r1 i686)
Diffstat (limited to 'dev-python/pygments')
-rw-r--r--dev-python/pygments/ChangeLog7
-rw-r--r--dev-python/pygments/pygments-1.0.ebuild54
2 files changed, 60 insertions, 1 deletions
diff --git a/dev-python/pygments/ChangeLog b/dev-python/pygments/ChangeLog
index 7666dfbf3f28..7feb2492965e 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.22 2008/10/07 12:21:10 caleb Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygments/ChangeLog,v 1.23 2008/12/09 13:16:33 caleb Exp $
+
+*pygments-1.0 (09 Dec 2008)
+
+ 09 Dec 2008; Caleb Tennis <caleb@gentoo.org> +pygments-1.0.ebuild:
+ Version bump
*pygments-0.11.1 (07 Oct 2008)
diff --git a/dev-python/pygments/pygments-1.0.ebuild b/dev-python/pygments/pygments-1.0.ebuild
new file mode 100644
index 000000000000..741ebed549c5
--- /dev/null
+++ b/dev-python/pygments/pygments-1.0.ebuild
@@ -0,0 +1,54 @@
+# 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-1.0.ebuild,v 1.1 2008/12/09 13:16:33 caleb Exp $
+
+NEED_PYTHON=2.3
+
+inherit 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 ~x86-fbsd"
+SLOT="0"
+IUSE="doc test"
+
+DEPEND="test? ( media-fonts/ttf-bitstream-vera )"
+RDEPEND="dev-python/setuptools"
+
+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', 'eclass'/" \
+ -e "/\(BashLexer\|filenames\)/s/\('\*\.sh'\)/\1, '*.ebuild', '*.eclass'/" \
+ ${PN}/lexers/_mapping.py ${PN}/lexers/other.py ||\
+ die "sed failed."
+
+ #Our usual PYTHONPATH manipulation trick doesn't work, it will try to run
+ #tests on the installed version:
+ if use test ; then
+ sed -i \
+ -e "s/import pygments/sys.path.insert(0, '.');import pygments/" \
+ tests/run.py || \
+ die "sed failed"
+ fi
+}
+
+src_install(){
+ distutils_src_install
+ use doc && dohtml -r docs/build/
+}
+
+src_test() {
+ "${python}" tests/run.py || die "tests failed"
+}