Skip to content
Permalink
Browse files

codesearch: update to 1.2.0

  • Loading branch information
herbygillot authored and reneeotten committed Jun 27, 2020
1 parent 1b78a95 commit 35b9cf1132ff9096046027a11f3e11f0bc090c4a
Showing with 6 additions and 17 deletions.
  1. +6 −17 devel/codesearch/Portfile
@@ -1,9 +1,9 @@
# -*- 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

PortSystem 1.0
PortGroup github 1.0
PortGroup golang 1.0

github.setup google codesearch 1.1.0 v
go.setup github.com/google/codesearch 1.2.0 v
# Epoch 1: Migration to github
# Epoch 2: Migration to releases
epoch 2
@@ -19,29 +19,18 @@ long_description \
license BSD

checksums \
rmd160 0db92036de842e0e42859fbf6ee64d1b8490d6f5 \
sha256 1d46517714d449b4e64f155405b2c9f150e8c68b158197acf90c72654a5751cf \
size 34096
rmd160 7f5e126205efc9a9225ba10144ef3cb06a8f698e \
sha256 e1632998d912b9f577f048fac44d73b41a5b1664bde1c97b48ac8e6918646fa8 \
size 34130

platforms darwin

depends_lib port:go

worksrcdir src/github.com/google/codesearch

post-extract {
xinstall -d ${workpath}/src/github.com/google
move ${workpath}/${name}-${github.version} \
${worksrcpath}
}

use_configure no
set progs [list cgrep csearch cindex]

build {
foreach prog ${progs} {
system -W ${worksrcpath} \
"GOPATH=${workpath} ${prefix}/bin/go build cmd/${prog}/${prog}.go"
"${build.env} ${build.cmd} cmd/${prog}/${prog}.go"
}
}

0 comments on commit 35b9cf1

Please sign in to comment.
You can’t perform that action at this time.