Ignore:
Timestamp:
Jul 15, 2015, 5:55:03 PM (4 years ago)
Author:
ionic@…
Message:

cloc: update to 1.64. Patch provided by maintainer. Fixes: #48368.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/cloc/Portfile

    r135219 r138669  
    22# $Id$
    33
    4 PortSystem 1.0
     4PortSystem          1.0
    55
    66name                cloc
    7 version             1.62
    8 revision            1
     7version             1.64
    98set perl_version    5.16
    109categories          textproc devel
    1110license             GPL-2 Artistic-1
    1211platforms           darwin
     12supported_archs     noarch
    1313maintainers         vt.edu:jpo openmaintainer
    14 description         cloc counts blank lines, comment lines, and physical lines \
    15                     of source code in many programming languages.
    16 long_description    ${description}
     14description         counts lines of source code
     15long_description    cloc counts blank lines, comment lines, and physical \
     16                    lines of source code in many programming languages. \
     17                    Given two versions of a code base, cloc can compute \
     18                    differences in blank, comment, and source lines.
    1719
    18 homepage            http://cloc.sourceforge.net
    19 master_sites        sourceforge:project/cloc/cloc/v${version}/
     20homepage            http://cloc.sourceforge.net/
     21master_sites        sourceforge:project/cloc/cloc/v${version}
    2022
    21 checksums           rmd160  ab487a6e81a4f2663e632e27237d07faf948784c \
    22                     sha256  c4111ef5768b1c2844c0c826988df6f92fbb5aa7452a5005d3a031d68631acb3
     23checksums           rmd160  025b0347177dcfa245c35789362c5ce0dc8f6634 \
     24                    sha256  309701142f54ee5b244307dec2d07848b71af9b9fee01437d3f7440193f975f0
    2325
    2426depends_run-append  port:perl${perl_version} \
     
    2931use_configure       no
    3032
     33patch {
     34    reinplace -W ${worksrcpath} \
     35        "s|^#!/usr/bin/env perl|#!${prefix}/bin/perl${perl_version}|" \
     36         cloc sqlite_formatter
     37}
     38
     39build {}
     40
    3141destroot.args-append prefix=${prefix}
    3242
    3343post-destroot {
    34     reinplace -W ${destroot}${prefix}/bin "s|#!/usr/bin/env perl|#! ${prefix}/bin/perl${perl_version}|" \
     44    reinplace -W ${destroot}${prefix}/bin \
     45        "s|#!/usr/bin/env perl|#! ${prefix}/bin/perl${perl_version}|" \
    3546        cloc
    36     }
     47}
    3748
    38 livecheck.type      regex
    39 livecheck.url       ${homepage}
    40 livecheck.regex     {latest version: (\d+(?:\.\d+)*)}
     49livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)\.pl
Note: See TracChangeset for help on using the changeset viewer.