[87271] trunk/dports/sysutils

singingwolfboy at macports.org singingwolfboy at macports.org
Tue Nov 15 09:39:30 PST 2011


Revision: 87271
          http://trac.macports.org/changeset/87271
Author:   singingwolfboy at macports.org
Date:     2011-11-15 09:39:29 -0800 (Tue, 15 Nov 2011)
Log Message:
-----------
New port: sortu

Added Paths:
-----------
    trunk/dports/sysutils/sortu/
    trunk/dports/sysutils/sortu/Portfile

Added: trunk/dports/sysutils/sortu/Portfile
===================================================================
--- trunk/dports/sysutils/sortu/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/sortu/Portfile	2011-11-15 17:39:29 UTC (rev 87271)
@@ -0,0 +1,46 @@
+# -*- 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
+
+name                sortu
+categories          sysutils
+version             2.1.1
+platforms           darwin
+license             ISC
+maintainers         singingwolfboy openmaintainer
+
+description         sort-unique
+long_description    \
+    The sortu program is a replacement for the sort and uniq programs. It is \
+    common for Unix script writers to want to count how many separate patterns \
+    are in a file. For example, if you have a list of addresses, you may want to \
+    see how many are from each state. So you cut out the state part, sort these, \
+    and then pass them through uniq -c. Sortu does all this for you in a fraction \
+    of the time. \n\n\
+    \
+    Sortu uses a hash table and some decent line processing to provide this \
+    functionality. For a relatively small number of keys, it can be significantly \
+    smaller than using sort, because it does not have to keep temporary files. \
+    If you are dealing with a large number of unique keys then sortu will run \
+    out of memory and stop. Sortu has some basic field and delimiter handling \
+    which should do most basic awk or cut features to separate out the field that \
+    you are sorting on.
+
+homepage            http://256.com/sources/sortu/
+master_sites        http://256.com/sources/sortu/
+extract.suffix      .tgz
+use_configure       no
+
+checksums           rmd160  3ba9452aba8c63571cebc99ac1b54e93c6bac8d6 \
+                    sha256  fda465e1b9fff7a16f06cd5d950d57d43fb53fd28f902b03f0b5f3eb5f18a426
+
+destroot {
+    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
+    set docdir ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${docdir}
+    xinstall -m 644 -W ${worksrcpath} \
+        README.txt \
+        ChangeLog \
+        ${docdir}
+}


Property changes on: trunk/dports/sysutils/sortu/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111115/878bae8b/attachment.html>


More information about the macports-changes mailing list