Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 2024 13:43:05 GMT
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 97f77a7cb570 - main - graphics/d2: Add port
Message-ID:  <202412191343.4BJDh5a1008607@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=97f77a7cb57017e623393803984b79080a79be09

commit 97f77a7cb57017e623393803984b79080a79be09
Author:     Adam Weinberger <adamw@FreeBSD.org>
AuthorDate: 2024-12-19 13:39:07 +0000
Commit:     Adam Weinberger <adamw@FreeBSD.org>
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 <bsd.port.mk>
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.



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