Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Nov 2021 04:16:13 GMT
From:      Lewis Cook <lcook@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7e297db40d53 - main - textproc/gh-grep: Add port: Find lines matching a pattern within GitHub repositories
Message-ID:  <202111030416.1A34GDeS036449@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by lcook:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7e297db40d539fc6c9eff8f0f88a0e5887eb9f4e

commit 7e297db40d539fc6c9eff8f0f88a0e5887eb9f4e
Author:     Lewis Cook <lcook@FreeBSD.org>
AuthorDate: 2021-11-03 04:09:44 +0000
Commit:     Lewis Cook <lcook@FreeBSD.org>
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 <bsd.port.mk>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111030416.1A34GDeS036449>