wok-current 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 d00dea30a0c9
children 191b99ca9dc2
files python-numpy/receipt tuxmath/receipt
line diff
     1.1 --- a/python-numpy/receipt	Tue Oct 01 16:47:11 2013 +0000
     1.2 +++ b/python-numpy/receipt	Tue Oct 01 17:16:06 2013 +0000
     1.3 @@ -6,9 +6,11 @@
     1.4  CATEGORY="development"
     1.5  SHORT_DESC="scientific computing library for the Python."
     1.6  MAINTAINER="pascal.bellard@slitaz.org"
     1.7 +LICENSE="BSD"
     1.8  TARBALL="$SOURCE-$VERSION.tar.gz"
     1.9  WEB_SITE="http://numpy.scipy.org/"
    1.10  WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
    1.11 +
    1.12  DEPENDS="python"
    1.13  BUILD_DEPENDS="python python-dev"
    1.14  
    1.15 @@ -16,14 +18,16 @@
    1.16  compile_rules()
    1.17  {
    1.18  	cd $src
    1.19 +	{
    1.20  	python setup.py build &&
    1.21 -	python setup.py install --root=$PWD/_pkg
    1.22 +	python setup.py install --root=$DESTDIR
    1.23 +	} 2>&1 | grep -Ev '(conftest.c:|configtest.c:)'
    1.24  }
    1.25  
    1.26  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.27  genpkg_rules()
    1.28  {
    1.29 -	cp -a $_pkg/usr $fs
    1.30 +	cp -a $install/usr $fs
    1.31  }
    1.32  
    1.33  # Remove old package.
     2.1 --- a/tuxmath/receipt	Tue Oct 01 16:47:11 2013 +0000
     2.2 +++ b/tuxmath/receipt	Tue Oct 01 17:16:06 2013 +0000
     2.3 @@ -6,6 +6,7 @@
     2.4  CATEGORY="games"
     2.5  SHORT_DESC="Arcade game that helps kids practice their math facts."
     2.6  MAINTAINER="claudinei@slitaz.org"
     2.7 +LICENSE="GPL3"
     2.8  TARBALL="$SOURCE-$VERSION.tar.gz"
     2.9  WEB_SITE="http://tux4kids.alioth.debian.org"
    2.10  WGET_URL="https://alioth.debian.org/frs/download.php/3571/$TARBALL"
    2.11 @@ -25,19 +26,19 @@
    2.12  		--prefix=/usr \
    2.13  		$CONFIGURE_ARGS &&
    2.14  	make &&
    2.15 -	make DESTDIR=$PWD/_pkg install
    2.16 +	make DESTDIR=$DESTDIR install
    2.17  }
    2.18  
    2.19  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.20  genpkg_rules()
    2.21  {
    2.22  	mkdir -p $fs/usr $fs/usr/share
    2.23 -	cp -a $_pkg/usr/bin $fs/usr
    2.24 -	cp -a $_pkg/usr/share/tuxmath $fs/usr/share
    2.25 +	cp -a $install/usr/bin $fs/usr
    2.26 +	cp -a $install/usr/share/tuxmath $fs/usr/share
    2.27  
    2.28  	for lang in de es fr pt_BR zh_CN; do
    2.29  		mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
    2.30 -		cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/tuxmath.mo \
    2.31 +		cp -a $install/usr/share/locale/$lang/LC_MESSAGES/tuxmath.mo \
    2.32  		        $fs/usr/share/locale/$lang/LC_MESSAGES
    2.33  	done
    2.34  }