diff options
Diffstat (limited to 'python/numexpr')
-rw-r--r-- | python/numexpr/numexpr.SlackBuild | 41 | ||||
-rw-r--r-- | python/numexpr/numexpr.info | 12 |
2 files changed, 27 insertions, 26 deletions
diff --git a/python/numexpr/numexpr.SlackBuild b/python/numexpr/numexpr.SlackBuild index e843ed707d..a0ecccc5e4 100644 --- a/python/numexpr/numexpr.SlackBuild +++ b/python/numexpr/numexpr.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for numexpr # Copyright 2010-2015 LukenShiro, Italy +# Copyright 2019 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -11,25 +12,25 @@ # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=numexpr -VERSION=${VERSION:-2.4.6} +VERSION=${VERSION:-2.7.0} BUILD=${BUILD:-1} 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 @@ -40,8 +41,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -54,15 +55,13 @@ else LIBDIRSUFFIX="" fi -DOCFILES="ANNOUNCE.rst AUTHORS.txt INSTALL.rst LICENSE.txt README.rst RELEASE_NOTES.rst" - set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -71,14 +70,16 @@ 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 {} \; -python setup.py build install --root=$PKG +python2 setup.py install --root=$PKG +python3 setup.py install --root=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -# Move docs to avoid file duplication mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -mv $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION/ +cp -a \ + ANNOUNCE.rst AUTHORS.txt INSTALL.rst LICENSE.txt README.rst RELEASE_NOTES.rst \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/python/numexpr/numexpr.info b/python/numexpr/numexpr.info index 29db9e5bcc..360eb6fc8d 100644 --- a/python/numexpr/numexpr.info +++ b/python/numexpr/numexpr.info @@ -1,10 +1,10 @@ PRGNAM="numexpr" -VERSION="2.4.6" +VERSION="2.7.0" HOMEPAGE="https://github.com/pydata/numexpr" -DOWNLOAD="https://pypi.python.org/packages/source/n/numexpr/numexpr-2.4.6.tar.gz" -MD5SUM="17ac6fafc9ea1ce3eb970b9abccb4fbd" +DOWNLOAD="https://pypi.python.org/packages/source/n/numexpr/numexpr-2.7.0.tar.gz" +MD5SUM="8f56da94ef2348be23ed9836f32bcf9b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="numpy" -MAINTAINER="LukenShiro" -EMAIL="lukenshiro@ngi.it" +REQUIRES="numpy numpy3" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="slackbuilds@jaxartes.net" |