diff options
Diffstat (limited to 'development/jupyterlab_pygments')
4 files changed, 15 insertions, 31 deletions
diff --git a/development/jupyterlab_pygments/README b/development/jupyterlab_pygments/README index 3a1b62f065b8..3d45bd6114f4 100644 --- a/development/jupyterlab_pygments/README +++ b/development/jupyterlab_pygments/README @@ -1,5 +1,2 @@ jupyterlab_pygments is a syntax coloring theme for pygments making use of the JupyterLab CSS variables. - -jupyterlab_pygments 0.2.2 is the last available version for Slackware -15.0. Newer versions would require jupyterlab >= 4.0. diff --git a/development/jupyterlab_pygments/jupyterlab_pygments.SlackBuild b/development/jupyterlab_pygments/jupyterlab_pygments.SlackBuild index 2bf9e272b910..5e6824177c07 100644 --- a/development/jupyterlab_pygments/jupyterlab_pygments.SlackBuild +++ b/development/jupyterlab_pygments/jupyterlab_pygments.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for jupyterlab_pygments # Copyright 2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> -# Copyright 2022 Isaac Yu <isaacyu@protonmail.com> +# Copyright 2022-2024 Isaac Yu <isaacyu@protonmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=jupyterlab_pygments -VERSION=${VERSION:-0.2.2} +VERSION=${VERSION:-0.3.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +39,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -51,20 +48,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -80,15 +63,19 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python3 setup.py install --root=$PKG +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages + +# Skip dependency check +# In particular, jupyterlab_pygments lists jupyterlab as a circular dependency +python3 -m build --no-isolation --skip-dependency-check +python3 -m installer -d "$PKG" dist/*.whl find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - LICENSE README.md \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/development/jupyterlab_pygments/jupyterlab_pygments.info b/development/jupyterlab_pygments/jupyterlab_pygments.info index 20980cbcef9b..7951b25d4ef7 100644 --- a/development/jupyterlab_pygments/jupyterlab_pygments.info +++ b/development/jupyterlab_pygments/jupyterlab_pygments.info @@ -1,10 +1,10 @@ PRGNAM="jupyterlab_pygments" -VERSION="0.2.2" +VERSION="0.3.0" HOMEPAGE="https://jupyter.org/" -DOWNLOAD="https://files.pythonhosted.org/packages/source/j/jupyterlab_pygments/jupyterlab_pygments-0.2.2.tar.gz" -MD5SUM="7d2d54eb4e52513dd38eae8baac68d9b" +DOWNLOAD="https://files.pythonhosted.org/packages/source/j/jupyterlab_pygments/jupyterlab_pygments-0.3.0.tar.gz" +MD5SUM="43ec6ca3f3c48c735204d9ac8037740a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="jupyter_packaging" +REQUIRES="python3-hatchling python3-hatch_jupyter_builder python3-hatch-nodejs-version" MAINTAINER="Isaac Yu" EMAIL="isaacyu@protonmail.com" diff --git a/development/jupyterlab_pygments/slack-desc b/development/jupyterlab_pygments/slack-desc index a8f5f5b3dc30..d752f40d14d7 100644 --- a/development/jupyterlab_pygments/slack-desc +++ b/development/jupyterlab_pygments/slack-desc @@ -6,7 +6,7 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -jupyterlab_pygments: jupyterlab_pygments (theme for Pygments) +jupyterlab_pygments: jupyterlab_pygments (Theme for Pygments) jupyterlab_pygments: jupyterlab_pygments: jupyterlab_pygments is a syntax coloring theme for pygments making jupyterlab_pygments: use of the JupyterLab CSS variables. |