# $Id: Portfile 42396 2008-11-20 18:04:42Z simon@macports.org $

PortSystem 1.0

name			gocr
version			0.46
categories		graphics
platforms		darwin
maintainers		simon openmaintainer
description		Optical Character Recognition, converts images back to text
long_description	GOCR is an OCR (Optical Character Recognition) program. It \
				converts scanned images of text back to text files.

homepage		http://jocr.sourceforge.net/
master_sites		sourceforge:jocr
checksums		md5 95a1c820d0320129ce2bedbf9e68037d \
			sha1 eb1ff70f490d121c54ce612da043dcf52aae0601 \
			rmd160 0f61fc05015b945d471c039e38497c3b9d550dac

depends_build		port:netpbm

configure.args	--mandir=/share/man

destroot.destdir	DESTDIR=${destroot}${prefix}

post-destroot		{
	xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
	xinstall -m 0644 -W ${worksrcpath} README REMARK.txt AUTHORS CREDITS HISTORY BUGS TODO ${destroot}${prefix}/share/doc/${name}

	file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
	file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
}

livecheck.name      jocr
livecheck.distname  gocr
