View | Details | Raw Unified | Return to bug 221737
Collapse All | Expand All

(-)textproc/pdfsandwich/Makefile (+25 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	pdfsandwich
4
PORTVERSION=	0.1.6
5
CATEGORIES=	textproc
6
MASTER_SITES=	SF/${PORTNAME}/pdfsandwich%20${PORTNAME}/
7
8
MAINTAINER=	yuri@FreeBSD.org
9
COMMENT=	Command line tool generating "sandwich" OCR pdf files
10
11
LICENSE=	GPLv2
12
13
BUILD_DEPENDS=	gawk:lang/gawk \
14
		ocamlopt:lang/ocaml
15
RUN_DEPENDS=	convert:graphics/ImageMagick \
16
		tesseract:graphics/tesseract \
17
		unpaper:graphics/unpaper
18
19
USES=		gmake ghostscript:run tar:bz2
20
GNU_CONFIGURE=	yes
21
22
PLIST_FILES=	bin/pdfsandwich \
23
		man/man1/pdfsandwich.1.gz
24
25
.include <bsd.port.mk>
(-)textproc/pdfsandwich/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1514694755
2
SHA256 (pdfsandwich-0.1.6.tar.bz2) = 96831eb191bcd43e730dcce169d5c14b47bba0b6cd5152a8703e3b573013a2a2
3
SIZE (pdfsandwich-0.1.6.tar.bz2) = 17031
(-)textproc/pdfsandwich/files/patch-Makefile (+23 lines)
Line 0 Link Here
1
--- Makefile.orig	2017-01-16 20:56:57 UTC
2
+++ Makefile
3
@@ -43,16 +43,16 @@ PREF = $(DESTDIR)$(PREFIX)
4
 INSTALL = 	install -s
5
 CP = 		cp
6
 INSTALLBINDIR =	$(PREF)/bin
7
-INSTALLMANDIR = $(PREF)/share/man/man1
8
+INSTALLMANDIR = $(PREF)/man/man1
9
 INSTALLDOCDIR = $(PREF)/share/doc/$(TARGET)
10
 
11
 install: $(DOCFILES) $(ADDITIONAL)
12
 	(umask 0022; mkdir -p $(INSTALLBINDIR) $(INSTALLDOCDIR) $(INSTALLMANDIR))
13
 	$(INSTALL) $(TARGET) $(INSTALLBINDIR)
14
-	$(CP) $(DOCFILES) $(INSTALLDOCDIR)
15
-	gzip -9 $(INSTALLDOCDIR)/changelog
16
+	#$(CP) $(DOCFILES) $(INSTALLDOCDIR)
17
+	#gzip -9 $(INSTALLDOCDIR)/changelog
18
 	$(CP) $(MANUAL) $(INSTALLMANDIR)
19
-	chmod 644 $(INSTALLDOCDIR)/* $(INSTALLMANDIR)/*
20
+	#chmod 644 $(INSTALLDOCDIR)/* $(INSTALLMANDIR)/*
21
 
22
 uninstall:
23
 	rm -rf $(INSTALLBINDIR)/$(TARGET) $(INSTALLDOCDIR) $(INSTALLMANDIR)/$(MANUAL)
(-)textproc/pdfsandwich/pkg-descr (+6 lines)
Line 0 Link Here
1
pdfsandwich generates "sandwich" OCR pdf files, i.e. pdf files which contain
2
only images (but no editable text) will be processed by optical character
3
recognition (OCR) and the text will be added to each page invisibly "behind"
4
the images.
5
6
WWW: https://sourceforge.net/projects/pdfsandwich

Return to bug 221737