mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
48 lines
1.6 KiB
Tcl
48 lines
1.6 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup github 1.0
|
|
|
|
github.setup blackducksoftware ohcount 4.0.0
|
|
revision 0
|
|
checksums rmd160 fe1d2c0adecf6c716ef6157b12e5363915f68fbb \
|
|
sha256 d71f69fd025f5bae58040988108f0d8d84f7204edda1247013cae555bfdae1b9 \
|
|
size 1301002
|
|
|
|
categories textproc devel
|
|
license GPL-2
|
|
maintainers nomaintainer
|
|
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.
|
|
|
|
github.tarball_from archive
|
|
|
|
depends_build port:gperf \
|
|
port:ragel
|
|
|
|
depends_lib port:libmagic \
|
|
port:pcre2
|
|
|
|
patchfiles patch-build.diff
|
|
patchfiles-append pcre2.patch
|
|
|
|
post-patch {
|
|
reinplace "s|@CC@|${configure.cc} [get_canonical_archflags cc]|g;s|@PREFIX@|${prefix}|g" ${worksrcpath}/build
|
|
}
|
|
|
|
use_configure no
|
|
build.cmd ./build ohcount && ./build shared
|
|
|
|
test.run yes
|
|
test.cmd ./build
|
|
test.target tests
|
|
|
|
destroot {
|
|
xinstall -m 0755 -W ${worksrcpath} bin/${name} ${destroot}${prefix}/bin
|
|
xinstall -m 0755 -W ${worksrcpath} src/lib${name}.dylib ${destroot}${prefix}/lib
|
|
}
|