View | Details | Raw Unified | Return to bug 234285 | Differences between
and this patch

Collapse All | Expand All

(-)graphics/tesseract/Makefile (-3 / +7 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	tesseract
4
PORTNAME=	tesseract
5
PORTVERSION=	4.0.0
5
PORTVERSION=	4.0.0
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	graphics
7
CATEGORIES=	graphics
8
8
9
MAINTAINER=	pkubaj@anongoth.pl
9
MAINTAINER=	pkubaj@anongoth.pl
Lines 11-21 Link Here
11
11
12
LICENSE=	APACHE20
12
LICENSE=	APACHE20
13
13
14
BUILD_DEPENDS=	asciidoc:textproc/asciidoc \
15
		xsltproc:textproc/libxslt \
16
		${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl
14
LIB_DEPENDS=	liblept.so:graphics/leptonica
17
LIB_DEPENDS=	liblept.so:graphics/leptonica
15
RUN_DEPENDS=	tesseract-data>=0:graphics/tesseract-data
18
RUN_DEPENDS=	tesseract-data>=0:graphics/tesseract-data
16
19
17
USES=		autoreconf compiler:c++11-lang gnome localbase libtool pathfix \
20
USES=		autoreconf compiler:c++11-lang gmake gnome localbase \
18
		pkgconfig shebangfix
21
		libtool pathfix pkgconfig shebangfix
19
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
20
USE_LDCONFIG=	yes
23
USE_LDCONFIG=	yes
21
24
Lines 42-47 Link Here
42
45
43
post-patch:
46
post-patch:
44
	@${REINPLACE_CMD} -e 's|-O3 -DNDEBUG||' ${WRKSRC}/configure.ac
47
	@${REINPLACE_CMD} -e 's|-O3 -DNDEBUG||' ${WRKSRC}/configure.ac
48
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/doc/Makefile.am
45
49
46
post-build-TOOLS-on:
50
post-build-TOOLS-on:
47
	@cd ${WRKSRC} && ${MAKE} training
51
	@cd ${WRKSRC} && ${MAKE} training
(-)graphics/tesseract/files/patch-doc_Makefile.am (+15 lines)
Line 0 Link Here
1
--- doc/Makefile.am.orig	2019-03-28 05:11:18 UTC
2
+++ doc/Makefile.am
3
@@ -36,7 +36,11 @@ EXTRA_DIST = $(man_MANS) Doxyfile
4
 html: $(patsubst %,%.html,$(man_MANS))
5
 
6
 %: %.asc
7
-	$(asciidoc) -o $@ $<
8
+	$(asciidoc) $<
9
+	$(asciidoc) -b docbook $<
10
+	xsltproc --nonet --param man.charmap.use.subset "0" \
11
+		%%LOCALBASE%%/share/xsl/docbook/manpages/docbook.xsl \
12
+		$@.xml
13
 
14
 %.html: %.asc
15
 	asciidoc -b html5 -o $@ $<
(-)graphics/tesseract/pkg-plist (+18 lines)
Lines 42-44 Link Here
42
lib/libtesseract.so.4
42
lib/libtesseract.so.4
43
lib/libtesseract.so.4.0.0
43
lib/libtesseract.so.4.0.0
44
libdata/pkgconfig/tesseract.pc
44
libdata/pkgconfig/tesseract.pc
45
man/man1/ambiguous_words.1.gz
46
man/man1/classifier_tester.1.gz
47
man/man1/cntraining.1.gz
48
man/man1/combine_lang_model.1.gz
49
man/man1/combine_tessdata.1.gz
50
man/man1/dawg2wordlist.1.gz
51
man/man1/lstmeval.1.gz
52
man/man1/lstmtraining.1.gz
53
man/man1/merge_unicharsets.1.gz
54
man/man1/mftraining.1.gz
55
man/man1/set_unicharset_properties.1.gz
56
man/man1/shapeclustering.1.gz
57
man/man1/tesseract.1.gz
58
man/man1/text2image.1.gz
59
man/man1/unicharset_extractor.1.gz
60
man/man1/wordlist2dawg.1.gz
61
man/man5/unicharambigs.5.gz
62
man/man5/unicharset.5.gz

Return to bug 234285