update graphics/tesseract

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

update graphics/tesseract

Michael McConville-3
A few things:

 o a minor bugfix update (but not for tessdata)

 o remove a patch that's no longer necessary

 o the archive locations and distfile naming have apparently changed


Index: Makefile.inc
===================================================================
RCS file: /cvs/ports/graphics/tesseract/Makefile.inc,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile.inc
--- Makefile.inc 29 Dec 2015 19:49:40 -0000 1.2
+++ Makefile.inc 11 Apr 2016 04:01:17 -0000
@@ -6,5 +6,8 @@ GH_ACCOUNT= tesseract-ocr
 
 CATEGORIES += graphics textproc
 
+MASTER_SITES = https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/archive/
+DISTFILES = ${GH_TAGNAME}${EXTRACT_SUFX}
+
 # Apache 2.0
 PERMIT_PACKAGE_CDROM= Yes
Index: tessdata/distinfo
===================================================================
RCS file: /cvs/ports/graphics/tesseract/tessdata/distinfo,v
retrieving revision 1.1
diff -u -p -r1.1 distinfo
--- tessdata/distinfo 13 Nov 2015 12:54:58 -0000 1.1
+++ tessdata/distinfo 11 Apr 2016 04:01:17 -0000
@@ -1,2 +1,2 @@
-SHA256 (tessdata-3.04.00.tar.gz) = Xcs3GYM2tpU4Q7Rh7lNd8UAbQQCNVQ/J5D0O2rynrbE=
-SIZE (tessdata-3.04.00.tar.gz) = 499088801
+SHA256 (3.04.00.tar.gz) = Xcs3GYM2tpU4Q7Rh7lNd8UAbQQCNVQ/J5D0O2rynrbE=
+SIZE (3.04.00.tar.gz) = 499088801
Index: tesseract/Makefile
===================================================================
RCS file: /cvs/ports/graphics/tesseract/tesseract/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- tesseract/Makefile 11 Mar 2016 19:59:15 -0000 1.3
+++ tesseract/Makefile 11 Apr 2016 04:01:17 -0000
@@ -3,6 +3,7 @@
 COMMENT= OCR Engine developed at HP Labs
 
 GH_PROJECT= tesseract
+GH_TAGNAME= 3.04.01
 REVISION= 0
 
 SHARED_LIBS +=  tesseract            3.2      # 3.2
Index: tesseract/distinfo
===================================================================
RCS file: /cvs/ports/graphics/tesseract/tesseract/distinfo,v
retrieving revision 1.1
diff -u -p -r1.1 distinfo
--- tesseract/distinfo 13 Nov 2015 12:54:23 -0000 1.1
+++ tesseract/distinfo 11 Apr 2016 04:01:17 -0000
@@ -1,2 +1,2 @@
-SHA256 (tesseract-3.04.00.tar.gz) = fm5ItiXh+6m8glpO+MOfEsYKrhCEk5Ezs8agD4+Nw4w=
-SIZE (tesseract-3.04.00.tar.gz) = 2264427
+SHA256 (3.04.01.tar.gz) = V/Y+GxSuBMOTKiaD5L5JVKKEnhft1jj/6RvFohVq3Go=
+SIZE (3.04.01.tar.gz) = 2269105
Index: tesseract/patches/patch-ccutil_scanutils_cpp
===================================================================
RCS file: tesseract/patches/patch-ccutil_scanutils_cpp
diff -N tesseract/patches/patch-ccutil_scanutils_cpp
--- tesseract/patches/patch-ccutil_scanutils_cpp 13 Nov 2015 12:54:23 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-ccutil_scanutils_cpp,v 1.1 2015/11/13 12:54:23 ajacoutot Exp $
---- ccutil/scanutils.cpp.orig Fri Nov 13 11:04:43 2015
-+++ ccutil/scanutils.cpp Fri Nov 13 11:05:13 2015
-@@ -34,7 +34,7 @@
- #include "tprintf.h"
-
- // workaround for "'off_t' was not declared in this scope" with -std=c++11
--#if !defined(off_t) && !defined(__APPLE__) && !defined(__CYGWIN__)
-+#if !defined(off_t) && !defined(__APPLE__) && !defined(__CYGWIN__) && !defined(__OpenBSD__)
- typedef long off_t;
- #endif  // off_t
-

Reply | Threaded
Open this post in threaded view
|

Re: update graphics/tesseract

Michael McConville-3
Michael McConville wrote:
> A few things:
>
>  o a minor bugfix update (but not for tessdata)
>
>  o remove a patch that's no longer necessary
>
>  o the archive locations and distfile naming have apparently changed

That last part was unnecessary. Updated patch:


Index: tesseract/Makefile
===================================================================
RCS file: /cvs/ports/graphics/tesseract/tesseract/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- tesseract/Makefile 11 Mar 2016 19:59:15 -0000 1.3
+++ tesseract/Makefile 11 Apr 2016 04:12:25 -0000
@@ -3,6 +3,7 @@
 COMMENT= OCR Engine developed at HP Labs
 
 GH_PROJECT= tesseract
+GH_TAGNAME= 3.04.01
 REVISION= 0
 
 SHARED_LIBS +=  tesseract            3.2      # 3.2
Index: tesseract/distinfo
===================================================================
RCS file: /cvs/ports/graphics/tesseract/tesseract/distinfo,v
retrieving revision 1.1
diff -u -p -r1.1 distinfo
--- tesseract/distinfo 13 Nov 2015 12:54:23 -0000 1.1
+++ tesseract/distinfo 11 Apr 2016 04:12:25 -0000
@@ -1,2 +1,2 @@
-SHA256 (tesseract-3.04.00.tar.gz) = fm5ItiXh+6m8glpO+MOfEsYKrhCEk5Ezs8agD4+Nw4w=
-SIZE (tesseract-3.04.00.tar.gz) = 2264427
+SHA256 (tesseract-3.04.01.tar.gz) = V/Y+GxSuBMOTKiaD5L5JVKKEnhft1jj/6RvFohVq3Go=
+SIZE (tesseract-3.04.01.tar.gz) = 2269105
Index: tesseract/patches/patch-ccutil_scanutils_cpp
===================================================================
RCS file: tesseract/patches/patch-ccutil_scanutils_cpp
diff -N tesseract/patches/patch-ccutil_scanutils_cpp
--- tesseract/patches/patch-ccutil_scanutils_cpp 13 Nov 2015 12:54:23 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-ccutil_scanutils_cpp,v 1.1 2015/11/13 12:54:23 ajacoutot Exp $
---- ccutil/scanutils.cpp.orig Fri Nov 13 11:04:43 2015
-+++ ccutil/scanutils.cpp Fri Nov 13 11:05:13 2015
-@@ -34,7 +34,7 @@
- #include "tprintf.h"
-
- // workaround for "'off_t' was not declared in this scope" with -std=c++11
--#if !defined(off_t) && !defined(__APPLE__) && !defined(__CYGWIN__)
-+#if !defined(off_t) && !defined(__APPLE__) && !defined(__CYGWIN__) && !defined(__OpenBSD__)
- typedef long off_t;
- #endif  // off_t
-