wok-next diff python-ecore/receipt @ rev 20636

Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 27 15:12:17 2018 +0300 (2018-04-27)
parents 16df76e1fc6a
children
line diff
     1.1 --- a/python-ecore/receipt	Fri May 22 17:34:18 2015 +0300
     1.2 +++ b/python-ecore/receipt	Fri Apr 27 15:12:17 2018 +0300
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="python-ecore"
     1.8  VERSION="1.7.0"
     1.9 @@ -6,26 +6,31 @@
    1.10  SHORT_DESC="Python bindings for ecore"
    1.11  MAINTAINER="domcox@slitaz.org"
    1.12  LICENSE="LGPL2.1"
    1.13 +WEB_SITE="http://www.enlightenment.org/"
    1.14 +
    1.15  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.16 -WEB_SITE="http://www.enlightenment.org/"
    1.17  WGET_URL="git|git://git.enlightenment.org/legacy/bindings/python/$PACKAGE.git"
    1.18 -TAGS="e enlightenment efl python"
    1.19  
    1.20 -DEPENDS="ecore"
    1.21  BUILD_DEPENDS="ecore-dev python-dev python-cython autoconf automake git \
    1.22  subversion libtool"
    1.23 +SPLIT="python-ecore-dev"
    1.24  
    1.25 -# Rules to configure and make the package.
    1.26 -compile_rules()
    1.27 -{
    1.28 +compile_rules() {
    1.29  	./autogen.sh &&
    1.30  	./configure --prefix=/usr &&
    1.31  	make all && make install
    1.32  }
    1.33  
    1.34 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 -genpkg_rules()
    1.36 -{
    1.37 -	mkdir -p $fs/usr/lib
    1.38 -	cp -a $install/usr/lib/python2.7 $fs/usr/lib
    1.39 +genpkg_rules() {
    1.40 +	case $PACKAGE in
    1.41 +		python-ecore)
    1.42 +			copy @std
    1.43 +			DEPENDS="ecore"
    1.44 +			TAGS="e enlightenment efl python"
    1.45 +			;;
    1.46 +		*-dev)
    1.47 +			copy @dev
    1.48 +			DEPENDS="python-ecore ecore-dev python-dev"
    1.49 +			;;
    1.50 +	esac
    1.51  }