[138669] trunk/dports/textproc/cloc/Portfile

ionic at macports.org ionic at macports.org
Wed Jul 15 10:55:03 PDT 2015


Revision: 138669
          https://trac.macports.org/changeset/138669
Author:   ionic at macports.org
Date:     2015-07-15 10:55:03 -0700 (Wed, 15 Jul 2015)
Log Message:
-----------
cloc: update to 1.64. Patch provided by maintainer. Fixes: #48368.

Modified Paths:
--------------
    trunk/dports/textproc/cloc/Portfile

Modified: trunk/dports/textproc/cloc/Portfile
===================================================================
--- trunk/dports/textproc/cloc/Portfile	2015-07-15 17:18:57 UTC (rev 138668)
+++ trunk/dports/textproc/cloc/Portfile	2015-07-15 17:55:03 UTC (rev 138669)
@@ -1,25 +1,27 @@
 # -*- 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
 # $Id$
 
-PortSystem 1.0
+PortSystem          1.0
 
 name                cloc
-version             1.62
-revision            1
+version             1.64
 set perl_version    5.16
 categories          textproc devel
 license             GPL-2 Artistic-1
 platforms           darwin
+supported_archs     noarch
 maintainers         vt.edu:jpo openmaintainer
-description         cloc counts blank lines, comment lines, and physical lines \
-                    of source code in many programming languages.
-long_description    ${description}
+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.
 
-homepage            http://cloc.sourceforge.net
-master_sites        sourceforge:project/cloc/cloc/v${version}/
+homepage            http://cloc.sourceforge.net/
+master_sites        sourceforge:project/cloc/cloc/v${version}
 
-checksums           rmd160  ab487a6e81a4f2663e632e27237d07faf948784c \
-                    sha256  c4111ef5768b1c2844c0c826988df6f92fbb5aa7452a5005d3a031d68631acb3
+checksums           rmd160  025b0347177dcfa245c35789362c5ce0dc8f6634 \
+                    sha256  309701142f54ee5b244307dec2d07848b71af9b9fee01437d3f7440193f975f0
 
 depends_run-append  port:perl${perl_version} \
                     port:p${perl_version}-algorithm-diff \
@@ -28,13 +30,20 @@
 
 use_configure       no
 
+patch {
+    reinplace -W ${worksrcpath} \
+        "s|^#!/usr/bin/env perl|#!${prefix}/bin/perl${perl_version}|" \
+         cloc sqlite_formatter
+}
+
+build {}
+
 destroot.args-append prefix=${prefix}
 
 post-destroot {
-    reinplace -W ${destroot}${prefix}/bin "s|#!/usr/bin/env perl|#! ${prefix}/bin/perl${perl_version}|" \
+    reinplace -W ${destroot}${prefix}/bin \
+        "s|#!/usr/bin/env perl|#! ${prefix}/bin/perl${perl_version}|" \
         cloc
-    }
+}
 
-livecheck.type      regex
-livecheck.url       ${homepage}
-livecheck.regex     {latest version: (\d+(?:\.\d+)*)}
+livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)\.pl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150715/5fa9e050/attachment.html>


More information about the macports-changes mailing list