diff options
-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 390479b2e892c..e18377fb96a56 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 dad8a10905cb8..583ea5152841f 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 94edd5b155e27..aad9325d3886f 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 bbc352eb1396a..bbc352eb1396a 100644 --- a/libraries/simplegeneric/slack-desc +++ b/python/simplegeneric/slack-desc |