[84637] trunk/dports/graphics/gocr/Portfile
ryandesign at macports.org
ryandesign at macports.org
Thu Sep 29 00:13:49 PDT 2011
Revision: 84637
http://trac.macports.org/changeset/84637
Author: ryandesign at macports.org
Date: 2011-09-29 00:13:48 -0700 (Thu, 29 Sep 2011)
Log Message:
-----------
gocr: whitespace changes / reformatting / add modeline
Modified Paths:
--------------
trunk/dports/graphics/gocr/Portfile
Modified: trunk/dports/graphics/gocr/Portfile
===================================================================
--- trunk/dports/graphics/gocr/Portfile 2011-09-29 07:06:35 UTC (rev 84636)
+++ trunk/dports/graphics/gocr/Portfile 2011-09-29 07:13:48 UTC (rev 84637)
@@ -1,61 +1,64 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name gocr
-version 0.48
-revision 1
-categories graphics
-platforms darwin
-license GPL-2+
-maintainers nomaintainer
-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.
+name gocr
+version 0.48
+revision 1
+categories graphics
+platforms darwin
+license GPL-2+
+maintainers nomaintainer
-homepage http://jocr.sourceforge.net/
-master_sites sourceforge:jocr \
- http://www-e.uni-magdeburg.de/jschulen/ocr/
+description Optical Character Recognition, converts images back to text
-checksums md5 9882ba9a93fcb18ab704a10da80c228c \
- sha1 2172fd04c556b70b19db2b2abbc47749f5d08130 \
- rmd160 11f839e843d356ce95fb5c26f53d3f545a695937
+long_description GOCR is an OCR (Optical Character Recognition) program. It \
+ converts scanned images of text back to text files.
-depends_lib port:netpbm
+homepage http://jocr.sourceforge.net/
+master_sites sourceforge:jocr \
+ http://www-e.uni-magdeburg.de/jschulen/ocr/
-depends_run path:bin/wish:tk
+checksums md5 9882ba9a93fcb18ab704a10da80c228c \
+ sha1 2172fd04c556b70b19db2b2abbc47749f5d08130 \
+ rmd160 11f839e843d356ce95fb5c26f53d3f545a695937
+depends_lib port:netpbm
+
+depends_run path:bin/wish:tk
+
# netpbm is not universal
-universal_variant no
+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
- }
+ # 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
+ }
}
-set docdir ${prefix}/share/doc/${name}
+set docdir ${prefix}/share/doc/${name}
-patchfiles patch-man-man1-gocr.1.diff
+patchfiles patch-man-man1-gocr.1.diff
post-patch {
- reinplace "s|@DOCDIR@|${docdir}|g" ${worksrcpath}/man/man1/gocr.1
+ reinplace "s|@DOCDIR@|${docdir}|g" ${worksrcpath}/man/man1/gocr.1
}
-configure.args --mandir=/share/man
+configure.args --mandir=/share/man
-destroot.destdir DESTDIR=${destroot}${prefix}
+destroot.destdir DESTDIR=${destroot}${prefix}
-post-destroot {
- xinstall -d ${destroot}${docdir} ${destroot}${prefix}/share/examples
- xinstall -m 0644 -W ${worksrcpath} README REMARK.txt AUTHORS CREDITS HISTORY BUGS TODO ${destroot}${docdir}
- xinstall -m 0644 -W ${worksrcpath}/doc example.dtd example.xml examples.txt gocr.html unicode.txt ${destroot}${docdir}
- file copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
+post-destroot {
+ xinstall -d ${destroot}${docdir} ${destroot}${prefix}/share/examples
+ xinstall -m 0644 -W ${worksrcpath} README REMARK.txt AUTHORS CREDITS HISTORY BUGS TODO ${destroot}${docdir}
+ xinstall -m 0644 -W ${worksrcpath}/doc example.dtd example.xml examples.txt gocr.html unicode.txt ${destroot}${docdir}
+ file copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
}
-livecheck.type regex
-livecheck.url ${homepage}download.html
-livecheck.regex ${name}-(\[0-9.\]+)\\.tar
+livecheck.type regex
+livecheck.url ${homepage}download.html
+livecheck.regex ${name}-(\[0-9.\]+)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110929/d4a11903/attachment.html>
More information about the macports-changes
mailing list