wok-current annotate py3k-numpy/receipt @ rev 23758
librsvg: avoid using /usr/libgcc83/libstdc++.la
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 04 06:59:35 2020 +0100 (2020-05-04) |
parents | |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
Hans-G?nter@22552 | 1 # SliTaz package receipt. |
Hans-G?nter@22552 | 2 |
Hans-G?nter@22552 | 3 PACKAGE="py3k-numpy" |
Hans-G?nter@22552 | 4 VERSION="1.17.5" |
Hans-G?nter@22552 | 5 CATEGORY="development" |
Hans-G?nter@22552 | 6 SHORT_DESC="Scientific computing library for Python." |
Hans-G?nter@22552 | 7 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@22552 | 8 LICENSE="BSD" |
Hans-G?nter@22552 | 9 WEB_SITE="https://numpy.org/" |
Hans-G?nter@22552 | 10 |
Hans-G?nter@22552 | 11 SOURCE="numpy" |
Hans-G?nter@22552 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22552 | 13 WGET_URL="https://github.com/$SOURCE/$SOURCE/archive/v$VERSION.tar.gz" |
Hans-G?nter@22552 | 14 |
Hans-G?nter@22552 | 15 DEPENDS="gcc83-lib-base py3k" |
Hans-G?nter@22552 | 16 BUILD_DEPENDS="gcc83 py3k-dev py3k-cython" |
Hans-G?nter@22552 | 17 |
Hans-G?nter@22552 | 18 # Rules to configure and make the package. |
Hans-G?nter@22552 | 19 compile_rules() |
Hans-G?nter@22552 | 20 { |
Hans-G?nter@22552 | 21 export CC=gcc-83 |
Hans-G?nter@22552 | 22 export CXX=g++-83 |
Hans-G?nter@22552 | 23 |
Hans-G?nter@22552 | 24 { |
Hans-G?nter@22552 | 25 python3 setup.py build && |
Hans-G?nter@22552 | 26 python3 setup.py install --root=$DESTDIR |
Hans-G?nter@22552 | 27 } 2>&1 | grep -Ev '(conftest.c:|configtest.c:)' |
Hans-G?nter@22552 | 28 } |
Hans-G?nter@22552 | 29 |
Hans-G?nter@22552 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@22552 | 31 genpkg_rules() |
Hans-G?nter@22552 | 32 { |
Hans-G?nter@22552 | 33 cp -a $install/usr $fs |
Hans-G?nter@22552 | 34 } |
Hans-G?nter@22552 | 35 |
Hans-G?nter@22552 | 36 # Remove old package. |
Hans-G?nter@22552 | 37 post_install() |
Hans-G?nter@22552 | 38 { |
Hans-G?nter@22552 | 39 [ ! -d "$1/var/lib/tazpkg/installed/numpy" ] || |
Hans-G?nter@22552 | 40 rm -rf "$1/var/lib/tazpkg/installed/numpy" |
Hans-G?nter@22552 | 41 } |