source: trunk/dports/devel/codesearch/Portfile

Last change on this file was 144689, checked in by ciserlohn@…, 20 months ago

dependents of go: bump revision to force rebuilding with go 1.5.3

See https://groups.google.com/forum/#!msg/golang-dev/MEATuOi_ei4/nl8jrt9YEwAJ

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- 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
2# $Id: Portfile 144689 2016-01-15 13:53:13Z ryandesign@macports.org $
3
4# Adapted from https://bitbucket.org/seanfarley/scienceports/src/de7cc636fbec/devel/codesearch/Portfile?at=default
5
6PortSystem          1.0
7PortGroup           github 1.0
8
9github.setup        google codesearch a45d81b
10version             20150717
11# Epoch 1: Migration to github
12epoch               1
13revision            1
14categories          devel
15maintainers         nomaintainer
16description         Indexed regular expression-based search
17long_description \
18    Code Search is a tool for indexing and then performing regular \
19    expression searches over large bodies of source code. It is a \
20    set of command-line programs written in Go
21
22license             BSD
23
24checksums \
25    rmd160  f87db6cc7d131a25096c74434474ff924f34dca7 \
26    sha256  9db1fa9f7f984cd9a03e593d32855ed76da56ac3525284894a70becd1467a54c
27
28platforms           darwin
29
30depends_lib         port:go
31
32worksrcdir          src/github.com/google/codesearch
33
34post-extract {
35    xinstall -d ${workpath}/src/github.com/google
36    move ${workpath}/${name}-${github.version} \
37        ${worksrcpath}
38}
39
40use_configure       no
41set progs           [list cgrep csearch cindex]
42
43build {
44    foreach prog ${progs} {
45        system -W ${worksrcpath} \
46          "GOPATH=${workpath} ${prefix}/bin/go build cmd/${prog}/${prog}.go"
47    }
48}
49
50destroot {
51    xinstall -W ${worksrcpath} {*}${progs} ${destroot}${prefix}/bin
52
53    xinstall -d ${destroot}${prefix}/share/doc/${name}
54    xinstall -m 644 ${worksrcpath}/LICENSE \
55        ${destroot}${prefix}/share/doc/${name}/
56}
Note: See TracBrowser for help on using the repository browser.