aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-05-21 08:55:48 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-06-02 01:02:20 +0700
commit95a4deb7b47a9a4e62028d66865bf86c98ed23f9 (patch)
tree72393fe2f01315c7a1d0ba06659c057407b79595
parente997763fb6a6b5a6f11882e264a84a9f3f6f462b (diff)
python/python3-webencodings: Renamed to python3.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/python-webencodings/README12
-rw-r--r--python/python-webencodings/slack-desc19
-rw-r--r--python/python3-webencodings/README13
-rw-r--r--python/python3-webencodings/python3-webencodings.SlackBuild (renamed from python/python-webencodings/python-webencodings.SlackBuild)11
-rw-r--r--python/python3-webencodings/python3-webencodings.info (renamed from python/python-webencodings/python-webencodings.info)2
-rw-r--r--python/python3-webencodings/slack-desc19
6 files changed, 39 insertions, 37 deletions
diff --git a/python/python-webencodings/README b/python/python-webencodings/README
deleted file mode 100644
index c48004c0f24f5..0000000000000
--- 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 98757cc75c22d..0000000000000
--- 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 0000000000000..736e9a287048c
--- /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
index 3228d084257f5..5df0e7af8488a 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 <slackbuilds@jaxartes.net>
#
@@ -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
index addf43e15b97b..340d3d72dc5ad 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 0000000000000..2b41d21154aa4
--- /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: