[151943] trunk/dports/sysutils/peco/Portfile
kimuraw at macports.org
kimuraw at macports.org
Wed Aug 24 07:27:59 PDT 2016
Revision: 151943
https://trac.macports.org/changeset/151943
Author: kimuraw at macports.org
Date: 2016-08-24 07:27:58 -0700 (Wed, 24 Aug 2016)
Log Message:
-----------
sysutils/peco: upgrade to 0.4.2
- update dependencies form glide.yaml and glide.lock
- introduce utility proc for dependencies
Modified Paths:
--------------
trunk/dports/sysutils/peco/Portfile
Modified: trunk/dports/sysutils/peco/Portfile
===================================================================
--- trunk/dports/sysutils/peco/Portfile 2016-08-24 13:25:42 UTC (rev 151942)
+++ trunk/dports/sysutils/peco/Portfile 2016-08-24 14:27:58 UTC (rev 151943)
@@ -3,8 +3,8 @@
PortSystem 1.0
PortGroup github 1.0
-github.setup peco peco 0.3.5 v
-revision 1
+github.setup peco peco 0.4.2 v
+revision 0
categories sysutils
homepage http://peco.github.io
description Simplistic interactive filtering tool
@@ -23,59 +23,113 @@
# peco
checksums peco-${version}.tar.gz \
- md5 641848c6767a3a9f98cf39e04f375220 \
- sha1 64aee3c3d58b3cea0a62eba615ad3d06db6ef2e8 \
- sha256 185be39a576de5b4a218e0a54bc1475750e7612341a4877ca80f49b420499476
+ md5 4aa80b27519cae80b18a097a9b739a14 \
+ sha1 5edb7cfa9d1d0324b49da51e18376e3c1c81f1d5 \
+ sha256 6399451943bc03552d8a22b35453ddbbe9e20812bbc82b03df455dc3bda97c71
+# utility for go-vendoring codes
+set go.vendors {}
+proc go.vendors-append {imp_name vers} {
+ global go.vendors
+ set vlist [split ${imp_name} /]
+
+ set vdomain [lindex ${vlist} 0]
+ set vuser [lindex ${vlist} 1]
+ set vname [lindex ${vlist} 2]
+
+ # NOTE: now expects github.com or golang.org
+ switch -exact ${vdomain} {
+ github.com { set ghuser ${vuser} }
+ golang.org { set ghuser golang }
+ }
+
+ set fname ${ghuser}-${vname}
+ lappend go.vendors [list ${fname} ${imp_name} ${vers}]
+
+ global ${vname}.version
+ set ${vname}.version ${vers}
+
+ master_sites-append https://github.com/${ghuser}/${vname}/tarball/${vers}:${fname}
+ distfiles-append ${fname}-${vers}.tar.gz:${fname}
+}
+
# dependencies to build. remember revbump when you change version of dependencies.
-set go-flags.version fc93116606d0a71d7e9de0ad5734fdb4b8eae834
-set go-runewidth.version 12e0ff74603c9a3209d8bf84f8ab349fe1ad9477
-set termbox-go.version 62033d80b58736ea31beaf43348f5147913af30e
-set google-btree.version 0c05920fc3d98100a5e3f7fd339865a6e2aaa671
-# dependencies
-master_sites-append https://github.com/jessevdk/go-flags/tarball/${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 \
- https://github.com/google/btree/tarball/${google-btree.version}:google-btree
-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 \
- google-btree-${google-btree.version}.tar.gz:google-btree
-checksums-append jessevdk-go-flags-v${go-flags.version}.tar.gz \
- md5 9f8181755c1b8cc75c6cb4a02f7df4ad \
- sha1 b2974783c11ffbbcdf4b28fe9be4f58e57cb1b65 \
- sha256 b9ca31c53e8ac4acc6d20cc2fd3e0b4953b7b1302ecbeafaa35b622896f3830d \
+# https://github.com/peco/peco/blob/master/glide.lock
+go.vendors-append github.com/davecgh/go-spew \
+ 5215b55f46b2b919f50a1df0eaa5886afe4e3b3d
+go.vendors-append github.com/google/btree \
+ 00edb8c3163323f673bbe3c04afd9429eb12117d
+go.vendors-append github.com/jessevdk/go-flags \
+ 6b9493b3cb60367edd942144879646604089e3f7
+go.vendors-append github.com/lestrrat/go-pdebug \
+ 2e6eaaa5717f81bda41d27070d3c966f40a1e75f
+go.vendors-append github.com/mattn/go-runewidth \
+ d6bea18f789704b5f83375793155289da36a3c7f
+go.vendors-append github.com/nsf/termbox-go \
+ 362329b0aa6447eadd52edd8d660ec1dff470295
+go.vendors-append github.com/pkg/errors \
+ d814416a46cbb066b728cfff58d30a986bc9ddbe
+go.vendors-append github.com/stretchr/testify \
+ 6cb3b85ef5a0efef77caef88363ec4d4b5c0976d
+go.vendors-append golang.org/x/net \
+ ef00b378c73f107bf44d5c9b69875255ce89b79a
+
+checksums-append davecgh-go-spew-${go-spew.version}.tar.gz \
+ md5 f8973a1b231ca486df664abf7248aab2 \
+ sha1 ee586c6a96b6049ea3af98340e76c4d656500daf \
+ sha256 eb362987151a467812f3712b9bd660a5e34828bd78ade32dd4a0c76b257c6480 \
+ google-btree-${btree.version}.tar.gz \
+ md5 8271747470e19f6b969e8d64687eebaf \
+ sha1 224a3eb6d10bf70558269b4f3ad1a0ff4cd9bf40 \
+ sha256 9fae9e6e5004403bb6ce0d5b188b74dcec64200b4c049af6ebd22d189079cbca \
+ jessevdk-go-flags-${go-flags.version}.tar.gz \
+ md5 a4892dfac3c3655138e2394083bcc0c3 \
+ sha1 97f979987c9c57901718819b42352d4af3980882 \
+ sha256 07450c65985eb2821c4bb48bf1c5548907bb3a3a8de540b72067ce93438c6355 \
+ lestrrat-go-pdebug-${go-pdebug.version}.tar.gz \
+ md5 a7a00fd430599d9af79ae9958492a3ab \
+ sha1 b6f890f2690012c5ac973f1a5bc3ffc64b9d9912 \
+ sha256 7c1574a70158def432a1a3d6306592e2b89cc1668467e599cd71f818b6084bcf \
mattn-go-runewidth-${go-runewidth.version}.tar.gz \
- md5 317aa7a94231feaf536f40f9600fd1b1 \
- sha1 7024c1587f064d40d5659c36bca5a3bb672b9f50 \
- sha256 722af0e56e90bd49ae36c7a5eb3bcc322ee9093379e5f03ba849f73cd9dd86eb \
+ md5 564a154f948a2d15b2cca4988e639197 \
+ sha1 8d63a10d0c5fa0bcc7430f423a4f04cbf9bc50fe \
+ sha256 517f297b88a6579111a1e46e045909a0feedb40d0a71313ef70805d6b82e8d55 \
nsf-termbox-go-${termbox-go.version}.tar.gz \
- md5 3d60a80b309cd38e14ffba977fcc00eb \
- sha1 56b7382f78df5bf2a2fc89ce0586af3ee11d5899 \
- sha256 dae444f8b8920281d3221ff4be1dc8d7c74b37537dc111bddca464c1f9b13c5b \
- google-btree-${google-btree.version}.tar.gz \
- md5 3c20d1ca9728edd0777faf1941022d33 \
- sha1 27ae29bfe84f4dc714f7a3f7cf53d6082b97a1f0 \
- sha256 42ea86dba6bcbc055af6cdfbcfc6303695d2c9d70cf4bb882a27d55aab945d16
-# setup build sources like this:
+ md5 3a8dcb1cf1fd80921c3a21e7e6d2bcf7 \
+ sha1 4d9e079353f255f6f7945defc74941224761c8e2 \
+ sha256 e08a05235d67c7e30be4ebf852ec055572785353ff8f2a26a3aa106ec8fca288 \
+ pkg-errors-${errors.version}.tar.gz \
+ md5 67fa844e10dffc98b51519f416869148 \
+ sha1 27112af32c1ed79a6bc581991d362cee92109d4e \
+ sha256 8b4b6ef1618f280cc488404d961efeba9d6a8918d0b0d2c375b94125b3dc3059 \
+ stretchr-testify-${testify.version}.tar.gz \
+ md5 5b8335e2934a13a24bb7a0d15f55aff0 \
+ sha1 a1fe9fc6df0c2b227cd7986e03d4dd659cef3b59 \
+ sha256 027fc35a5e2629604d7aa0f3ccc95aa1843fb19e8524a567f9a28a241c76aa6b \
+ golang-net-${net.version}.tar.gz \
+ md5 64966c9773338ebad6152de901266b57 \
+ sha1 a745c2bc2edbdcd66c75fb5efd58807733e863cc \
+ sha256 b1ad6d6e8b3e95e6d172beccb1061d7f40b6e7db102adb1d407f33804f897363
+
+# setup build sources as gopath style:
# workpath/
-# peco-0.1.12/
+# peco-0.4.1/
# gopath/src/github.com/
# peco/peco/
# jessevdk/go-flags-v/
# :
-set gopath ${workpath}/GOPATH
+set gopath ${workpath}/gopath
+set gosrc ${gopath}/src
post-extract {
- 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
- file mkdir ${gopath}/src/github.com/google
- move [glob ${workpath}/google-btree-*] ${gopath}/src/github.com/google/btree
+ file mkdir ${gosrc}/github.com/peco
+ ln -s ${worksrcpath} ${gosrc}/github.com/peco/peco
+
+ foreach vlist ${go.vendors} {
+ set fname [lindex ${vlist} 0]
+ set imp_name [lindex ${vlist} 1]
+ file mkdir ${gosrc}/[file dirname ${imp_name}]
+ move [glob ${workpath}/${fname}-*] ${gosrc}/${imp_name}
+ }
}
build.cmd go
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160824/7b6336e3/attachment.html>
More information about the macports-changes
mailing list