wok-next rev 20024

Up tesseract-ocr (3.05.01)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 22 12:39:31 2017 +0200 (2017-10-22)
parents b4441f9675df
children 6135ee35de3e
files tesseract-ocr-dev/receipt tesseract-ocr/receipt
line diff
     1.1 --- a/tesseract-ocr-dev/receipt	Sun Oct 22 12:23:02 2017 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,21 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="tesseract-ocr-dev"
     1.7 -VERSION="3.02.02"
     1.8 -CATEGORY="development"
     1.9 -SHORT_DESC="The most accurate open source OCR engine available, development files."
    1.10 -MAINTAINER="pascal.bellard@slitaz.org"
    1.11 -LICENSE="Apache"
    1.12 -WEB_SITE="http://code.google.com/p/tesseract-ocr/"
    1.13 -WANTED="tesseract-ocr"
    1.14 -
    1.15 -DEPENDS="tesseract-ocr"
    1.16 -
    1.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 -genpkg_rules()
    1.19 -{
    1.20 -	mkdir -p $fs/usr/lib
    1.21 -	cp -a $install/usr/include $fs/usr
    1.22 -	cp -a $install/usr/lib/*a $fs/usr/lib
    1.23 -	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.24 -}
     2.1 --- a/tesseract-ocr/receipt	Sun Oct 22 12:23:02 2017 +0200
     2.2 +++ b/tesseract-ocr/receipt	Sun Oct 22 12:39:31 2017 +0200
     2.3 @@ -1,18 +1,18 @@
     2.4 -# SliTaz package receipt.
     2.5 +# SliTaz package receipt v2.
     2.6  
     2.7  PACKAGE="tesseract-ocr"
     2.8 -VERSION="3.02.02"
     2.9 +VERSION="3.05.01"
    2.10  CATEGORY="office"
    2.11  SHORT_DESC="The most accurate open source OCR engine available."
    2.12  MAINTAINER="pascal.bellard@slitaz.org"
    2.13  LICENSE="Apache"
    2.14  WEB_SITE="http://code.google.com/p/tesseract-ocr/"
    2.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.16 -WGET_URL="http://$PACKAGE.googlecode.com/files/$TARBALL"
    2.17 +WGET_URL="https://github.com/tesseract-ocr/tesseract/archive/$VERSION.tar.gz"
    2.18  
    2.19 -DEPENDS="leptonica libpng jpeg tiff giflib"
    2.20  BUILD_DEPENDS="libtool autoconf automake libpng-dev jpeg-dev tiff-dev \
    2.21  giflib-dev zlib-dev icu-dev pango-dev cairo-dev leptonica-dev"
    2.22 +SPLIT="tesseract-ocr tesseract-ocr-dev"
    2.23  
    2.24  # Rules to configure and make the package.
    2.25  compile_rules()
    2.26 @@ -27,9 +27,22 @@
    2.27  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.28  genpkg_rules()
    2.29  {
    2.30 -	mkdir -p $fs/usr/lib
    2.31 -	cp -a $install/usr/bin $fs/usr
    2.32 -	cp -a $install/usr/share $fs/usr
    2.33 -	rm -rf $fs/usr/share/man
    2.34 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.35 +	case $PACKAGE in
    2.36 +	tesseract-ocr)
    2.37 +		DEPENDS="leptonica libpng jpeg tiff giflib"
    2.38 +		mkdir -p $fs/usr/lib
    2.39 +		cp -a $install/usr/bin $fs/usr
    2.40 +		cp -a $install/usr/share $fs/usr
    2.41 +		rm -rf $fs/usr/share/man
    2.42 +		cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.43 +		;;
    2.44 +	tesseract-ocr-dev)
    2.45 +		CAT="development|The most accurate open source OCR engine available, development files."
    2.46 +		DEPENDS="tesseract-ocr"
    2.47 +		mkdir -p $fs/usr/lib
    2.48 +		cp -a $install/usr/include $fs/usr
    2.49 +		cp -a $install/usr/lib/*a $fs/usr/lib
    2.50 +		cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    2.51 +		;;
    2.52 +	esac
    2.53  }
    2.54 \ No newline at end of file