SUMMARY="A generic syntax highlighter" 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/" COPYRIGHT="2006-2013 by the Pygments team" LICENSE="BSD (2-clause)" REVISION="1" SOURCE_URI="https://pypi.python.org/packages/source/P/Pygments/Pygments-$portVersion.tar.gz" CHECKSUM_SHA256="88e4c8a91b2af5962bfa5ea2447ec6dd357018e86e94c7d14bd8cacbc5b55d81" SOURCE_DIR="Pygments-$portVersion" ARCHITECTURES="x86 x86_gcc2 x86_64" PROVIDES=" pygments$secondaryArchSuffix = $portVersion cmd:pygmentize$secondaryArchSuffix = $portVersion " REQUIRES=" haiku$secondaryArchSuffix cmd:python2$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel python_setuptools " BUILD_PREREQUIRES=" cmd:python2$secondaryArchSuffix " BUILD() { $portPackageLinksDir/cmd~python2/bin/python2 setup.py build } INSTALL() { # GENERIC: all python_setuptools-based installs need this python=$portPackageLinksDir/cmd~python2/bin/python2 pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3) installLocation=$prefix/lib/python$pythonVersion/vendor-packages/ export PYTHONPATH=$installLocation:$PYTHONPATH mkdir -p $installLocation $python setup.py install \ --single-version-externally-managed \ --root=/ --prefix=$prefix }