<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[153489] trunk/dports/textproc/cloc</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/153489">153489</a></dd>
<dt>Author</dt> <dd>khindenburg@macports.org</dd>
<dt>Date</dt> <dd>2016-10-02 09:40:10 -0700 (Sun, 02 Oct 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>cloc: update to 1.70; move to github #52286</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportstextprocclocPortfile">trunk/dports/textproc/cloc/Portfile</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkdportstextprocclocfilespatchclocdiff">trunk/dports/textproc/cloc/files/patch-cloc.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportstextprocclocPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/textproc/cloc/Portfile (153488 => 153489)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/textproc/cloc/Portfile      2016-10-02 16:09:21 UTC (rev 153488)
+++ trunk/dports/textproc/cloc/Portfile 2016-10-02 16:40:10 UTC (rev 153489)
</span><span class="lines">@@ -2,12 +2,11 @@
</span><span class="cx"> # $Id$
</span><span class="cx"> 
</span><span class="cx"> PortSystem          1.0
</span><ins>+PortGroup           github 1.0
</ins><span class="cx"> PortGroup           perl5 1.0
</span><span class="cx"> 
</span><del>-name                cloc
-version             1.64
</del><ins>+github.setup        AlDanial cloc 1.70 v
</ins><span class="cx"> perl5.branches      5.24
</span><del>-revision            2
</del><span class="cx"> categories          textproc devel
</span><span class="cx"> license             GPL-2 Artistic-1
</span><span class="cx"> platforms           darwin
</span><span class="lines">@@ -19,27 +18,28 @@
</span><span class="cx">                     Given two versions of a code base, cloc can compute \
</span><span class="cx">                     differences in blank, comment, and source lines.
</span><span class="cx"> 
</span><del>-homepage            http://cloc.sourceforge.net/
-master_sites        sourceforge:project/cloc/cloc/v${version}
</del><ins>+checksums           rmd160  e0e8e107a4d9e98328e3618a535e1b3d5a592b08 \
+                    sha256  2bcf70281835b12f3ef01b9da6edf69b93b0ea660836ec5b524751718e41da01
</ins><span class="cx"> 
</span><del>-checksums           rmd160  025b0347177dcfa245c35789362c5ce0dc8f6634 \
-                    sha256  309701142f54ee5b244307dec2d07848b71af9b9fee01437d3f7440193f975f0
-
</del><span class="cx"> depends_run-append  port:perl${perl5.major} \
</span><span class="cx">                     port:p${perl5.major}-algorithm-diff \
</span><span class="cx">                     port:p${perl5.major}-regexp-common \
</span><span class="cx">                     port:p${perl5.major}-digest-md5
</span><span class="cx"> 
</span><del>-patchfiles          patch-cloc.diff
</del><ins>+patchfiles          patch-Makefile-perl.diff
+
</ins><span class="cx"> post-patch {
</span><span class="cx">     reinplace -W ${worksrcpath} \
</span><span class="cx">         "s|^#!/usr/bin/env perl|#!${perl5.bin}|" \
</span><del>-         cloc sqlite_formatter
</del><ins>+         cloc
+    reinplace -W ${worksrcpath} \
+        "s|__PERL__|${perl5.bin}|" \
+         Makefile
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+worksrcdir          ${distname}/Unix
+
</ins><span class="cx"> use_configure       no
</span><span class="cx"> build               {}
</span><span class="cx"> 
</span><span class="cx"> destroot.args-append prefix=${prefix}
</span><del>-
-livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)\.pl
</del></span></pre></div>
<a id="trunkdportstextprocclocfilespatchclocdiff"></a>
<div class="delfile"><h4>Deleted: trunk/dports/textproc/cloc/files/patch-cloc.diff (153488 => 153489)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/textproc/cloc/files/patch-cloc.diff 2016-10-02 16:09:21 UTC (rev 153488)
+++ trunk/dports/textproc/cloc/files/patch-cloc.diff    2016-10-02 16:40:10 UTC (rev 153489)
</span><span class="lines">@@ -1,70 +0,0 @@
</span><del>---- cloc.orig
-+++ cloc
-@@ -1281,8 +1281,8 @@
-                 $not_Filters_by_Language_Lang_LR = 1;
-             }
-         } else {
--            if (!defined(@{$Filters_by_Language{$Lang_L} }) or
--                !defined(@{$Filters_by_Language{$Lang_R} })) {
-+            if (!(@{$Filters_by_Language{$Lang_L} }) or
-+                !(@{$Filters_by_Language{$Lang_R} })) {
-                 $not_Filters_by_Language_Lang_LR = 1;
-             }
-         }
-@@ -1618,7 +1618,7 @@
-         $Ignored{$file} = "--exclude-lang=$Language{$file}";
-         next;
-     }
--    my $Filters_by_Language_Language_file = !defined @{$Filters_by_Language{$Language{$file}} };
-+    my $Filters_by_Language_Language_file = !@{$Filters_by_Language{$Language{$file}} };
-     if ($Filters_by_Language_Language_file) {
-         if ($Language{$file} eq "(unknown)") {
-             $Ignored{$file} = "language unknown (#1)";
-@@ -1759,7 +1759,7 @@
-                     if ($PERL_516) {
-                         next unless         @{$rhaa_Filters_by_Language->{$1}};
-                     } else {
--                        next unless defined @{$rhaa_Filters_by_Language->{$1}};
-+                        next unless @{$rhaa_Filters_by_Language->{$1}};
-                     }
-                     # above test necessary to avoid trying to sum reports
-                     # of reports (which have no language breakdown).
-@@ -3259,7 +3259,7 @@
- } # 1}}}
- sub print_language_filters {                 # {{{1
-     my ($language,) = @_;
--    if (!defined @{$Filters_by_Language{$language}}) {
-+    if (!@{$Filters_by_Language{$language}}) {
-         warn "Unknown language: $language\n";
-         warn "Use --show-lang to list all defined languages.\n";
-         return;
-@@ -4623,7 +4623,7 @@

-   open (FILE, $file);
-   while (<FILE>) {
--    if (m/^\\begin{code}/) { close FILE; return 2; }
-+    if (m/^\\begin\{code}/) { close FILE; return 2; }
-     if (m/^>\s/) { close FILE; return 1; }
-   }

-@@ -4652,9 +4652,9 @@
-             if (!s/^>//) { s/.*//; }
-         } elsif ($literate == 2) {
-             if ($inlitblock) {
--                if (m/^\\end{code}/) { s/.*//; $inlitblock = 0; }
-+                if (m/^\\end\{code}/) { s/.*//; $inlitblock = 0; }
-             } elsif (!$inlitblock) {
--                if (m/^\\begin{code}/) { s/.*//; $inlitblock = 1; }
-+                if (m/^\\begin\{code}/) { s/.*//; $inlitblock = 1; }
-                 else { s/.*//; }
-             }
-         }
-@@ -6582,7 +6582,7 @@
-         my $language = $rh_Language_by_Extension->{$ext};
-         next if defined $extension_collisions{$language};
-         next if $seen_it{$language};
--        if (!defined @{$rhaa_Filters_by_Language->{$language}}) {
-+        if (!@{$rhaa_Filters_by_Language->{$language}}) {
-             $OK = 0;
-             warn "Missing language filter for $language\n";
-         }
</del></span></pre>
</div>
</div>

</body>
</html>