wok-next diff yaml/receipt @ rev 20534

Clean default configure options when site script used.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 30 19:31:50 2018 +0300 (2018-03-30)
parents 617dbdeb6f7e
children 10df65db91ad
line diff
     1.1 --- a/yaml/receipt	Wed Oct 02 13:07:29 2013 +0000
     1.2 +++ b/yaml/receipt	Fri Mar 30 19:31:50 2018 +0300
     1.3 @@ -1,28 +1,25 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="yaml"
     1.8 -VERSION="0.1.4"
     1.9 +VERSION="0.1.7"
    1.10  CATEGORY="system-tools"
    1.11 -SHORT_DESC="YAML 1.1 parser and emitter written in C."
    1.12 +SHORT_DESC="YAML 1.1 parser and emitter written in C"
    1.13  MAINTAINER="erjo@slitaz.org"
    1.14  LICENSE="CC-BY"
    1.15  WEB_SITE="http://pyyaml.org/wiki/LibYAML"
    1.16 +
    1.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.18  WGET_URL="http://pyyaml.org/download/libyaml/$TARBALL"
    1.19  
    1.20 -DEPENDS=""
    1.21 -BUILD_DEPENDS=""
    1.22 +SPLIT="yaml-dev"
    1.23  
    1.24 -# Rules to configure and make the package.
    1.25 -compile_rules()
    1.26 -{
    1.27 -	cd $src
    1.28 +compile_rules() {
    1.29  	./configure $CONFIGURE_ARGS && make && make install
    1.30  }
    1.31  
    1.32 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.33 -genpkg_rules()
    1.34 -{
    1.35 -	mkdir -p $fs/usr/lib
    1.36 -	cp -a $install/usr/lib/*.so*  $fs/usr/lib
    1.37 +genpkg_rules() {
    1.38 +	case $PACKAGE in
    1.39 +		yaml)  copy @std;;
    1.40 +		*-dev) copy @dev;;
    1.41 +	esac
    1.42  }