[Bug 243273] [NEW PORT] textproc/codesearch: Fast indexed grep tool

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 12 20:05:52 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243273

--- Comment #2 from eborisch+FreeBSD at gmail.com ---
(In reply to Dmitri Goutnik from comment #1)

I can, but it's an old package, doesn't rely on any external modules and
doesn't work cleanly with the build that USES=go, so it ends up looking like
this. Let me know which way you would like to go.

Thanks!

==

FreeBSD$

PORTNAME=       codesearch
DISTVERSIONPREFIX=      v
DISTVERSION=    1.1.0
CATEGORIES=     textproc

MAINTAINER=     eborisch at gmail.com
COMMENT=        Fast (indexed) text search tool from Google

LICENSE=        BSD3CLAUSE

USES=           go:no_targets
USE_GITHUB=     yes
GH_ACCOUNT=     google
GH_SUBDIR=      src/github.com/google/codesearch

BIN_FILES=      cgrep csearch cindex

PORTDOCS=       LICENSE README AUTHORS CONTRIBUTORS

OPTIONS_DEFINE= DOCS

do-build:
.for bin in ${BIN_FILES}
        cd ${WRKSRC}/src/github.com/google/codesearch/cmd/${bin}; ${SETENV}
${BUILD_ENV} GOPATH=${WRKSRC} go build
.endfor

do-install:
.for bin in ${BIN_FILES}
        cd ${WRKSRC}/src/github.com/google/codesearch/cmd/${bin}; ${CP} ${bin}
${STAGEDIR}${PREFIX}/bin/${src}
.endfor

post-install-DOCS-on:
        ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
        ${CP} ${WRKSRC}/src/github.com/google/codesearch/${doc}
${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list