From nobody Thu Dec 19 13:43:05 2024 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 4YDWvt1NrGz5hDVZ; Thu, 19 Dec 2024 13:43:06 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YDWvt0sm3z4Zny; Thu, 19 Dec 2024 13:43:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734615786; 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=n1y8JC1M/VtqKy0j5wLl7Jp7CGnqG2AFzBmuWuxqQLw=; b=jBKBOQ+RknPaGkQK9TKaXMBQEEwUX2Yj7uen/CrcjQRp13BhQ4bnZoxV3O6jFJGdJzvHNB VjKj0X9W6Ewcdfmqeq1VoG4AbEMgNIDsnboU1Kw3UKL3aY4p5ME2FROFTirZxGW4BqeL7n x4UQhFEb9UGgtiF33dIzgR7Bp8cjuCS0jYheupxv422PsfARXRnjW+xFQq7msr4C+DIjtf NeZCcv5hmTgZUjJ4xEeZ82u8zz1KTrFAvq0Y/m1djy6YgxXkmbMlksmvFtaA3/UFsgEovt ybaQlBI65fuE4oAucQCIBRbGcSu2xLEwF8oSU1MHImzFFlSP1jPQY00gw/Nt/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734615786; 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=n1y8JC1M/VtqKy0j5wLl7Jp7CGnqG2AFzBmuWuxqQLw=; b=BaQH/Zs/6IzRpuvXDMcAceeTAsr0XvRfzlE3MNQZxMF33TZHKDo1OT8APbUzjYYyTnkFw1 q4U0unlioKCxZtKin9tTx8vEOKO2ODGRm6aJvrssr24i+k9lXXs68BhSjRszUnOFGnWQoL XL8QY3V7/zM/dNYJcgCn4XtVzMoemTskAut87td5Q3J8NduCHF74Cxtuiz4Dv7R1eYXfid u5ueH0eQA2YkbrBjM20A59lhGxIYcOR9jdR9cM+g+Be1lvN4KYIA9RhKoUkDX4+rgPAyyg B6LN588c0oz1+Y7wezN7c9yEHjbKnamHBCkipzKxKhTmgSz6yWfgMOD+6w4oHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734615786; a=rsa-sha256; cv=none; b=TmhSpcOeG4Ya1EJF0lUCmHsw1x5rTEqIatcTUvl8X78dgl2A86hJu0kSEKJ2EcdiJRuLMM m+5uP2hNDhmwDGFtfEkckvHvp0GZhvbucu6TvK8B7F+HzEpwfaG+4MSOBhJdNV8xGjvRdm 2vEp0s1NX1u2bVssSexe0YgW734uLQNgugqEp8PUiGOtQzCgsNkSMsxl36K0JVNXiPETq0 Fj10b5mYbq13D7ruuFcYm9WqdR1XrxtgBhAR+q9YS56XYg2qJwPfh9QlyuperJeQuqg+Z4 ixmnEVLb7W+zBglUIXXVPBvDZc3GOKutcTBLJBBKrY4Bp2Jb0b5l5FBZDL2DsQ== 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 4YDWvt0Svvzw19; Thu, 19 Dec 2024 13:43:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BJDh5lJ008610; Thu, 19 Dec 2024 13:43:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BJDh5a1008607; Thu, 19 Dec 2024 13:43:05 GMT (envelope-from git) Date: Thu, 19 Dec 2024 13:43:05 GMT Message-Id: <202412191343.4BJDh5a1008607@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Adam Weinberger Subject: git: 97f77a7cb570 - main - graphics/d2: Add port 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: adamw X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 97f77a7cb57017e623393803984b79080a79be09 Auto-Submitted: auto-generated The branch main has been updated by adamw: URL: https://cgit.FreeBSD.org/ports/commit/?id=97f77a7cb57017e623393803984b79080a79be09 commit 97f77a7cb57017e623393803984b79080a79be09 Author: Adam Weinberger AuthorDate: 2024-12-19 13:39:07 +0000 Commit: Adam Weinberger CommitDate: 2024-12-19 13:39:07 +0000 graphics/d2: Add port D2 is a text-to-diagram tool, similarly to Mermaid and PlantUML. I find it far easier to use than PlantUML, and it produces diagrams that--to my eye--are more visually-appealing than Mermaid. Plus, it's written in Go, so it can compile diagrams to disk (unlike Mermaid) and doesn't require a goofy JVM (unlike PlantUML). https://d2lang.com --- graphics/Makefile | 1 + graphics/d2/Makefile | 18 ++++++++++++++++++ graphics/d2/distinfo | 5 +++++ graphics/d2/pkg-descr | 4 ++++ 4 files changed, 28 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 9e3bfda61ff5..46dc71554900 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -122,6 +122,7 @@ SUBDIR += curtail SUBDIR += cuttlefish SUBDIR += cxxplot + SUBDIR += d2 SUBDIR += darktable SUBDIR += dataplot SUBDIR += dbow2 diff --git a/graphics/d2/Makefile b/graphics/d2/Makefile new file mode 100644 index 000000000000..1b7d513185ec --- /dev/null +++ b/graphics/d2/Makefile @@ -0,0 +1,18 @@ +PORTNAME= d2 +DISTVERSIONPREFIX= v +DISTVERSION= 0.6.8 +CATEGORIES= graphics + +MAINTAINER= adamw@FreeBSD.org +COMMENT= Modern text-to-diagram language +WWW= https://www.d2lang.com + +LICENSE= MPL20 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= go:modules +GO_MODULE= github.com/terrastruct/d2 + +PLIST_FILES= bin/d2 + +.include diff --git a/graphics/d2/distinfo b/graphics/d2/distinfo new file mode 100644 index 000000000000..c15ece772f9a --- /dev/null +++ b/graphics/d2/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1734614498 +SHA256 (go/graphics_d2/d2-v0.6.8/v0.6.8.mod) = 3070a8145612f4ee19be25bd51554e88679c4c9fd388fc29569a9053dee0d06f +SIZE (go/graphics_d2/d2-v0.6.8/v0.6.8.mod) = 2260 +SHA256 (go/graphics_d2/d2-v0.6.8/v0.6.8.zip) = 0b42a53ccfadcec4086e2eb08cde30da0159bbdd6d48c7e7c8ebc07a679aa22e +SIZE (go/graphics_d2/d2-v0.6.8/v0.6.8.zip) = 22071105 diff --git a/graphics/d2/pkg-descr b/graphics/d2/pkg-descr new file mode 100644 index 000000000000..523a6e6fd49e --- /dev/null +++ b/graphics/d2/pkg-descr @@ -0,0 +1,4 @@ +D2 is a scripting language that turns text into diagrams, similar to +Mermaid and PlantUML. However, D2 puts more focus on simply doing the +right thing, and it can produce highly visually-appealing diagrams with +very little input.