aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLewis Cook <lcook@FreeBSD.org>2021-11-03 04:09:44 +0000
committerLewis Cook <lcook@FreeBSD.org>2021-11-03 04:10:11 +0000
commit7e297db40d539fc6c9eff8f0f88a0e5887eb9f4e (patch)
treec4caa20f1416c15bec4bf409526aa00c8363f96d
parentfd56738eb0f8fdb44406b065298fce083c9212f9 (diff)
textproc/gh-grep: Add port: Find lines matching a pattern within GitHub repositories
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/gh-grep/Makefile28
-rw-r--r--textproc/gh-grep/distinfo5
-rw-r--r--textproc/gh-grep/pkg-descr4
4 files changed, 38 insertions, 0 deletions
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