From nobody Wed Nov 3 04:16:13 2021 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A4A9D1831016; Wed, 3 Nov 2021 04:16:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HkYNs4Dp0z4tFC; Wed, 3 Nov 2021 04:16:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6D2ED11F6E; Wed, 3 Nov 2021 04:16:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1A34GDLQ036450; Wed, 3 Nov 2021 04:16:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1A34GDeS036449; Wed, 3 Nov 2021 04:16:13 GMT (envelope-from git) Date: Wed, 3 Nov 2021 04:16:13 GMT Message-Id: <202111030416.1A34GDeS036449@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Lewis Cook Subject: git: 7e297db40d53 - main - textproc/gh-grep: Add port: Find lines matching a pattern within GitHub repositories List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lcook X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7e297db40d539fc6c9eff8f0f88a0e5887eb9f4e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by lcook: URL: https://cgit.FreeBSD.org/ports/commit/?id=7e297db40d539fc6c9eff8f0f88a0e5887eb9f4e commit 7e297db40d539fc6c9eff8f0f88a0e5887eb9f4e Author: Lewis Cook AuthorDate: 2021-11-03 04:09:44 +0000 Commit: Lewis Cook CommitDate: 2021-11-03 04:10:11 +0000 textproc/gh-grep: Add port: Find lines matching a pattern within GitHub repositories WWW: https://github.com/k1LoW/gh-grep --- textproc/Makefile | 1 + textproc/gh-grep/Makefile | 28 ++++++++++++++++++++++++++++ textproc/gh-grep/distinfo | 5 +++++ textproc/gh-grep/pkg-descr | 4 ++++ 4 files changed, 38 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 5ade647b92cb..b6f301949eda 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -226,6 +226,7 @@ SUBDIR += gastex SUBDIR += gd-aspell SUBDIR += gdome2 + SUBDIR += gh-grep SUBDIR += git-chglog SUBDIR += gitlab-elasticsearch-indexer SUBDIR += gl-aspell diff --git a/textproc/gh-grep/Makefile b/textproc/gh-grep/Makefile new file mode 100644 index 000000000000..848543b54f16 --- /dev/null +++ b/textproc/gh-grep/Makefile @@ -0,0 +1,28 @@ +PORTNAME= gh-grep +DISTVERSIONPREFIX= v +DISTVERSION= 0.6.0 +CATEGORIES= textproc + +MAINTAINER= lcook@FreeBSD.org +COMMENT= Find lines matching a pattern within GitHub repositories + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules +GO_MODULE= github.com/k1LoW/${PORTNAME} +GO_BUILDFLAGS= -ldflags "\ + -s -w \ + -X ${GO_MODULE}/version.Version=${DISTVERSION}" + +PLIST_FILES= bin/${PORTNAME} +PORTDOCS= CHANGELOG.md README.md + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} \ + ${STAGEDIR}${DOCSDIR} + +.include diff --git a/textproc/gh-grep/distinfo b/textproc/gh-grep/distinfo new file mode 100644 index 000000000000..bce2c0fa8513 --- /dev/null +++ b/textproc/gh-grep/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1635909568 +SHA256 (go/textproc_gh-grep/gh-grep-v0.6.0/v0.6.0.mod) = fbdaa8e8b202f5ce9bf36d01c88414c578a111aae9472f8e0cf5fe447a558280 +SIZE (go/textproc_gh-grep/gh-grep-v0.6.0/v0.6.0.mod) = 295 +SHA256 (go/textproc_gh-grep/gh-grep-v0.6.0/v0.6.0.zip) = 9679414f434c312b3f4111fa7b7945fc35f984bad690c8016b9f85a4412e6233 +SIZE (go/textproc_gh-grep/gh-grep-v0.6.0/v0.6.0.zip) = 39514 diff --git a/textproc/gh-grep/pkg-descr b/textproc/gh-grep/pkg-descr new file mode 100644 index 000000000000..892f6ccc8d0c --- /dev/null +++ b/textproc/gh-grep/pkg-descr @@ -0,0 +1,4 @@ +Find lines matching a pattern within GitHub repositories +using the GitHub API. + +WWW: https://github.com/k1LoW/gh-grep