Files
Joshua Root 38a902085a codesearch: avoid overriding build phase
This fixes incorrect handling of build.env, which would need to be
quoted to be safe to pass to a shell.
2021-03-30 09:17:44 +11:00

41 lines
1.3 KiB
Tcl

# -*- 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 golang 1.0
go.setup github.com/google/codesearch 1.2.0 v
# Epoch 1: Migration to github
# Epoch 2: Migration to releases
epoch 2
revision 0
categories devel
maintainers nomaintainer
description Indexed regular expression-based search
long_description \
Code Search is a tool for indexing and then performing regular \
expression searches over large bodies of source code. It is a \
set of command-line programs written in Go
license BSD
checksums \
rmd160 7f5e126205efc9a9225ba10144ef3cb06a8f698e \
sha256 e1632998d912b9f577f048fac44d73b41a5b1664bde1c97b48ac8e6918646fa8 \
size 34130
platforms darwin
set progs [list cgrep csearch cindex]
build.cmd "for prog in ${progs}; do
${build.cmd} cmd/\${prog}/\${prog}.go
done"
destroot {
xinstall -W ${worksrcpath} {*}${progs} ${destroot}${prefix}/bin
xinstall -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 ${worksrcpath}/LICENSE \
${destroot}${prefix}/share/doc/${name}/
}