aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorisaackwy <isaacyu@protonmail.com>2024-07-01 20:53:34 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-07-02 12:57:33 +0700
commite758b6cc692b005d3167709b15d800d615db1560 (patch)
tree590ac8d3ce580117071a7e96635354696186aa3a /python
parent3b41a587c9577fa36746e90b61834bbdf90203d1 (diff)
python/munch: Update for 4.0.0 (+new maintainer)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r--python/munch/README2
-rw-r--r--python/munch/munch.SlackBuild23
-rw-r--r--python/munch/munch.info12
3 files changed, 11 insertions, 26 deletions
diff --git a/python/munch/README b/python/munch/README
index 7826fec661..42ddc061a3 100644
--- a/python/munch/README
+++ b/python/munch/README
@@ -1,5 +1,3 @@
Munch implements a Python dictionary that provides attribute-style
access (a la JavaScript objects). Munch is a fork of David Schoonover's
Bunch package.
-
-Munch will make use PyYAML and python3-PyYAML if they are installed.
diff --git a/python/munch/munch.SlackBuild b/python/munch/munch.SlackBuild
index 4a2b27b91e..ddeda23ee0 100644
--- a/python/munch/munch.SlackBuild
+++ b/python/munch/munch.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for munch
# Copyright 2016-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
+# Copyright 2024 Isaac Yu <isaacyu@protonmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=munch
-VERSION=${VERSION:-2.5.0}
+VERSION=${VERSION:-4.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -50,20 +48,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf $PKG
@@ -79,6 +63,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages/
+
python3 setup.py install --root=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/python/munch/munch.info b/python/munch/munch.info
index 74bbe7886f..daf79e95b4 100644
--- a/python/munch/munch.info
+++ b/python/munch/munch.info
@@ -1,10 +1,10 @@
PRGNAM="munch"
-VERSION="2.5.0"
+VERSION="4.0.0"
HOMEPAGE="https://github.com/Infinidat/munch"
-DOWNLOAD="https://files.pythonhosted.org/packages/source/m/munch/munch-2.5.0.tar.gz"
-MD5SUM="ed84c3718416c8d4d03d0a6ef46e8e0c"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/m/munch/munch-4.0.0.tar.gz"
+MD5SUM="4e70cf760e3b81dcaa6050803c1dbd72"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python2-pbr"
-MAINTAINER="Benjamin Trigona-Harany"
-EMAIL="slackbuilds@jaxartes.net"
+REQUIRES="python3-setuptools-opt"
+MAINTAINER="Isaac Yu"
+EMAIL="isaacyu@protonmail.com"