aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <slackbuilds@jaxartes.net>2017-04-09 09:37:48 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-09 09:41:49 +0700
commit6e118364df72ef162554a75c6432b7de1b9fcb86 (patch)
tree694ac392e49cb64a0dfa33e477c0e8c57489b074
parent9e2a149a6a37dcfe957f1dab3accf25c242bd675 (diff)
python/simplegeneric: Updated for version 0.8.1 (moved from libs).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/simplegeneric/README (renamed from libraries/simplegeneric/README)2
-rw-r--r--python/simplegeneric/simplegeneric.SlackBuild (renamed from libraries/simplegeneric/simplegeneric.SlackBuild)8
-rw-r--r--python/simplegeneric/simplegeneric.info (renamed from libraries/simplegeneric/simplegeneric.info)4
-rw-r--r--python/simplegeneric/slack-desc (renamed from libraries/simplegeneric/slack-desc)0
4 files changed, 11 insertions, 3 deletions
diff --git a/libraries/simplegeneric/README b/python/simplegeneric/README
index 390479b2e892..e18377fb96a5 100644
--- a/libraries/simplegeneric/README
+++ b/python/simplegeneric/README
@@ -1,3 +1,5 @@
The simplegeneric module lets you define simple single-dispatch
generic functions, akin to Python's built-in generic functions like
len(), iter() and so on.
+
+Python 3 support will be included if python3 is installed.
diff --git a/libraries/simplegeneric/simplegeneric.SlackBuild b/python/simplegeneric/simplegeneric.SlackBuild
index dad8a10905cb..583ea5152841 100644
--- a/libraries/simplegeneric/simplegeneric.SlackBuild
+++ b/python/simplegeneric/simplegeneric.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for simplegeneric
# Copyright 2012 Mikko Värri, Finland
+# Copyright 2017 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -29,7 +30,7 @@ TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -57,6 +58,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
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.txt PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/libraries/simplegeneric/simplegeneric.info b/python/simplegeneric/simplegeneric.info
index 94edd5b155e2..aad9325d3886 100644
--- a/libraries/simplegeneric/simplegeneric.info
+++ b/python/simplegeneric/simplegeneric.info
@@ -6,5 +6,5 @@ MD5SUM="f9c1fab00fd981be588fc32759f474e3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Mikko Värri"
-EMAIL="vmj@linuxbox.fi"
+MAINTAINER="Benjamin Trigona-Harany"
+EMAIL="slackbuilds@jaxartes.net"
diff --git a/libraries/simplegeneric/slack-desc b/python/simplegeneric/slack-desc
index bbc352eb1396..bbc352eb1396 100644
--- a/libraries/simplegeneric/slack-desc
+++ b/python/simplegeneric/slack-desc