# $Id: Portfile 92837 2012-05-09 00:51:48Z ryandesign@macports.org $ PortSystem 1.0 name ohcount version 3.0.0 revision 1 categories textproc devel license GPL-2 platforms darwin maintainers raimue \ openmaintainer description Ohcount is a source code line counter. long_description \ Ohcount identifies source code files in most common programming languages, \ and prepares total counts of code and comments. It can operate on single files \ or entire directory trees. Ohcount can produce line-by-line analysis of files \ for detailed debugging. homepage http://sourceforge.net/projects/ohcount master_sites sourceforge checksums md5 08f97d01adde8b45635abfe93f8a717a \ sha1 5c1357b3094881ff9804fbf3002c9aaa16494cce \ rmd160 64d79b11f7b0e91761fa396a042155fb87720e3a depends_lib port:ruby \ port:ragel \ port:swig-ruby \ port:pcre extract.mkdir yes patchfiles patch-build.diff post-patch { reinplace "s:@@PREFIX@@:${prefix}:" ${worksrcpath}/build reinplace "s:@@CC@@:${configure.cc}:" ${worksrcpath}/build } use_configure no build.cmd ./build ohcount && ./build shared destroot { xinstall -m 0755 -W ${worksrcpath} bin/${name} ${destroot}${prefix}/bin xinstall -m 0755 -W ${worksrcpath} src/lib${name}.dylib ${destroot}${prefix}/lib } livecheck.type regex livecheck.url ${homepage} livecheck.regex "${name}-(\\d+(?:\\.\\d+)+)${extract.suffix}"