[66662] trunk/dports/graphics/gocr/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Apr 19 07:46:29 PDT 2010


Revision: 66662
          http://trac.macports.org/changeset/66662
Author:   ryandesign at macports.org
Date:     2010-04-19 07:46:24 -0700 (Mon, 19 Apr 2010)
Log Message:
-----------
gocr:

 * update to 0.48
 * add backup download location
 * netpbm is actually a library dependency
 * gocr.tcl uses wish so add runtime dependency on tk
 * fix where documentation and examples are installed to match porthier
 * fix permissions of installed example files
 * don't install Makefiles and CVS directories

Modified Paths:
--------------
    trunk/dports/graphics/gocr/Portfile

Modified: trunk/dports/graphics/gocr/Portfile
===================================================================
--- trunk/dports/graphics/gocr/Portfile	2010-04-19 13:57:43 UTC (rev 66661)
+++ trunk/dports/graphics/gocr/Portfile	2010-04-19 14:46:24 UTC (rev 66662)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name			gocr
-version			0.46
+version			0.48
 categories		graphics
 platforms		darwin
 maintainers		simon openmaintainer
@@ -12,26 +12,38 @@
 				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
+master_sites		sourceforge:jocr \
+			http://www-e.uni-magdeburg.de/jschulen/ocr/
 
-depends_build		port:netpbm
+checksums		md5     9882ba9a93fcb18ab704a10da80c228c \
+			sha1    2172fd04c556b70b19db2b2abbc47749f5d08130 \
+			rmd160  11f839e843d356ce95fb5c26f53d3f545a695937
 
+depends_lib		port:netpbm
+
+depends_run		path:bin/wish:tk
+
 # netpbm is not universal
 universal_variant	no
 
+post-extract {
+	# Remove files in examples that we don't want copied
+	delete ${worksrcpath}/examples/.#Makefile.1.22 ${worksrcpath}/examples/CVS ${worksrcpath}/examples/Makefile
+	# Fix permissions so all files are readable
+	fs-traverse item ${worksrcpath}/examples {
+		file attributes ${item} -permissions a+r
+	}
+}
+
 configure.args	--mandir=/share/man
 
 destroot.destdir	DESTDIR=${destroot}${prefix}
 
 post-destroot		{
-	xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
+	xinstall -d ${destroot}${prefix}/share/doc/${name} ${destroot}${prefix}/share/examples
 	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}
+	xinstall -m 0644 -W ${worksrcpath}/doc example.dtd example.xml examples.txt gocr.html unicode.txt ${destroot}${prefix}/share/doc/${name}
+	file copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
 }
 
 livecheck.type		regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100419/ce6ddae6/attachment.html>


More information about the macports-changes mailing list