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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name cloc |
---|
7 | version 1.62 |
---|
8 | categories textproc |
---|
9 | license GPL-2 |
---|
10 | platforms darwin |
---|
11 | supported_archs noarch |
---|
12 | maintainers vt.edu:jpo openmaintainer |
---|
13 | description counts lines of source code |
---|
14 | long_description cloc counts blank lines, comment lines, and physical \ |
---|
15 | lines of source code in many programming languages. \ |
---|
16 | Given two versions of a code base, cloc can compute \ |
---|
17 | differences in blank, comment, and source lines. |
---|
18 | |
---|
19 | homepage http://cloc.sourceforge.net/ |
---|
20 | master_sites sourceforge:project/cloc/cloc/v${version} |
---|
21 | |
---|
22 | checksums rmd160 ab487a6e81a4f2663e632e27237d07faf948784c \ |
---|
23 | sha256 c4111ef5768b1c2844c0c826988df6f92fbb5aa7452a5005d3a031d68631acb3 |
---|
24 | |
---|
25 | depends_run port:perl5.16 port:p5.16-algorithm-diff \ |
---|
26 | port:p5.16-regexp-common port:p5.16-digest-md5 |
---|
27 | |
---|
28 | use_configure no |
---|
29 | |
---|
30 | patch { |
---|
31 | reinplace -W ${worksrcpath} \ |
---|
32 | "s|^#!/usr/bin/env perl|#!${prefix}/bin/perl5.16|" cloc sqlite_formatter |
---|
33 | } |
---|
34 | |
---|
35 | build {} |
---|
36 | |
---|
37 | destroot.args prefix=${prefix} |
---|
38 | |
---|
39 | livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)\.pl |
---|