From owner-svn-ports-head@freebsd.org Sun Dec 31 18:59:37 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D6A00EA1D1B; Sun, 31 Dec 2017 18:59:37 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B08787ECA2; Sun, 31 Dec 2017 18:59:37 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBVIxa71087090; Sun, 31 Dec 2017 18:59:36 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBVIxaKZ087085; Sun, 31 Dec 2017 18:59:36 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201712311859.vBVIxaKZ087085@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sun, 31 Dec 2017 18:59:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r457713 - in head/textproc: . pdfsandwich pdfsandwich/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/textproc: . pdfsandwich pdfsandwich/files X-SVN-Commit-Revision: 457713 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Dec 2017 18:59:37 -0000 Author: yuri Date: Sun Dec 31 18:59:36 2017 New Revision: 457713 URL: https://svnweb.freebsd.org/changeset/ports/457713 Log: New port: textproc/pdfsandwich: Command line tool generating "sandwich" OCR pdf files PR: 221737 Submitted by: myself Requested by: vermaden@interia.pl Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D13708 Added: head/textproc/pdfsandwich/ head/textproc/pdfsandwich/Makefile (contents, props changed) head/textproc/pdfsandwich/distinfo (contents, props changed) head/textproc/pdfsandwich/files/ head/textproc/pdfsandwich/files/patch-Makefile (contents, props changed) head/textproc/pdfsandwich/pkg-descr (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Sun Dec 31 18:18:55 2017 (r457712) +++ head/textproc/Makefile Sun Dec 31 18:59:36 2017 (r457713) @@ -1160,6 +1160,7 @@ SUBDIR += pcrs SUBDIR += pdfgrep SUBDIR += pdfoutline + SUBDIR += pdfsandwich SUBDIR += pdftohtml SUBDIR += pear-File_Fortune SUBDIR += pear-File_MARC Added: head/textproc/pdfsandwich/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/pdfsandwich/Makefile Sun Dec 31 18:59:36 2017 (r457713) @@ -0,0 +1,25 @@ +# $FreeBSD$ + +PORTNAME= pdfsandwich +DISTVERSION= 0.1.6 +CATEGORIES= textproc +MASTER_SITES= SF/${PORTNAME}/pdfsandwich%20${PORTNAME}/ + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Command line tool generating "sandwich" OCR pdf files + +LICENSE= GPLv2 + +BUILD_DEPENDS= gawk:lang/gawk \ + ocamlopt:lang/ocaml +RUN_DEPENDS= convert:graphics/ImageMagick \ + tesseract:graphics/tesseract \ + unpaper:graphics/unpaper + +USES= gmake ghostscript:run tar:bz2 +GNU_CONFIGURE= yes + +PLIST_FILES= bin/pdfsandwich \ + man/man1/pdfsandwich.1.gz + +.include Added: head/textproc/pdfsandwich/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/pdfsandwich/distinfo Sun Dec 31 18:59:36 2017 (r457713) @@ -0,0 +1,3 @@ +TIMESTAMP = 1514694755 +SHA256 (pdfsandwich-0.1.6.tar.bz2) = 96831eb191bcd43e730dcce169d5c14b47bba0b6cd5152a8703e3b573013a2a2 +SIZE (pdfsandwich-0.1.6.tar.bz2) = 17031 Added: head/textproc/pdfsandwich/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/pdfsandwich/files/patch-Makefile Sun Dec 31 18:59:36 2017 (r457713) @@ -0,0 +1,24 @@ +--- Makefile.orig 2017-01-16 20:56:57 UTC ++++ Makefile +@@ -43,16 +43,16 @@ PREF = $(DESTDIR)$(PREFIX) + INSTALL = install -s + CP = cp + INSTALLBINDIR = $(PREF)/bin +-INSTALLMANDIR = $(PREF)/share/man/man1 ++INSTALLMANDIR = $(PREF)/man/man1 + INSTALLDOCDIR = $(PREF)/share/doc/$(TARGET) + + install: $(DOCFILES) $(ADDITIONAL) +- (umask 0022; mkdir -p $(INSTALLBINDIR) $(INSTALLDOCDIR) $(INSTALLMANDIR)) ++ (umask 0022; mkdir -p $(INSTALLBINDIR) $(INSTALLMANDIR)) + $(INSTALL) $(TARGET) $(INSTALLBINDIR) +- $(CP) $(DOCFILES) $(INSTALLDOCDIR) +- gzip -9 $(INSTALLDOCDIR)/changelog ++ #$(CP) $(DOCFILES) $(INSTALLDOCDIR) ++ #gzip -9 $(INSTALLDOCDIR)/changelog + $(CP) $(MANUAL) $(INSTALLMANDIR) +- chmod 644 $(INSTALLDOCDIR)/* $(INSTALLMANDIR)/* ++ #chmod 644 $(INSTALLDOCDIR)/* $(INSTALLMANDIR)/* + + uninstall: + rm -rf $(INSTALLBINDIR)/$(TARGET) $(INSTALLDOCDIR) $(INSTALLMANDIR)/$(MANUAL) Added: head/textproc/pdfsandwich/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/pdfsandwich/pkg-descr Sun Dec 31 18:59:36 2017 (r457713) @@ -0,0 +1,6 @@ +pdfsandwich generates "sandwich" OCR pdf files, i.e. pdf files which contain +only images (but no editable text) will be processed by optical character +recognition (OCR) and the text will be added to each page invisibly "behind" +the images. + +WWW: https://sourceforge.net/projects/pdfsandwich