source: trunk/dports/textproc/ohcount/Portfile

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

Increase revision of ports depending on pcre since the libpcre library version has increased from 0 to 1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 92837 2012-05-09 00:51:48Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            ohcount
6version         3.0.0
7revision        1
8categories      textproc devel
9license         GPL-2
10platforms       darwin
11maintainers     raimue \
12                openmaintainer
13description     Ohcount is a source code line counter.
14long_description \
15    Ohcount identifies source code files in most common programming languages, \
16    and prepares total counts of code and comments. It can operate on single files \
17    or entire directory trees. Ohcount can produce line-by-line analysis of files \
18    for detailed debugging.
19homepage        http://sourceforge.net/projects/ohcount
20master_sites    sourceforge
21checksums       md5     08f97d01adde8b45635abfe93f8a717a \
22                sha1    5c1357b3094881ff9804fbf3002c9aaa16494cce \
23                rmd160  64d79b11f7b0e91761fa396a042155fb87720e3a
24
25depends_lib     port:ruby \
26                port:ragel \
27                port:swig-ruby \
28                port:pcre
29
30extract.mkdir   yes
31patchfiles      patch-build.diff
32
33post-patch {
34    reinplace "s:@@PREFIX@@:${prefix}:" ${worksrcpath}/build
35    reinplace "s:@@CC@@:${configure.cc}:" ${worksrcpath}/build
36}
37
38use_configure   no
39build.cmd       ./build ohcount && ./build shared
40
41destroot {
42    xinstall -m 0755 -W ${worksrcpath} bin/${name} ${destroot}${prefix}/bin
43    xinstall -m 0755 -W ${worksrcpath} src/lib${name}.dylib ${destroot}${prefix}/lib
44}
45
46livecheck.type  regex
47livecheck.url   ${homepage}
48livecheck.regex "${name}-(\\d+(?:\\.\\d+)+)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.