wok-6.x annotate python-numpy/receipt @ rev 15360

python-numpy: hide conftest.c errors
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 01 17:16:06 2013 +0000 (2013-10-01)
parents 23674c6c3c84
children 16df76e1fc6a
rev   line source
claudinei@3411 1 # SliTaz package receipt.
claudinei@3411 2
claudinei@3411 3 PACKAGE="python-numpy"
claudinei@3411 4 SOURCE="numpy"
slaxemulator@7540 5 VERSION="1.5.1"
claudinei@3411 6 CATEGORY="development"
claudinei@3411 7 SHORT_DESC="scientific computing library for the Python."
claudinei@3411 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15360 9 LICENSE="BSD"
claudinei@3411 10 TARBALL="$SOURCE-$VERSION.tar.gz"
claudinei@3411 11 WEB_SITE="http://numpy.scipy.org/"
claudinei@3411 12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
pascal@15360 13
claudinei@3411 14 DEPENDS="python"
claudinei@3411 15 BUILD_DEPENDS="python python-dev"
claudinei@3411 16
claudinei@3411 17 # Rules to configure and make the package.
claudinei@3411 18 compile_rules()
claudinei@3411 19 {
claudinei@3411 20 cd $src
pascal@15360 21 {
claudinei@3411 22 python setup.py build &&
pascal@15360 23 python setup.py install --root=$DESTDIR
pascal@15360 24 } 2>&1 | grep -Ev '(conftest.c:|configtest.c:)'
claudinei@3411 25 }
claudinei@3411 26
claudinei@3411 27 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3411 28 genpkg_rules()
claudinei@3411 29 {
pascal@15360 30 cp -a $install/usr $fs
claudinei@3411 31 }
claudinei@3411 32
claudinei@3411 33 # Remove old package.
claudinei@3411 34 post_install()
claudinei@3411 35 {
claudinei@3411 36 rm -rf $1/var/lib/tazpkg/installed/numpy
pascal@6596 37 }