From 95a4deb7b47a9a4e62028d66865bf86c98ed23f9 Mon Sep 17 00:00:00 2001 From: Dave Woodfall Date: Fri, 21 May 2021 08:55:48 +0100 Subject: [PATCH] python/python3-webencodings: Renamed to python3. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- python/python-webencodings/README | 12 ------------ python/python-webencodings/slack-desc | 19 ------------------- python/python3-webencodings/README | 13 +++++++++++++ .../python3-webencodings.SlackBuild} | 11 ++++++----- .../python3-webencodings.info} | 2 +- python/python3-webencodings/slack-desc | 19 +++++++++++++++++++ 6 files changed, 39 insertions(+), 37 deletions(-) delete mode 100644 python/python-webencodings/README delete mode 100644 python/python-webencodings/slack-desc create mode 100644 python/python3-webencodings/README rename python/{python-webencodings/python-webencodings.SlackBuild => python3-webencodings/python3-webencodings.SlackBuild} (93%) rename python/{python-webencodings/python-webencodings.info => python3-webencodings/python3-webencodings.info} (91%) create mode 100644 python/python3-webencodings/slack-desc diff --git a/python/python-webencodings/README b/python/python-webencodings/README deleted file mode 100644 index c48004c0f2..0000000000 --- a/python/python-webencodings/README +++ /dev/null @@ -1,12 +0,0 @@ -webencodings is a Python implementation of the WHATWG Encoding standard. - -In order to be compatible with legacy web content when interpreting something -like Content-Type: text/html; charset=latin1, tools need to use a particular -set of aliases for encoding labels as well as some overriding rules. For -example, US-ASCII and iso-8859-1 on the web are actually aliases for -windows-1252, and an UTF-8 or UTF-16 BOM takes precedence over any other -encoding declaration. The Encoding standard defines all such details so that -implementations do not have to reverse-engineer each other. - -This module has encoding labels and BOM detection, but the actual -implementation for encoders and decoders is Python's. diff --git a/python/python-webencodings/slack-desc b/python/python-webencodings/slack-desc deleted file mode 100644 index 98757cc75c..0000000000 --- a/python/python-webencodings/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# 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------------------------------------------------------| -python-webencodings: python-webencodings (Character encoding for the web) -python-webencodings: -python-webencodings: webencodings is a Python implementation of the WHATWG Encoding -python-webencodings: standard. -python-webencodings: -python-webencodings: -python-webencodings: -python-webencodings: -python-webencodings: -python-webencodings: -python-webencodings: diff --git a/python/python3-webencodings/README b/python/python3-webencodings/README new file mode 100644 index 0000000000..736e9a2870 --- /dev/null +++ b/python/python3-webencodings/README @@ -0,0 +1,13 @@ +webencodings is a Python implementation of the WHATWG Encoding standard. + +In order to be compatible with legacy web content when interpreting +something like Content-Type: text/html; charset=latin1, tools need to +use a particular set of aliases for encoding labels as well as some +overriding rules. For example, US-ASCII and iso-8859-1 on the web are +actually aliases for windows-1252, and an UTF-8 or UTF-16 BOM takes +precedence over any other encoding declaration. The Encoding standard +defines all such details so that implementations do not have to +reverse-engineer each other. + +This module has encoding labels and BOM detection, but the actual +implementation for encoders and decoders is Python's. diff --git a/python/python-webencodings/python-webencodings.SlackBuild b/python/python3-webencodings/python3-webencodings.SlackBuild similarity index 93% rename from python/python-webencodings/python-webencodings.SlackBuild rename to python/python3-webencodings/python3-webencodings.SlackBuild index 3228d08425..5df0e7af84 100644 --- a/python/python-webencodings/python-webencodings.SlackBuild +++ b/python/python3-webencodings/python3-webencodings.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # -# SlackBuild for python-webencodings +# SlackBuild for python3-webencodings # # Copyright 2017-2021 Benjamin Trigona-Harany # @@ -21,7 +21,8 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -PRGNAM=python-webencodings +PRGNAM=python3-webencodings +SRCNAM=python-webencodings VERSION=${VERSION:-0.5.1} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} @@ -58,9 +59,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xzf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xzf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ diff --git a/python/python-webencodings/python-webencodings.info b/python/python3-webencodings/python3-webencodings.info similarity index 91% rename from python/python-webencodings/python-webencodings.info rename to python/python3-webencodings/python3-webencodings.info index addf43e15b..340d3d72dc 100644 --- a/python/python-webencodings/python-webencodings.info +++ b/python/python3-webencodings/python3-webencodings.info @@ -1,4 +1,4 @@ -PRGNAM="python-webencodings" +PRGNAM="python3-webencodings" VERSION="0.5.1" HOMEPAGE="https://pythonhosted.org/webencodings/" DOWNLOAD="https://github.com/gsnedders/python-webencodings/archive/v0.5.1/python-webencodings-0.5.1.tar.gz" diff --git a/python/python3-webencodings/slack-desc b/python/python3-webencodings/slack-desc new file mode 100644 index 0000000000..2b41d21154 --- /dev/null +++ b/python/python3-webencodings/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-webencodings: python3-webencodings (Character encoding for the web) +python3-webencodings: +python3-webencodings: webencodings is a Python implementation of the WHATWG Encoding +python3-webencodings: standard. +python3-webencodings: +python3-webencodings: +python3-webencodings: +python3-webencodings: +python3-webencodings: +python3-webencodings: +python3-webencodings: