wok-next diff hdf5/receipt @ rev 20488

palemoon: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 12 11:00:54 2018 +0100 (2018-03-12)
parents a8b48af89217
children 0ec6086e21d6
line diff
     1.1 --- a/hdf5/receipt	Tue Oct 17 12:19:34 2017 +0200
     1.2 +++ b/hdf5/receipt	Mon Mar 12 11:00:54 2018 +0100
     1.3 @@ -1,32 +1,34 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="hdf5"
     1.8  VERSION="1.8.9"
     1.9  CATEGORY="misc"
    1.10 -SHORT_DESC="a data model, library, and file format for storing and managing data."
    1.11 +SHORT_DESC="Data model, library, and file format for storing and managing data"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="BSD"
    1.14  WEB_SITE="http://www.hdfgroup.org/HDF5"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.17  WGET_URL="http://www.hdfgroup.org/ftp/HDF5/current/src/$TARBALL"
    1.18  
    1.19 -DEPENDS="zlib"
    1.20  BUILD_DEPENDS="cmake szip zlib-dev"
    1.21 +SPLIT="hdf5-dev"
    1.22  
    1.23 -# Rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{
    1.26 +compile_rules() {
    1.27  	sed -i 's|// .*|/* & */|' test/th5s.c tools/lib/h5tools_str.c
    1.28  	sed -i 's/Using_CMake.txt/USING_CMake.txt/' src/CMakeLists.txt
    1.29  	./configure $CONFIGURE_ARGS &&
    1.30  	make all && make DESTDIR=$DESTDIR install
    1.31  }
    1.32  
    1.33 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 -genpkg_rules()
    1.35 -{
    1.36 -	mkdir -p $fs/usr
    1.37 -	cp -a $install/usr/bin $fs/usr
    1.38 -	cp -a $install/usr/lib $fs/usr
    1.39 -	rm -f $fs/usr/lib/*a
    1.40 +genpkg_rules() {
    1.41 +	case $PACKAGE in
    1.42 +		hdf5)
    1.43 +			copy @std
    1.44 +			DEPENDS="zlib"
    1.45 +			;;
    1.46 +		*-dev)
    1.47 +			copy @dev
    1.48 +			;;
    1.49 +	esac
    1.50  }