git: cbae2daa140c - main - textproc/termshot: Creates screenshots based on terminal command output
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 23 Sep 2022 13:09:01 UTC
The branch main has been updated by lbartoletti:
URL: https://cgit.FreeBSD.org/ports/commit/?id=cbae2daa140c2a002eb60df93d67dbfe0ee0cfc3
commit cbae2daa140c2a002eb60df93d67dbfe0ee0cfc3
Author: Loïc Bartoletti <lbartoletti@FreeBSD.org>
AuthorDate: 2022-09-23 13:05:58 +0000
Commit: Loïc Bartoletti <lbartoletti@FreeBSD.org>
CommitDate: 2022-09-23 13:08:56 +0000
textproc/termshot: Creates screenshots based on terminal command output
Terminal screenshot tool, which takes the console output and renders an output
image that resembles a user interface window. The idea is similar to what
carbon.now.sh, instaco.de, or codekeep.io/screenshot do. Instead of applying
syntax highlight based on a programming language, termshot is using the ANSI
escape codes of the program output. The result is clean screenshot (or
recreation) of your terminal output. If you want, it has an option to edit the
program output before creating the screenshot. This way you can remove unwanted
sensitive content. Like time, watch, or perf, just place termshot before the
command and you are set.
WWW: https://github.com/homeport/termshot
---
textproc/Makefile | 1 +
textproc/termshot/Makefile | 23 +++++++++++++++++++++++
textproc/termshot/distinfo | 5 +++++
textproc/termshot/pkg-descr | 9 +++++++++
4 files changed, 38 insertions(+)
diff --git a/textproc/Makefile b/textproc/Makefile
index 978e0f8681d4..054ad0515a03 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1921,6 +1921,7 @@
SUBDIR += te-aspell
SUBDIR += te-hunspell
SUBDIR += teckit
+ SUBDIR += termshot
SUBDIR += tet-aspell
SUBDIR += texi2db
SUBDIR += texi2html
diff --git a/textproc/termshot/Makefile b/textproc/termshot/Makefile
new file mode 100644
index 000000000000..ae488f7df829
--- /dev/null
+++ b/textproc/termshot/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= termshot
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.2.4
+CATEGORIES= textproc graphics
+
+MAINTAINER= lbartoletti@FreeBSD.org
+COMMENT= Creates screenshots based on terminal command output
+WWW= https://github.com/homeport/termshot
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go:modules
+GO_MODULE= github.com/homeport/termshot
+GO_TARGET= ./cmd/${PORTNAME}
+GO_BUILDFLAGS= -tags noupdater \
+ -ldflags "\
+ -s -w \
+ -X ${GO_MODULE}/internal.Version=${DISTVERSION}"
+
+PLIST_FILES= bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/textproc/termshot/distinfo b/textproc/termshot/distinfo
new file mode 100644
index 000000000000..3c0ef9f4501d
--- /dev/null
+++ b/textproc/termshot/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1663936620
+SHA256 (go/textproc_termshot/termshot-v0.2.4/v0.2.4.mod) = 4cfbae01334e0617458a92ce19e4c1a1b06a85200ec806b6cd94e150ff733af8
+SIZE (go/textproc_termshot/termshot-v0.2.4/v0.2.4.mod) = 1337
+SHA256 (go/textproc_termshot/termshot-v0.2.4/v0.2.4.zip) = c4eeb410a5ce01c21632578c1c7dcb208e9e98e708d4c2cd75f372899547b99a
+SIZE (go/textproc_termshot/termshot-v0.2.4/v0.2.4.zip) = 703133
diff --git a/textproc/termshot/pkg-descr b/textproc/termshot/pkg-descr
new file mode 100644
index 000000000000..36dc6db0b8b8
--- /dev/null
+++ b/textproc/termshot/pkg-descr
@@ -0,0 +1,9 @@
+Terminal screenshot tool, which takes the console output and renders an output
+image that resembles a user interface window. The idea is similar to what
+carbon.now.sh, instaco.de, or codekeep.io/screenshot do. Instead of applying
+syntax highlight based on a programming language, termshot is using the ANSI
+escape codes of the program output. The result is clean screenshot (or
+recreation) of your terminal output. If you want, it has an option to edit the
+program output before creating the screenshot. This way you can remove unwanted
+sensitive content. Like time, watch, or perf, just place termshot before the
+command and you are set.