wok diff tesseract-ocr/receipt @ rev 25563

Up openssh (9.3p1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 06 08:42:03 2023 +0000 (18 months ago)
parents e717a4953b0e
children 0262035dc1e7
line diff
     1.1 --- a/tesseract-ocr/receipt	Mon May 02 16:22:04 2022 +0000
     1.2 +++ b/tesseract-ocr/receipt	Sat May 06 08:42:03 2023 +0000
     1.3 @@ -1,18 +1,19 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="tesseract-ocr"
     1.7 -VERSION="3.02.02"
     1.8 +VERSION="5.2.0"
     1.9  CATEGORY="office"
    1.10  SHORT_DESC="The most accurate open source OCR engine available."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="Apache"
    1.13  WEB_SITE="https://github.com/tesseract-ocr/tesseract"
    1.14 +
    1.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 -WGET_URL="https://github.com/tesseract-ocr/tesseract/archive/refs/tags/$VERSION.tar.gz"
    1.17 +WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
    1.18  
    1.19 -DEPENDS="leptonica libpng jpeg tiff giflib"
    1.20 -BUILD_DEPENDS="libtool autoconf automake libpng-dev jpeg-dev tiff-dev \
    1.21 -giflib-dev zlib-dev icu-dev pango-dev cairo-dev leptonica-dev"
    1.22 +DEPENDS="gcc83-lib-base giflib jpeg leptonica libpng tiff"
    1.23 +BUILD_DEPENDS="autoconf automake cairo-dev gcc83 giflib-dev icu-dev jpeg-dev
    1.24 +	leptonica-dev libpng-dev libtool pango-dev tiff-dev zlib-dev"
    1.25  
    1.26  # What is the latest version available today?
    1.27  current_version()
    1.28 @@ -24,19 +25,24 @@
    1.29  # Rules to configure and make the package.
    1.30  compile_rules()
    1.31  {
    1.32 -	./autogen.sh
    1.33 -	./configure \
    1.34 -		--prefix=/usr \
    1.35 +	# 5.2.0 avoid undefined symbol: GOMP_parallel	at runtime
    1.36 +	# by disable-openmp
    1.37 +
    1.38 +	./autogen.sh &&
    1.39 +	./configure			\
    1.40 +		CC=gcc-83		\
    1.41 +		CXX=g++-83		\
    1.42 +		--prefix=/usr		\
    1.43 +		--disable-openmp	\
    1.44  		$CONFIGURE_ARGS &&
    1.45 -	make && make install
    1.46 +	make &&
    1.47 +	make install
    1.48  }
    1.49  
    1.50  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.51  genpkg_rules()
    1.52  {
    1.53 -	mkdir -p $fs/usr/lib
    1.54 -	cp -a $install/usr/bin $fs/usr
    1.55 -	cp -a $install/usr/share $fs/usr
    1.56 -	rm -rf $fs/usr/share/man
    1.57 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.58 +	cook_copy_folders	bin
    1.59 +	cook_copy_folders	tessdata
    1.60 +	cook_copy_files		*.so*
    1.61  }
    1.62 \ No newline at end of file