aboutsummaryrefslogtreecommitdiff
path: root/libraries/PrettyTable
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2020-02-21 08:18:40 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-24 06:10:04 +0700
commitea50cd0168a4f1204090ad2400e6444d3ea267b8 (patch)
tree457093a1e7c7a76fb03edce1350d98c173509bc4 /libraries/PrettyTable
parent8d3747dc7bc6e40a40a22edef39b0f14e1caeb4a (diff)
libraries/PrettyTable: Added support python3.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'libraries/PrettyTable')
-rw-r--r--libraries/PrettyTable/PrettyTable.SlackBuild9
-rw-r--r--libraries/PrettyTable/PrettyTable.info2
-rw-r--r--libraries/PrettyTable/slack-desc2
3 files changed, 9 insertions, 4 deletions
diff --git a/libraries/PrettyTable/PrettyTable.SlackBuild b/libraries/PrettyTable/PrettyTable.SlackBuild
index 6e4762dafbd8f..d4e1ecd2f4c0c 100644
--- a/libraries/PrettyTable/PrettyTable.SlackBuild
+++ b/libraries/PrettyTable/PrettyTable.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for PrettyTable
-# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2014-2020 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
PRGNAM=PrettyTable
SRCNAM=prettytable
VERSION=${VERSION:-0.7.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -72,6 +72,11 @@ find -L . \
python setup.py install --root=$PKG
+# Python 3 support.
+if $(python3 -c 'import sys' 2>/dev/null); then
+ python3 setup.py install --root=$PKG
+fi
+
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
diff --git a/libraries/PrettyTable/PrettyTable.info b/libraries/PrettyTable/PrettyTable.info
index ac00e3615a5a2..dd98ba30643aa 100644
--- a/libraries/PrettyTable/PrettyTable.info
+++ b/libraries/PrettyTable/PrettyTable.info
@@ -1,6 +1,6 @@
PRGNAM="PrettyTable"
VERSION="0.7.2"
-HOMEPAGE="https://github.com/dprince/python-prettytable"
+HOMEPAGE="https://pypi.org/project/PrettyTable/"
DOWNLOAD="https://pypi.python.org/packages/e0/a1/36203205f77ccf98f3c6cf17cf068c972e6458d7e58509ca66da949ca347/prettytable-0.7.2.tar.gz"
MD5SUM="a6b80afeef286ce66733d54a0296b13b"
DOWNLOAD_x86_64=""
diff --git a/libraries/PrettyTable/slack-desc b/libraries/PrettyTable/slack-desc
index 2a70ed46613cb..d8f0931400a25 100644
--- a/libraries/PrettyTable/slack-desc
+++ b/libraries/PrettyTable/slack-desc
@@ -12,7 +12,7 @@ PrettyTable: PrettyTable is a simple Python library designed to make it quick
PrettyTable: and easy to represent tabular data in visually appealing ASCII
PrettyTable: tables.
PrettyTable:
-PrettyTable: Homepage: https://github.com/dprince/python-prettytable
+PrettyTable: Homepage: https://pypi.org/project/PrettyTable/
PrettyTable:
PrettyTable:
PrettyTable: