From nobody Fri Sep 23 13:09:01 2022 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 4MYst537x5z4d06V; Fri, 23 Sep 2022 13:09:01 +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 4MYst52cY8z42bH; Fri, 23 Sep 2022 13:09:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663938541; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RzPuDo7Ly0mKxpaKRHsC4NpFnzgem9ELGiBdceD/L9A=; b=CNPD9YzA0qNSBWZZ2i+HosG513tdTg2zymWvjrgvV90GHtgnvAhmUNwdn8toAwnRyAoX9A QRq6fIhI+nYHUOF8IpHafwrAdBzSTnxEzQmZmozu1FIlXfdPHmwAt0itsYmjKy0HUndlva 5JMRS5TX3GcfxMv/MMMb6J7hAnVzpuPbAoAHIZudXAEWSDD1sCJebHdUksnJxBGhMkkXSf tZ1SHOz3GPWjMUIEJZQgVUnogt8rK0VKMgLRqMg/hvqSgID/kJDQiC5Dys5pS0ukleeJY8 9t/rbfMpYiAJfFr2oICzTDYcI62SeebxaH+gh3llYCV+UXIlcA01Q8i6+KSMeg== 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 4MYst51dw2zlPp; Fri, 23 Sep 2022 13:09:01 +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 28ND91Kh099018; Fri, 23 Sep 2022 13:09:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28ND916j099017; Fri, 23 Sep 2022 13:09:01 GMT (envelope-from git) Date: Fri, 23 Sep 2022 13:09:01 GMT Message-Id: <202209231309.28ND916j099017@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?Q?Lo=C3=AFc=20Bartoletti?= Subject: git: cbae2daa140c - main - textproc/termshot: Creates screenshots based on terminal command output 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: lbartoletti X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cbae2daa140c2a002eb60df93d67dbfe0ee0cfc3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663938541; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RzPuDo7Ly0mKxpaKRHsC4NpFnzgem9ELGiBdceD/L9A=; b=G0ym/CrWHj7dSlYVCRX6W1rq4ecK32LTpo2f6Fymg8oHSavvSWvNVXmgz9A8LIA2X7BQBn b/dg5BqCfkJ3iCoOEAHTemk2JQ2h2CttrabQ9eb/RtSUUJkmdOVGjs7XP9Jy8AtblrhFNI srid/5cjVEbVZZTK8taAJ108anvdBjRZ6SmshvZYHJt74t5CnsxunuQW12/DgfqVg9nHjA rpuMMBLitJlw8uSdx6WGe3y34zxjSqUJ7u8+W2EgTm5T16oTuR4SA4oWzEJfVvrq/8mDi9 hQpZQeo6oNWuFQdRxyQvNe8kE8cNNiiUW+LR4P+ahGElqKE8fMx8nT7FN2ADjg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663938541; a=rsa-sha256; cv=none; b=Xhur3x/87xM+TWo8E0Fa5zhX4VQSBdjlrZ1dpqcv3Yv7NhrHV11Z75cTi84ijokJshWnQH Lf3wY7nHm/ioaMQ8fHqPnJOjsZPF9O3A70Ta5D6wxDa3V9esi59Fq7qdE0QHtveORv1mvd 7aqfueEY5SWxi4IwEhHxxVNhNNTVGpmh8c736r6wy9GtHBjUwOdZqnNPnBRrHgun4xIemb eNCrNgrlrF7+3Y3q0ARnXZFkNvPsx7d0khxpms/FRSJm/6P0lqZSRFMBavPIYVy+icosSa c1zgk4e6649kdUzODd/h6CnMOu2skQLWHczY8mNHdpXvjeKhh7mcrchgB+Rq9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by lbartoletti: URL: https://cgit.FreeBSD.org/ports/commit/?id=cbae2daa140c2a002eb60df93d67dbfe0ee0cfc3 commit cbae2daa140c2a002eb60df93d67dbfe0ee0cfc3 Author: Loïc Bartoletti AuthorDate: 2022-09-23 13:05:58 +0000 Commit: Loïc Bartoletti 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 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.