Index: head/textproc/Makefile =================================================================== --- head/textproc/Makefile +++ head/textproc/Makefile @@ -1160,6 +1160,7 @@ SUBDIR += pcrs SUBDIR += pdfgrep SUBDIR += pdfoutline + SUBDIR += pdfsandwich SUBDIR += pdftohtml SUBDIR += pear-File_Fortune SUBDIR += pear-File_MARC Index: head/textproc/pdfsandwich/Makefile =================================================================== --- head/textproc/pdfsandwich/Makefile +++ head/textproc/pdfsandwich/Makefile @@ -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 Index: head/textproc/pdfsandwich/distinfo =================================================================== --- head/textproc/pdfsandwich/distinfo +++ head/textproc/pdfsandwich/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1514694755 +SHA256 (pdfsandwich-0.1.6.tar.bz2) = 96831eb191bcd43e730dcce169d5c14b47bba0b6cd5152a8703e3b573013a2a2 +SIZE (pdfsandwich-0.1.6.tar.bz2) = 17031 Index: head/textproc/pdfsandwich/files/patch-Makefile =================================================================== --- head/textproc/pdfsandwich/files/patch-Makefile +++ head/textproc/pdfsandwich/files/patch-Makefile @@ -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) Index: head/textproc/pdfsandwich/pkg-descr =================================================================== --- head/textproc/pdfsandwich/pkg-descr +++ head/textproc/pdfsandwich/pkg-descr @@ -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