ports/189452: [MAINTAINER] japanese/nhocr: update to 0.21

Hiroto Kagotani hiroto.kagotani at gmail.com
Thu May 8 02:00:00 UTC 2014


>Number:         189452
>Category:       ports
>Synopsis:       [MAINTAINER] japanese/nhocr: update to 0.21
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 08 02:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Hiroto Kagotani
>Release:        FreeBSD 10.0-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD myhost.mydomain 10.0-RELEASE-p2 FreeBSD 10.0-RELEASE-p2 #0: Tue Apr 29 17:06:01 UTC 2014
>Description:
- Update to 0.21
- Support staging

Generated with FreeBSD Port Tools 1.02 (mode: update, diff: suffix)
>How-To-Repeat:
>Fix:

--- ja-nhocr-0.21.patch begins here ---
diff -ruN ../nhocr.orig/Makefile ./Makefile
--- ../nhocr.orig/Makefile	2013-09-21 03:47:54.000000000 +0900
+++ ./Makefile	2014-05-08 10:00:40.000000000 +0900
@@ -2,22 +2,24 @@
 # $FreeBSD: head/japanese/nhocr/Makefile 327737 2013-09-20 18:47:54Z bapt $
 
 PORTNAME=	nhocr
-PORTVERSION=	0.16
+PORTVERSION=	0.21
 CATEGORIES=	japanese graphics
 MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
 
 MAINTAINER=	hiroto.kagotani at gmail.com
 COMMENT=	OCR engine for Japanese language
 
+LICENSE=	APACHE20
+
 BUILD_DEPENDS=	${LOCALBASE}/lib/libsip.a:${PORTSDIR}/graphics/O2-tools
+LIB_DEPENDS=	libfreetype.so:${PORTSDIR}/print/freetype2
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-O2tools=${LOCALBASE} --datadir=${DATADIR}
 
-NO_STAGE=	yes
 post-install:
-	${MKDIR} ${PREFIX}/share/ocropus/scripts
-	${INSTALL_DATA} ${WRKSRC}/ocropus/rec-nhocr-0.3.lua ${PREFIX}/share/ocropus/scripts/rec-nhocr.lua
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/ocropus/scripts
+	${INSTALL_DATA} ${WRKSRC}/ocropus/rec-nhocr-0.3.lua ${STAGEDIR}${PREFIX}/share/ocropus/scripts/rec-nhocr.lua
 	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
diff -ruN ../nhocr.orig/distinfo ./distinfo
--- ../nhocr.orig/distinfo	2014-01-23 00:30:13.000000000 +0900
+++ ./distinfo	2014-05-07 20:42:35.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (nhocr-0.16.tar.gz) = 68369747a0f5989df5a69969f3933e919d70ddd4e8dbdd70629bb06512d459f2
-SIZE (nhocr-0.16.tar.gz) = 5775971
+SHA256 (nhocr-0.21.tar.gz) = b862391deb1d2b0bf54e316cf7037018c370c9c835dcea61a047be2c8ea6e9f8
+SIZE (nhocr-0.21.tar.gz) = 6234716
diff -ruN ../nhocr.orig/files/patch-libnhocr__nhrec.cpp ./files/patch-libnhocr__nhrec.cpp
--- ../nhocr.orig/files/patch-libnhocr__nhrec.cpp	2014-01-23 02:40:44.000000000 +0900
+++ ./files/patch-libnhocr__nhrec.cpp	1970-01-01 09:00:00.000000000 +0900
@@ -1,11 +0,0 @@
---- ./libnhocr/nhrec.cpp.orig	2009-05-10 23:56:11.000000000 +0900
-+++ ./libnhocr/nhrec.cpp	2009-05-19 19:24:48.000000000 +0900
-@@ -45,7 +45,7 @@
- 
- 
- // default file/path names
--static char	*nhocrlibdir0 = "/opt/nhocr/share";
-+static char	*nhocrlibdir0 = "/usr/local/share/nhocr";
- static char	*cctablefile0 = "cctable.utf-8";
- static char	*dicfile0 = "PLM.dic";
- 
diff -ruN ../nhocr.orig/files/patch-libnhocr__ocrbase.cpp ./files/patch-libnhocr__ocrbase.cpp
--- ../nhocr.orig/files/patch-libnhocr__ocrbase.cpp	2014-01-23 02:40:44.000000000 +0900
+++ ./files/patch-libnhocr__ocrbase.cpp	1970-01-01 09:00:00.000000000 +0900
@@ -1,11 +0,0 @@
---- ./libnhocr/ocrbase.cpp.orig	2009-05-15 15:55:20.000000000 +0900
-+++ ./libnhocr/ocrbase.cpp	2009-05-19 19:24:48.000000000 +0900
-@@ -9,7 +9,7 @@
- #include	<stdlib.h>
- #include	<string.h>
- #include	<math.h>
--#include	<values.h>
-+#include	<float.h>
- 
- #if defined (__SVR4) && defined (__sun)
- #include	<float.h>
diff -ruN ../nhocr.orig/files/patch-makechar__Makefile.in ./files/patch-makechar__Makefile.in
--- ../nhocr.orig/files/patch-makechar__Makefile.in	1970-01-01 09:00:00.000000000 +0900
+++ ./files/patch-makechar__Makefile.in	2014-05-07 20:53:45.000000000 +0900
@@ -0,0 +1,13 @@
+--- ./makechar/Makefile.in.orig	2013-05-04 00:52:33.306113000 +0900
++++ ./makechar/Makefile.in	2014-05-07 20:53:43.000000000 +0900
+@@ -178,8 +178,8 @@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ makechar_SOURCES = makechar.cpp
+-AM_CXXFLAGS = -I/usr/include/freetype2 -I/usr/sfw/include/freetype2 -I../libnhocr
+-makechar_LDADD = -L/usr/sfw/lib -L../libnhocr -lm -lfreetype -lnhocr -lufp -lsip
++AM_CXXFLAGS = -I$(LOCALBASE)/include/freetype2 -I../libnhocr
++makechar_LDADD = -L$(LOCALBASE)/lib -L../libnhocr -lm -lfreetype -lnhocr -lufp -lsip
+ all: all-am
+ 
+ .SUFFIXES:
diff -ruN ../nhocr.orig/files/patch-ocropus__rec-nhocr-0.3.lua ./files/patch-ocropus__rec-nhocr-0.3.lua
--- ../nhocr.orig/files/patch-ocropus__rec-nhocr-0.3.lua	2014-01-23 02:40:44.000000000 +0900
+++ ./files/patch-ocropus__rec-nhocr-0.3.lua	2014-05-07 20:53:45.000000000 +0900
@@ -1,5 +1,5 @@
 --- ./ocropus/rec-nhocr-0.3.lua.orig	2009-05-15 17:17:07.000000000 +0900
-+++ ./ocropus/rec-nhocr-0.3.lua	2009-05-19 19:34:47.000000000 +0900
++++ ./ocropus/rec-nhocr-0.3.lua	2014-05-07 20:53:43.000000000 +0900
 @@ -41,6 +41,6 @@
     for i = 1,regions:length()-1 do
        regions:extract(line_image,page_image,i,1)
diff -ruN ../nhocr.orig/pkg-plist ./pkg-plist
--- ../nhocr.orig/pkg-plist	2014-01-23 00:16:56.000000000 +0900
+++ ./pkg-plist	2014-05-07 21:02:06.000000000 +0900
@@ -1,11 +1,17 @@
 bin/nhocr
-%%DATADIR%%/PLM.dic
-%%DATADIR%%/cctable.utf-8
+include/codelist.h
+include/gramdclient.h
 include/nhocr.h
 include/ocrbase.h
-include/codelist.h
 lib/libnhocr.a
+sbin/makechar
+sbin/makedic
+sbin/makevec
+%%DATADIR%%/PLM-ascii+.dic
+%%DATADIR%%/PLM-jpn.dic
+%%DATADIR%%/cctable-ascii+
+%%DATADIR%%/cctable-jpn
 share/ocropus/scripts/rec-nhocr.lua
- at dirrm %%DATADIR%%
 @dirrmtry share/ocropus/scripts
 @dirrmtry share/ocropus
+ at dirrm %%DATADIR%%
--- ja-nhocr-0.21.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list