source: trunk/dports/graphics/gocr/Portfile

Last change on this file was 98705, checked in by ryandesign@…, 5 years ago

gocr: increase revision to rebuild with libnetpbm.11.dylib

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- 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
2# $Id: Portfile 98705 2012-10-13 11:09:55Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                gocr
7version             0.49
8revision            1
9categories          graphics
10platforms           darwin
11license             GPL-2+
12maintainers         nomaintainer
13
14description         Optical Character Recognition, converts images back to text
15
16long_description    GOCR is an OCR (Optical Character Recognition) program. It \
17                    converts scanned images of text back to text files.
18
19homepage            http://jocr.sourceforge.net/
20master_sites        http://www-e.uni-magdeburg.de/jschulen/ocr/
21
22checksums           rmd160  51eee235f56eb73be590286a8a7f6fee805b3c72 \
23                    sha256  cc29931d50b3be11608dc79d1c7d8a20919dbe6313b1ba5dc88ecf99cffd171a
24
25depends_lib         port:netpbm
26
27depends_run         path:bin/wish:tk
28
29post-extract {
30    # Remove files in examples that we don't want copied
31    delete ${worksrcpath}/examples/.#Makefile.1.22 ${worksrcpath}/examples/Makefile
32    # Fix permissions so all files are readable
33    fs-traverse item ${worksrcpath}/examples {
34        file attributes ${item} -permissions a+r
35    }
36}
37
38set docdir          ${prefix}/share/doc/${name}
39
40patchfiles          patch-man-man1-gocr.1.diff
41
42post-patch {
43    reinplace "s|@DOCDIR@|${docdir}|g" ${worksrcpath}/man/man1/gocr.1
44}
45
46configure.args      --mandir=/share/man
47
48destroot.destdir    DESTDIR=${destroot}${prefix}
49
50post-destroot {
51    xinstall -d ${destroot}${docdir} ${destroot}${prefix}/share/examples
52    xinstall -m 0644 -W ${worksrcpath} README REMARK.txt AUTHORS CREDITS HISTORY BUGS TODO ${destroot}${docdir}
53    xinstall -m 0644 -W ${worksrcpath}/doc example.dtd example.xml examples.txt gocr.html unicode.txt ${destroot}${docdir}
54    file copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
55}
56
57livecheck.type      regex
58livecheck.url       ${homepage}download.html
59livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.