[103959] trunk/dports/textproc

g5pw at macports.org g5pw at macports.org
Sun Mar 10 15:46:39 PDT 2013


Revision: 103959
          https://trac.macports.org/changeset/103959
Author:   g5pw at macports.org
Date:     2013-03-10 15:46:39 -0700 (Sun, 10 Mar 2013)
Log Message:
-----------
textproc/histo:
  new port

Added Paths:
-----------
    trunk/dports/textproc/histo/
    trunk/dports/textproc/histo/Portfile
    trunk/dports/textproc/histo/files/
    trunk/dports/textproc/histo/files/src-histo.c.patch

Added: trunk/dports/textproc/histo/Portfile
===================================================================
--- trunk/dports/textproc/histo/Portfile	                        (rev 0)
+++ trunk/dports/textproc/histo/Portfile	2013-03-10 22:46:39 UTC (rev 103959)
@@ -0,0 +1,37 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           github 1.0
+
+github.setup        visionmedia histo 0.0.1
+maintainers         g5pw openmaintainer
+
+categories          textproc
+description         Plot histograms in the terminal with arbitrary streaming\
+                    or non-streaming data.
+long_description    ${description}
+
+platforms           darwin
+license             MIT
+
+checksums           rmd160  2ddfec0b86d6fbbb69b84e58b765fdbcd4d4f766 \
+                    sha256  403ae7a8b3cf04f7f5e4ef245d3853e2773a643ea7cf5404d3785e11c8ba3709
+
+# Fix a nasty visualization in iTerm, waiting for upstream release
+patchfiles          src-histo.c.patch
+
+use_configure       no
+
+build.args          CC=${configure.cc}
+
+build.target        ${name}
+
+destroot.destdir    PREFIX="${destroot}${prefix}"
+
+post-destroot {
+    xinstall -d ${destroot}${prefix}/share/doc/${name}
+    move ${worksrcpath}/Readme.md ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${destroot}${prefix}/share/examples/
+    move ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
+}


Property changes on: trunk/dports/textproc/histo/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/textproc/histo/files/src-histo.c.patch
===================================================================
--- trunk/dports/textproc/histo/files/src-histo.c.patch	                        (rev 0)
+++ trunk/dports/textproc/histo/files/src-histo.c.patch	2013-03-10 22:46:39 UTC (rev 103959)
@@ -0,0 +1,11 @@
+--- src/histo.c	2013-03-10 23:39:44.000000000 +0100
++++ src/histo.c.new	2013-03-10 23:39:08.000000000 +0100
+@@ -100,7 +100,7 @@
+     char *c = y < 0 ? "░" : "█";
+     if (y < 0) y = -y;
+     while (y--) {
+-      term_move_to(sx + x * xbarw, y - 1 - h + ypad);
++      term_move_to(sx + x * xbarw, abs( y - 1 - h + ypad ));
+       term_reset();
+       printf("%s", c);
+     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130310/6e370e04/attachment.html>


More information about the macports-changes mailing list