Ticket #45749: Portfile.2

File Portfile.2, 1.3 KB (added by jpo@…, 10 years ago)

addressed all comments and fixed livecheck

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