aboutsummaryrefslogtreecommitdiff
path: root/python/python3-editorconfig
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-11-15 09:59:52 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2025-11-15 10:04:53 +0700
commit41e571e9aae04df7ea6396b4791aa1d4d43879ae (patch)
tree11dc7ff8c9ebb887034fc650a310914e4c5ba844 /python/python3-editorconfig
parent6a0dd727d8c3aa4d8a92749653e2ace44c939309 (diff)
python/python3-editorconfig: Added (Meta Configuration for Text Editor).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-editorconfig')
-rw-r--r--python/python3-editorconfig/README11
-rw-r--r--python/python3-editorconfig/python3-editorconfig.SlackBuild62
-rw-r--r--python/python3-editorconfig/python3-editorconfig.info10
-rw-r--r--python/python3-editorconfig/slack-desc19
4 files changed, 102 insertions, 0 deletions
diff --git a/python/python3-editorconfig/README b/python/python3-editorconfig/README
new file mode 100644
index 0000000000..bc82f68d26
--- /dev/null
+++ b/python/python3-editorconfig/README
@@ -0,0 +1,11 @@
+python3-editorconfig (meta-configuration for text editors)
+
+EditorConfig Python Core provides the same functionality as the
+EditorConfig C Core. EditorConfig Python core can be used as a command
+line program or as an importable library.
+
+EditorConfig makes it easy to maintain the correct coding style
+when switching between different text editors and between different
+projects. The EditorConfig project maintains a file format and
+plugins for various text editors which allow this file format to be
+read and used by those editors.
diff --git a/python/python3-editorconfig/python3-editorconfig.SlackBuild b/python/python3-editorconfig/python3-editorconfig.SlackBuild
new file mode 100644
index 0000000000..514623da67
--- /dev/null
+++ b/python/python3-editorconfig/python3-editorconfig.SlackBuild
@@ -0,0 +1,62 @@
+#!/bin/bash
+
+# Slackware build script for python3-editorconfig
+
+# Written by B. Watson (urchlay@slackware.uk)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=python3-editorconfig
+SRCNAM=editorconfig
+VERSION=${VERSION:-0.17.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
+chown -R root:root .
+find . ! -type l -a \
+ \( -perm /111 -a ! -perm 755 -a -exec chmod -f 755 {} + \) -o \
+ \( ! -perm /111 -a ! -perm 644 -a -exec chmod -f 644 {} + \)
+
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages
+
+python3 setup.py install --root=$PKG
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a COPYING* LICENSE* README* $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/python/python3-editorconfig/python3-editorconfig.info b/python/python3-editorconfig/python3-editorconfig.info
new file mode 100644
index 0000000000..414f834280
--- /dev/null
+++ b/python/python3-editorconfig/python3-editorconfig.info
@@ -0,0 +1,10 @@
+PRGNAM="python3-editorconfig"
+VERSION="0.17.1"
+HOMEPAGE="https://pypi.org/project/EditorConfig/"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/e/editorconfig/editorconfig-0.17.1.tar.gz"
+MD5SUM="7c8fa1ddcbe8b9941b83141051b8e1e3"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="python3-setuptools-opt"
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"
diff --git a/python/python3-editorconfig/slack-desc b/python/python3-editorconfig/slack-desc
new file mode 100644
index 0000000000..d12ed3e70e
--- /dev/null
+++ b/python/python3-editorconfig/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+python3-editorconfig: python3-editorconfig (meta-configuration for text editors)
+python3-editorconfig:
+python3-editorconfig: EditorConfig Python Core provides the same functionality as the
+python3-editorconfig: EditorConfig C Core. EditorConfig Python core can be used as a command
+python3-editorconfig: line program or as an importable library.
+python3-editorconfig:
+python3-editorconfig:
+python3-editorconfig:
+python3-editorconfig:
+python3-editorconfig:
+python3-editorconfig: