diff --git a/dev-python/pygments/pygments-2.2.0.recipe b/dev-python/pygments/pygments-2.4.2.recipe similarity index 77% rename from dev-python/pygments/pygments-2.2.0.recipe rename to dev-python/pygments/pygments-2.4.2.recipe index c118b4844..63db8997e 100644 --- a/dev-python/pygments/pygments-2.2.0.recipe +++ b/dev-python/pygments/pygments-2.4.2.recipe @@ -12,11 +12,11 @@ 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" +COPYRIGHT="2006-2019 by the Pygments team" LICENSE="BSD (2-clause)" REVISION="1" -SOURCE_URI="https://pypi.python.org/packages/71/2a/2e4e77803a8bd6408a2903340ac498cb0a2181811af7c9ec92cb70b0308a/Pygments-$portVersion.tar.gz" -CHECKSUM_SHA256="dbae1046def0efb574852fab9e90209b23f556367b5a320c0bcb871c77c3e8cc" +SOURCE_URI="https://files.pythonhosted.org/packages/7e/ae/26808275fc76bf2832deb10d3a3ed3107bc4de01b85dcccbe525f2cd6d1e/Pygments-$portVersion.tar.gz" +CHECKSUM_SHA256="881c4c157e45f30af185c1ffe8d549d48ac9127433f2c380c24b84572ad66297" SOURCE_DIR="Pygments-$portVersion" ARCHITECTURES="any" @@ -32,8 +32,8 @@ BUILD_REQUIRES=" haiku_devel " -PYTHON_PACKAGES=(python python3) -PYTHON_VERSIONS=(2.7 3.6) +PYTHON_PACKAGES=(python python36 python3) +PYTHON_VERSIONS=(2.7 3.6 3.7) for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} @@ -53,6 +53,9 @@ done PROVIDES_python="$PROVIDES_python cmd:pygmentize = $portVersion " +PROVIDES_python36="$PROVIDES_python36 + cmd:pygmentize3.6 = $portVersion + " PROVIDES_python3="$PROVIDES_python3 cmd:pygmentize3 = $portVersion " @@ -71,9 +74,12 @@ INSTALL() $python setup.py build install \ --root=/ --prefix=$prefix - if [ $pythonPackage != python ]; then + if [ $pythonPackage = python3 ]; then mv $binDir/pygmentize $binDir/pygmentize3 fi + if [ $pythonPackage = python36 ]; then + mv $binDir/pygmentize $binDir/pygmentize3.6 + fi packageEntries $pythonPackage \ $prefix/lib/python* \ $binDir