libraries/configobj: Updated for version 5.0.6, python3 support.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
091380b423
commit
a31fe40dd0
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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=""
|
||||
|
|
Loading…
Reference in New Issue