svn commit: r487769 - in head/graphics: . p5-Image-OCR-Tesseract

Dan Langille dvl at FreeBSD.org
Tue Dec 18 20:27:21 UTC 2018


> On Dec 18, 2018, at 3:18 PM, Dan Langille <dvl at freebsd.org> wrote:
> 
> Author: dvl
> Date: Tue Dec 18 20:18:05 2018
> New Revision: 487769
> URL: https://svnweb.freebsd.org/changeset/ports/487769
> 
> Log:
>  Add graphics/p5-Image-OCR-Tesseract
> 
>  perform ocr on an image and output text to stdout
> 
> Added:
>  head/graphics/p5-Image-OCR-Tesseract/
>  head/graphics/p5-Image-OCR-Tesseract/Makefile   (contents, props changed)
>  head/graphics/p5-Image-OCR-Tesseract/distinfo   (contents, props changed)
>  head/graphics/p5-Image-OCR-Tesseract/pkg-descr   (contents, props changed)
>  head/graphics/p5-Image-OCR-Tesseract/pkg-plist   (contents, props changed)
> Modified:
>  head/graphics/Makefile
> 
> Modified: head/graphics/Makefile
> ==============================================================================
> --- head/graphics/Makefile	Tue Dec 18 20:12:33 2018	(r487768)
> +++ head/graphics/Makefile	Tue Dec 18 20:18:05 2018	(r487769)
> @@ -763,6 +763,7 @@
>     SUBDIR += p5-Image-Math-Constrain
>     SUBDIR += p5-Image-MetaData-GQview
>     SUBDIR += p5-Image-MetaData-JPEG
> +    SUBDIR += p5-Image-OCR-Tesseract
>     SUBDIR += p5-Image-ObjectDetect
>     SUBDIR += p5-Image-PBMlib
>     SUBDIR += p5-Image-PNG-Libpng
> 
> Added: head/graphics/p5-Image-OCR-Tesseract/Makefile
> ==============================================================================
> --- /dev/null	00:00:00 1970	(empty, because file is newly added)
> +++ head/graphics/p5-Image-OCR-Tesseract/Makefile	Tue Dec 18 20:18:05 2018	(r487769)
> @@ -0,0 +1,25 @@
> +# $FreeBSD$
> +
> +PORTNAME=	Image-OCR-Tesseract
> +PORTVERSION=	1.24
> +CATEGORIES=	graphics perl5
> +MASTER_SITES=	CPAN
> +MASTER_SITE_SUBDIR=	CPAN:LEOCHARRE
> +PKGNAMEPREFIX=	p5-
> +
> +MAINTAINER=	dvl at FreeBSD.org
> +COMMENT=	Read an image with Resseract OCR and get output
> +
> +LICENSE=	GPLv3
> +
> +MYDEPENDS=	tesseract>0:graphics/tesseract \
> +		ImageMagick6-nox11>0:graphics/ImageMagick6-nox11

That should be MY_DEPENDS.

I will fix.  Sorry.

> +BUILD_DEPENDS=	${MY_DEPENDS}
> +RUN_DEPENDS=	${MY_DEPENDS}
> +
> +USES=		perl5
> +USE_PERL5=	configure
> +
> +NO_ARCH=	yes
> +
> +.include <bsd.port.mk>
> 
> Added: head/graphics/p5-Image-OCR-Tesseract/distinfo
> ==============================================================================
> --- /dev/null	00:00:00 1970	(empty, because file is newly added)
> +++ head/graphics/p5-Image-OCR-Tesseract/distinfo	Tue Dec 18 20:18:05 2018	(r487769)
> @@ -0,0 +1,3 @@
> +TIMESTAMP = 1545145985
> +SHA256 (Image-OCR-Tesseract-1.24.tar.gz) = cd3428eb2aa9d12154bafbaa89e3d32f41a7b3c6c63884b80857643ca1431262
> +SIZE (Image-OCR-Tesseract-1.24.tar.gz) = 1468013
> 
> Added: head/graphics/p5-Image-OCR-Tesseract/pkg-descr
> ==============================================================================
> --- /dev/null	00:00:00 1970	(empty, because file is newly added)
> +++ head/graphics/p5-Image-OCR-Tesseract/pkg-descr	Tue Dec 18 20:18:05 2018	(r487769)
> @@ -0,0 +1,17 @@
> +Provides a perl interface to tesseract.
> +
> +This is just an interface to make it quick an easy to get ocr output from an
> +image file. No matter what image type you provide, imagemagick convert is
> +called to turn it into the format for tesseract
> +
> +Also accepts any image input- takes care of converting your imput image to a
> +tiff to the required specs, without changing the original.
> +
> +Example usage:
> +
> +ocr ./image.jpg > ./savetext.txt
> +ocr ./image.png
> +ocr ./image1.jpg ./image2.jpg > ./alltext.txt
> +ocr ./image*jpg
> +
> +WWW: https://metacpan.org/release/LEOCHARRE/Image-OCR-Tesseract-1.24
> 
> Added: head/graphics/p5-Image-OCR-Tesseract/pkg-plist
> ==============================================================================
> --- /dev/null	00:00:00 1970	(empty, because file is newly added)
> +++ head/graphics/p5-Image-OCR-Tesseract/pkg-plist	Tue Dec 18 20:18:05 2018	(r487769)
> @@ -0,0 +1,5 @@
> +bin/ocr
> +%%SITE_PERL%%/Image/OCR/Tesseract.pm
> +%%SITE_PERL%%/Image/OCR/Tesseract.pod
> +%%PERL5_MAN1%%/ocr.1.gz
> +%%PERL5_MAN3%%/Image::OCR::Tesseract.3.gz
> _______________________________________________
> svn-ports-head at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-ports-head
> To unsubscribe, send any mail to "svn-ports-head-unsubscribe at freebsd.org"



More information about the svn-ports-all mailing list