aboutsummaryrefslogtreecommitdiff
path: root/libraries/configobj
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-01-17 22:24:25 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-18 12:25:23 +0700
commita31fe40dd0217a1172b8d8f15c3ad956b2f18547 (patch)
tree0f94991ec571a221260e1c774c1a4b5ff6ac7645 /libraries/configobj
parent091380b423842070b5ad8d5a8a87eb229fba84e6 (diff)
libraries/configobj: Updated for version 5.0.6, python3 support.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/configobj')
-rw-r--r--libraries/configobj/README5
-rw-r--r--libraries/configobj/configobj.SlackBuild18
-rw-r--r--libraries/configobj/configobj.info8
3 files changed, 19 insertions, 12 deletions
diff --git a/libraries/configobj/README b/libraries/configobj/README
index 218d6240a17c7..38f6ea522a14a 100644
--- a/libraries/configobj/README
+++ b/libraries/configobj/README
@@ -1,2 +1,7 @@
+configobj (configuration file python module)
+
A python module for ultra simple handling of configuration files.
Also useful for human readable data persistence. Flexible and simple.
+
+Optional dependency: if python3 is installed, the configobj package will
+contain the python3 module.
diff --git a/libraries/configobj/configobj.SlackBuild b/libraries/configobj/configobj.SlackBuild
index b6e12fbb28492..155ef66a64721 100644
--- a/libraries/configobj/configobj.SlackBuild
+++ b/libraries/configobj/configobj.SlackBuild
@@ -5,6 +5,8 @@
# Written by Luis Henrique <lmello.009@gmail.com>
# Modified by B. Watson <yalhcru@gmail.com>
+
+# 20200117 bkw: update for v5.0.6
# 20140915 bkw:
# - Took over maintenance
# - Exclude __MACOSX dir from unzip command
@@ -12,7 +14,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=configobj
-VERSION=${VERSION:-4.7.2}
+VERSION=${VERSION:-5.0.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -38,19 +40,19 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-unzip $CWD/$PRGNAM-$VERSION.zip -x __MACOSX/\*
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
python setup.py install --root=$PKG
+which python3 &> /dev/null && python3 setup.py install --root=$PKG
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION
+[ -d docs ] && cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/libraries/configobj/configobj.info b/libraries/configobj/configobj.info
index eff8829da0408..ce83c43e7ac1b 100644
--- a/libraries/configobj/configobj.info
+++ b/libraries/configobj/configobj.info
@@ -1,8 +1,8 @@
PRGNAM="configobj"
-VERSION="4.7.2"
-HOMEPAGE="http://www.voidspace.org.uk/python/modules.shtml#configobj"
-DOWNLOAD="http://www.voidspace.org.uk/downloads/configobj-4.7.2.zip"
-MD5SUM="51cee395cfbf831339b03f72706de18e"
+VERSION="5.0.6"
+HOMEPAGE="https://pypi.org/project/configobj/"
+DOWNLOAD="https://files.pythonhosted.org/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz"
+MD5SUM="e472a3a1c2a67bb0ec9b5d54c13a47d6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""