SUMMARY="a generic syntax highlighter for general use"
DESCRIPTION="
It is a generic syntax highlighter for general use in all kinds of software \
such as forum systems, wikis or other applications that need to prettify \
source code. Highlights are:
* a wide range of common languages and markup formats is supported
* special attention is paid to details that increase highlighting quality
* support for new languages and formats are added easily; most languages use a \
simple regex-based lexing mechanism
* a number of output formats is available, among them HTML, RTF, LaTeX and \
ANSI sequences
* it is usable as a command-line tool and as a library
* ... and it highlights even Brainf*ck!
"
HOMEPAGE="http://pygments.org/"
SOURCE_URI="https://pypi.python.org/packages/source/P/Pygments/Pygments-1.6.tar.gz"
CHECKSUM_SHA256="799ed4caf77516e54440806d8d9cd82a7607dfdf4e4fb643815171a4b5c921c0"
COPYRIGHT="2006-2013 by the Pygments team, see AUTHORS"
LICENSE="BSD (2-clause)"
REVISION="1"
ARCHITECTURES="x86 ?x86_gcc2"
SECONDARY_ARCHITECTURES="x86 ?x86_gcc2"

SOURCE_DIR="Pygments-1.6"

PROVIDES="
	pygments$secondaryArchSuffix = $portVersion
	cmd:pygmentize$secondaryArchSuffix = $portVersion
	"

REQUIRES="
	haiku$secondaryArchSuffix
	cmd:python$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"

BUILD_PREREQUIRES="
	cmd:python$secondaryArchSuffix
	"

BUILD()
{
	$portPackageLinksDir/cmd~python/bin/python setup.py build
}

INSTALL()
{
	$portPackageLinksDir/cmd~python/bin/python setup.py install \
		--prefix=$prefix
}
