[121692] trunk/dports/sysutils

kimuraw at macports.org kimuraw at macports.org
Fri Jul 4 07:14:30 PDT 2014


Revision: 121692
          https://trac.macports.org/changeset/121692
Author:   kimuraw at macports.org
Date:     2014-07-04 07:14:30 -0700 (Fri, 04 Jul 2014)
Log Message:
-----------
sysutils/peco: new port "peco" - http://peco.github.io

peco can be a great tool to filter stuff like logs, process stats,
find files, because unlike grep, you can type as you think and look
through the current results.

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

Added: trunk/dports/sysutils/peco/Portfile
===================================================================
--- trunk/dports/sysutils/peco/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/peco/Portfile	2014-07-04 14:14:30 UTC (rev 121692)
@@ -0,0 +1,82 @@
+# $Id$
+PortSystem      1.0
+
+name            peco
+version         0.1.12
+revision        0
+categories      sysutils
+homepage        http://peco.github.io
+description     Simplistic interactive filtering tool
+long_description \
+        peco can be a great tool to filter stuff like logs, process stats, find \
+        files, because unlike grep, you can type as you think and look through  \
+        the current results.
+license         MIT
+
+maintainers     kimuraw openmaintainer
+platforms       darwin
+
+depends_build   port:go
+use_configure   no
+dist_subdir     go
+
+# peco
+master_sites    https://github.com/peco/peco/tarball/v${version}:peco
+distfiles       peco-peco-v${version}.tar.gz:peco
+checksums       peco-peco-v${version}.tar.gz \
+                    md5 c1048c628006c2dee8c3ceba187e35ae \
+                    sha1 c2a695f758ded81d4a14d313d989bb7c6ec1213a \
+                    sha256 b52a0fac19f7f97836d3ef1c84633487492d76b61106d84887f8bb8d23939834
+
+# dependencies to build. remember revbump when you change version of dependencies.
+set go-flags.version        1
+set go-runewidth.version    d70c973ddedf458fb28531e3335a972c2cc28b00
+set termbox-go.version      81b415f8400796494f30d99fc9df17e03acacc71
+# dependencies
+master_sites-append https://github.com/jessevdk/go-flags/tarball/v${go-flags.version}:go-flags \
+                    https://github.com/mattn/go-runewidth/tarball/${go-runewidth.version}:go-runewidth \
+                    https://github.com/nsf/termbox-go/tarball/${termbox-go.version}:termbox-go
+distfiles-append    jessevdk-go-flags-v${go-flags.version}.tar.gz:go-flags \
+                    mattn-go-runewidth-${go-runewidth.version}.tar.gz:go-runewidth \
+                    nsf-termbox-go-${termbox-go.version}.tar.gz:termbox-go
+checksums-append    jessevdk-go-flags-v${go-flags.version}.tar.gz \
+                        md5 33244c6469610036f0c38b8c772f7533 \
+                        sha1 0a0878b70fa263efc3fcb330c999138772a43893 \
+                        sha256 e384b7a12c91ad9202e208665cc51c5fbdf1eb21711fd9fce67426abc5adb58f \
+                    mattn-go-runewidth-${go-runewidth.version}.tar.gz \
+                        md5 bef4925c7f295716df921309f82b4394 \
+                        sha1 b9b8b60f15f1298483b07545bc41f9b6e6d2a79f \
+                        sha256 fb03cbe156fc21b974a350ca76afe667e9aa3cab08010cf36a902f32792c8723 \
+                    nsf-termbox-go-${termbox-go.version}.tar.gz \
+                        md5 0e7364e798fe0154eae461bf143e21e4 \
+                        sha1 98c977503395d5f689c096b7ec30230a2fbbf487 \
+                        sha256 5c617be6cb02f991b3a71e7ac6c5d4de50a9730a0952af6d0892fc3f02ccf8ed
+
+# setup build sources like this:
+#   workpath/
+#       peco-0.1.12/
+#       gopath/src/github.com/
+#           peco/peco/
+#           jessevdk/go-flags-v/
+#             :
+set gopath      ${workpath}/GOPATH
+post-extract {
+    move [glob ${workpath}/peco-peco-*] ${worksrcpath}
+    file mkdir ${gopath}/src/github.com/peco
+    ln -s ${worksrcpath} ${gopath}/src/github.com/peco/peco
+    file mkdir ${gopath}/src/github.com/jessevdk
+    move [glob ${workpath}/jessevdk-go-flags-*] ${gopath}/src/github.com/jessevdk/go-flags
+    file mkdir ${gopath}/src/github.com/mattn
+    move [glob ${workpath}/mattn-go-runewidth-*] ${gopath}/src/github.com/mattn/go-runewidth
+    file mkdir ${gopath}/src/github.com/nsf
+    move [glob ${workpath}/nsf-termbox-go-*] ${gopath}/src/github.com/nsf/termbox-go
+}
+
+build.cmd       go
+build.target    build
+build.args      cmd/peco/peco.go
+build.env       GOPATH="${gopath}"
+
+destroot {
+    xinstall "${worksrcpath}/peco" "${destroot}/${prefix}/bin"
+}


Property changes on: trunk/dports/sysutils/peco/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140704/7e91fc83/attachment.html>


More information about the macports-changes mailing list