ports/59232: [NEW PORT] graphics/ocrad: OCR program implemented as filter, based on feature extraction method
Ulrich Spoerlein
q at uni.de
Wed Nov 12 22:10:17 UTC 2003
>Number: 59232
>Category: ports
>Synopsis: [NEW PORT] graphics/ocrad: OCR program implemented as filter, based on feature extraction method
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Nov 12 14:10:11 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Ulrich Spoerlein
>Release: FreeBSD 5.1-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD roadrunner 5.1-RELEASE-p2 FreeBSD 5.1-RELEASE-p2 #1: Sat Sep 27 20:33:30 CEST 2003
>Description:
GNU Ocrad is an OCR (Optical Character Recognition) program implemented
as a filter and based on a feature extraction method. It reads a bitmap
image in pbm format and outputs text in ISO-8859-1 (Latin-1) charset.
Also includes a layout analyser able to separate the columns or blocks
of text normally found on printed pages.
It can be used as a stand-alone console application, or as a backend to
other programs.
WWW: http://www.gnu.org/software/ocrad/ocrad.html
Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:
--- ocrad-0.5.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# ocrad
# ocrad/Makefile
# ocrad/distinfo
# ocrad/files
# ocrad/files/patch-configure
# ocrad/files/patch-main.cc
# ocrad/pkg-descr
# ocrad/pkg-plist
#
echo c - ocrad
mkdir -p ocrad > /dev/null 2>&1
echo x - ocrad/Makefile
sed 's/^X//' >ocrad/Makefile << 'END-of-ocrad/Makefile'
X# New ports collection makefile for: graphics/ocrad
X# Date created: 12.11.2003
X# Whom: Ulrich Spoerlein <q at uni.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME= ocrad
XPORTVERSION= 0.5
XCATEGORIES= graphics
XMASTER_SITES= ${MASTER_SITE_GNU}
XMASTER_SITE_SUBDIR= ${PORTNAME}
X
XMAINTAINER= q at uni.de
XCOMMENT= OCR program implemented as filter, based on feature extraction method
X
XUSE_BZIP2= yes
XHAS_CONFIGURE= yes
X
XCONFIGURE_ARGS= --prefix=${PREFIX}
X
XINFO= ocrad
X
X.include <bsd.port.mk>
END-of-ocrad/Makefile
echo x - ocrad/distinfo
sed 's/^X//' >ocrad/distinfo << 'END-of-ocrad/distinfo'
XMD5 (ocrad-0.5.tar.bz2) = 75bdfda680ddeede5dafa523a16c7191
END-of-ocrad/distinfo
echo c - ocrad/files
mkdir -p ocrad/files > /dev/null 2>&1
echo x - ocrad/files/patch-configure
sed 's/^X//' >ocrad/files/patch-configure << 'END-of-ocrad/files/patch-configure'
X--- configure.orig Mon Aug 25 00:07:09 2003
X+++ configure Wed Nov 12 22:50:24 2003
X@@ -13,7 +13,7 @@
X while true ; do
X
X # Break out if there are no more args
X- if [ $# == 0 ]; then break ; fi
X+ if [ $# = 0 ]; then break ; fi
X
X # Get the first arg, and shuffle
X option=$1
X@@ -48,7 +48,7 @@
X
X # Find the source files, if location was not specified.
X srcdirtext=
X-if [ x${srcdir} == x ]; then
X+if [ x${srcdir} = x ]; then
X srcdirtext="or . or .." ; srcdir=.
X if [ ! -r ${srcdir}/${srctrigger} ] ; then srcdir=.. ; fi
X if [ ! -r ${srcdir}/${srctrigger} ] ; then
X@@ -65,7 +65,7 @@
X fi
X
X # Set srcdir to . if that's what it is.
X-if [ $(pwd) == $(cd ${srcdir} ; pwd) ] ; then srcdir=. ; fi
X+if [ $(pwd) = $(cd ${srcdir} ; pwd) ] ; then srcdir=. ; fi
X
X # write variables to config file.
X rm -f Makefile
END-of-ocrad/files/patch-configure
echo x - ocrad/files/patch-main.cc
sed 's/^X//' >ocrad/files/patch-main.cc << 'END-of-ocrad/files/patch-main.cc'
X--- main.cc.orig Sat Oct 18 01:27:29 2003
X+++ main.cc Wed Nov 12 22:43:12 2003
X@@ -28,6 +28,7 @@
X #include <cstring>
X #include <vector>
X #include <getopt.h>
X+#include <libgen.h>
X #include "common.h"
X #include "rectangle.h"
X #include "bitmap.h"
END-of-ocrad/files/patch-main.cc
echo x - ocrad/pkg-descr
sed 's/^X//' >ocrad/pkg-descr << 'END-of-ocrad/pkg-descr'
XGNU Ocrad is an OCR (Optical Character Recognition) program implemented
Xas a filter and based on a feature extraction method. It reads a bitmap
Ximage in pbm format and outputs text in ISO-8859-1 (Latin-1) charset.
XAlso includes a layout analyser able to separate the columns or blocks
Xof text normally found on printed pages.
XIt can be used as a stand-alone console application, or as a backend to
Xother programs.
X
XWWW: http://www.gnu.org/software/ocrad/ocrad.html
END-of-ocrad/pkg-descr
echo x - ocrad/pkg-plist
sed 's/^X//' >ocrad/pkg-plist << 'END-of-ocrad/pkg-plist'
Xbin/ocrad
END-of-ocrad/pkg-plist
exit
--- ocrad-0.5.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list