Files

47 lines
1.7 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
PortGroup perl5 1.0
PortGroup makefile 1.0
github.setup AlDanial cloc 2.08 v
github.tarball_from archive
revision 0
perl5.branches 5.34
categories textproc devel
license {Artistic-1 GPL-2}
supported_archs noarch
platforms any
maintainers nomaintainer
description counts lines of source code
long_description cloc counts blank lines, comment lines, and physical \
lines of source code in many programming languages. \
Given two versions of a code base, cloc can compute \
differences in blank, comment, and source lines.
checksums rmd160 c1362af39659673a85ee3338d13ff41782227178 \
sha256 8099b6275c124f662690f2db3581cd2ad4e9ad4e08332288719838ded00d1da5 \
size 763505
depends_run-append port:perl${perl5.major} \
port:p${perl5.major}-algorithm-diff \
port:p${perl5.major}-parallel-forkmanager \
port:p${perl5.major}-regexp-common \
port:p${perl5.major}-digest-md5
patchfiles patch-Makefile-perl.diff
post-patch {
reinplace "s|^#!/usr/bin/env perl|#!${perl5.bin}|" ${worksrcpath}/cloc
reinplace "s|__PERL__|${perl5.bin}|" ${worksrcpath}/Makefile
}
worksrcdir ${distname}/Unix
makefile.override-append \
PREFIX
makefile.prefix_name \
prefix