Page MenuHomeFreeBSD

D13708.id37292.diff
No OneTemporary

D13708.id37292.diff

Index: textproc/Makefile
===================================================================
--- textproc/Makefile
+++ 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: textproc/pdfsandwich/Makefile
===================================================================
--- /dev/null
+++ textproc/pdfsandwich/Makefile
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME= pdfsandwich
+PORTVERSION= 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 <bsd.port.mk>
Index: textproc/pdfsandwich/distinfo
===================================================================
--- /dev/null
+++ 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: textproc/pdfsandwich/files/patch-Makefile
===================================================================
--- /dev/null
+++ 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: textproc/pdfsandwich/pkg-descr
===================================================================
--- /dev/null
+++ 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

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 28, 7:27 PM (9 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24368685
Default Alt Text
D13708.id37292.diff (2 KB)

Event Timeline