wok-next diff libxml2/receipt @ rev 19735

Update some more receipts to v2: coreutils, attr, libpng16 (former libpng), libpng12, libwebp, libxml2.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 27 16:55:17 2017 +0300 (2017-05-27)
parents 4eab61ea2c5a
children 9610a0d739a2
line diff
     1.1 --- a/libxml2/receipt	Sat Jan 21 11:59:37 2017 +0200
     1.2 +++ b/libxml2/receipt	Sat May 27 16:55:17 2017 +0300
     1.3 @@ -1,9 +1,9 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="libxml2"
     1.8  VERSION="2.9.4"
     1.9  CATEGORY="system-tools"
    1.10 -SHORT_DESC="Libxml2 is the XML C parser and toolkit."
    1.11 +SHORT_DESC="XML C parser and toolkit"
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13  LICENSE="MIT"
    1.14  WEB_SITE="http://xmlsoft.org/"
    1.15 @@ -12,19 +12,15 @@
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17  WGET_URL="ftp://xmlsoft.org/libxml2/$TARBALL"
    1.18  
    1.19 -DEPENDS="zlib liblzma"
    1.20  BUILD_DEPENDS="zlib-dev liblzma-dev python-dev ncurses-dev readline-dev"
    1.21 -# autoconf automake libtool
    1.22 +BUILD_DEPENDS_arm=" "
    1.23  SPLIT="libxml2-tools libxml2-python libxml2-dev"
    1.24  
    1.25  # When cross compiling Python is installed in chroot and is used
    1.26 -# by cross tools, cook dont need to install it in /usr/cross/arm
    1.27 +# by cross tools, cook don't need to install it in /usr/cross/arm
    1.28  # Building with LZMA support is buggy and build fails
    1.29  case "$ARCH" in
    1.30 -	arm)
    1.31 -		BUILD_DEPENDS=""
    1.32 -		DEPENDS="zlib"
    1.33 -		ARCH_ARGS="--without-lzma" ;;
    1.34 +	arm) ARCH_ARGS="--without-lzma" ;;
    1.35  esac
    1.36  
    1.37  # Rules to configure and make the package.
    1.38 @@ -49,5 +45,26 @@
    1.39  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.40  genpkg_rules()
    1.41  {
    1.42 -	cook_copy_files libxml2.so*
    1.43 +	case $PACKAGE in
    1.44 +		libxml2)
    1.45 +			copy libxml2.so*
    1.46 +			DEPENDS="zlib liblzma"
    1.47 +			case "$ARCH" in
    1.48 +				arm) DEPENDS="zlib" ;;
    1.49 +			esac
    1.50 +			;;
    1.51 +		libxml2-tools)
    1.52 +			copy xmllint xmlcatalog
    1.53 +			CAT="system-tools|xmllint tester and xmlcatalog parser utility"
    1.54 +			;;
    1.55 +		libxml2-python)
    1.56 +			copy python2.7/; find $fs -name '*.la' -delete
    1.57 +			CAT="development|adapter for the Python"
    1.58 +			DEPENDS="python libxml2 libxslt"
    1.59 +			;;
    1.60 +		libxml2-dev)
    1.61 +			copy @dev *.sh
    1.62 +			DEPENDS="libxml2-tools pkg-config   zlib-dev liblzma-dev"
    1.63 +			;;
    1.64 +	esac
    1.65  }