Browse Source

d/cython: Upgraded to cython-0.29.14.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
a6264af04e
  1. 1
      d/cython/Cython-0.25.2.tar.gz.sha256
  2. 1
      d/cython/Cython-0.29.14.tar.gz.sha256
  3. 27
      d/cython/cython.SlackBuild

1
d/cython/Cython-0.25.2.tar.gz.sha256

@ -1 +0,0 @@
f141d1f9c27a07b5a93f7dc5339472067e2d7140d1c5a9e20112a5665ca60306 Cython-0.25.2.tar.gz

1
d/cython/Cython-0.29.14.tar.gz.sha256

@ -0,0 +1 @@
e4d6bb8703d0319eb04b7319b12ea41580df44fd84d83ccda13ea463c6801414 Cython-0.29.14.tar.gz

27
d/cython/cython.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2012,2013,2015-2017 Damien Goutte-Gattat
# Copyright (C) 2012,2013,2015-2017,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -26,9 +26,8 @@
# Source package infos
NAMESRC=${NAMESRC:-Cython}
VERSION=${VERSION:-0.25.2}
VERSION=${VERSION:-0.29.14}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/b7/67/7e2a817f9e9c773ee3995c1e15204f5d01c8da71882016cac10342ef031b/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-cython}
@ -56,14 +55,12 @@ if [ ! -d $TMP ]; then
fi
# Compilation flags
LIBDIRSUFFIX=""
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIBDIRSUFFIX="64"
;;
*)
CPUOPT="-O2"
@ -72,8 +69,7 @@ esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -85,17 +81,24 @@ tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py install --root=$PKG
for f in cygdb cythonize cython ; do
mv $PKG/usr/bin/$f $PKG/usr/bin/$f-2.7
done
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python3 setup.py build
python3 setup.py install --root=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 CHANGES.rst COPYING.txt LICENSE.txt PKG-INFO README.txt \
ToDo.txt USAGE.txt $PKG/usr/doc/$NAME
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CHANGES.rst COPYING.txt LICENSE.txt README.rst \
ToDo.txt USAGE.txt $PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save