notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
I started running short on disk space for the non-production FreshPorts hosts. This time, I have decided to ask for donations. See my recent blog post which points to my Patreon account.
Port details
d2 Modern text-to-diagram language
0.7.1_2 graphics on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.7.1_1Version of this port present on the latest quarterly branch.
Maintainer: adamw@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2024-12-19 13:45:07
Last Update: 2025-10-08 00:41:39
Commit Hash: 2e7587a
License: MPL20
WWW:
https://www.d2lang.com
Description:
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.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (4 items)
Collapse this list.
  1. bin/d2
  2. /usr/local/share/licenses/d2-0.7.1_2/catalog.mk
  3. /usr/local/share/licenses/d2-0.7.1_2/LICENSE
  4. /usr/local/share/licenses/d2-0.7.1_2/MPL20
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • d2>0:graphics/d2
To install the port:
cd /usr/ports/graphics/d2/ && make install clean
To add the package, run one of these commands:
  • pkg install graphics/d2
  • pkg install d2
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: d2
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1755614907 SHA256 (go/graphics_d2/d2-v0.7.1/v0.7.1.mod) = 3e80ff104186c4966c030fd807ef143fed3e92d551a7da48b1ffbbc830624810 SIZE (go/graphics_d2/d2-v0.7.1/v0.7.1.mod) = 2278

Expand this list (2 items)

Collapse this list.

SHA256 (go/graphics_d2/d2-v0.7.1/v0.7.1.zip) = 0793db1dcb02a011f278d2c01f870eeb04d941464f64ed1d376d1b22eda257f8 SIZE (go/graphics_d2/d2-v0.7.1/v0.7.1.zip) = 32485253

Collapse this list.


Packages (timestamps in pop-ups are UTC):
d2
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest0.7.1_10.7.1_1-0.7.1_10.7.1_1---
FreeBSD:13:quarterly0.7.0_20.7.1_1-0.7.0_20.7.1_1---
FreeBSD:14:latest0.7.10.7.1_1-0.7.10.7.1_1---
FreeBSD:14:quarterly0.7.0_20.7.1_1-0.7.0_20.7.1_1---
FreeBSD:15:latest0.7.1_10.7.1_1n/a-n/a---
FreeBSD:15:quarterly--n/a-n/a---
FreeBSD:16:latest-0.7.1_1n/a-n/a---
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. go124 : lang/go124
Fetch dependencies:
  1. go124 : lang/go124
There are no ports dependent upon this port

Configuration Options:
No options to configure
Options name:
graphics_d2
USES:
go:modules zip
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://proxy.golang.org/github.com/terrastruct/d2/@v/
Collapse this list.

Number of commits found: 12

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.7.1_2
08 Oct 2025 00:41:39
commit hash: 2e7587aaf8e7f893fd2025d55f66de088427b180commit hash: 2e7587aaf8e7f893fd2025d55f66de088427b180commit hash: 2e7587aaf8e7f893fd2025d55f66de088427b180commit hash: 2e7587aaf8e7f893fd2025d55f66de088427b180 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
many: Bump dependent ports after go124 update
0.7.1_1
04 Sep 2025 17:53:24
commit hash: 31a5a229a778dc5f458cb8887954f192d846e0e3commit hash: 31a5a229a778dc5f458cb8887954f192d846e0e3commit hash: 31a5a229a778dc5f458cb8887954f192d846e0e3commit hash: 31a5a229a778dc5f458cb8887954f192d846e0e3 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
many: Bump go ports for go-1.24.7
0.7.1
19 Aug 2025 15:19:20
commit hash: 5a18fa7521bc12583e2a25e6da552324e3625448commit hash: 5a18fa7521bc12583e2a25e6da552324e3625448commit hash: 5a18fa7521bc12583e2a25e6da552324e3625448commit hash: 5a18fa7521bc12583e2a25e6da552324e3625448 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
graphics/d2: Update to 0.7.1
0.7.0_4
07 Aug 2025 00:02:46
commit hash: 53610681ea46b375186fc68723dcc335051ef9b4commit hash: 53610681ea46b375186fc68723dcc335051ef9b4commit hash: 53610681ea46b375186fc68723dcc335051ef9b4commit hash: 53610681ea46b375186fc68723dcc335051ef9b4 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
go ports: Bump for 1.24.6
0.7.0_3
09 Jul 2025 16:11:00
commit hash: 275975297bc1002e96f88f503cf18dea17df847ecommit hash: 275975297bc1002e96f88f503cf18dea17df847ecommit hash: 275975297bc1002e96f88f503cf18dea17df847ecommit hash: 275975297bc1002e96f88f503cf18dea17df847e files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
many: Bump PORTREVISION for go-1.24.5 update
0.7.0_2
06 Jun 2025 20:00:53
commit hash: 94be418de3de0b9beea03165f868b89b524b2c23commit hash: 94be418de3de0b9beea03165f868b89b524b2c23commit hash: 94be418de3de0b9beea03165f868b89b524b2c23commit hash: 94be418de3de0b9beea03165f868b89b524b2c23 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump PORTREVISION after go124-1.24.4 update
0.7.0_1
21 May 2025 19:58:15
commit hash: 0bdd2ad334c94bfa4d976a8dde6e0ebc432f2a52commit hash: 0bdd2ad334c94bfa4d976a8dde6e0ebc432f2a52commit hash: 0bdd2ad334c94bfa4d976a8dde6e0ebc432f2a52commit hash: 0bdd2ad334c94bfa4d976a8dde6e0ebc432f2a52 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
go: Bump go124-dependent ports

Earlier I bumped the default Go to 1.24. Ports that specify a lower
version will still build with those lower version (for now), so they
don't need a bumping. Instead I'm bumping anything that (now) has go124
as a dependency.
0.7.0
02 May 2025 03:24:36
commit hash: 9fbf197e7fb286ccff2e3e0358dc5eb245054cc5commit hash: 9fbf197e7fb286ccff2e3e0358dc5eb245054cc5commit hash: 9fbf197e7fb286ccff2e3e0358dc5eb245054cc5commit hash: 9fbf197e7fb286ccff2e3e0358dc5eb245054cc5 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
graphics/d2: Update to 0.7.0
0.6.9_2
02 Apr 2025 02:07:58
commit hash: a4e30d4f4fed37188c78999f90dd2757dfd9e95acommit hash: a4e30d4f4fed37188c78999f90dd2757dfd9e95acommit hash: a4e30d4f4fed37188c78999f90dd2757dfd9e95acommit hash: a4e30d4f4fed37188c78999f90dd2757dfd9e95a files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
go: Bump ports for go124 update
0.6.9_1
05 Mar 2025 16:02:56
commit hash: d0642a617631ca9d19d24750b6669ecc13584027commit hash: d0642a617631ca9d19d24750b6669ecc13584027commit hash: d0642a617631ca9d19d24750b6669ecc13584027commit hash: d0642a617631ca9d19d24750b6669ecc13584027 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
Bump all go ports for yesterday's releases
0.6.9
06 Feb 2025 04:24:42
commit hash: a219d5e31eb3c2be2b0e707d35907e128553fd26commit hash: a219d5e31eb3c2be2b0e707d35907e128553fd26commit hash: a219d5e31eb3c2be2b0e707d35907e128553fd26commit hash: a219d5e31eb3c2be2b0e707d35907e128553fd26 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
graphics/d2: Update to 0.6.9
0.6.8
19 Dec 2024 13:39:07
commit hash: 97f77a7cb57017e623393803984b79080a79be09commit hash: 97f77a7cb57017e623393803984b79080a79be09commit hash: 97f77a7cb57017e623393803984b79080a79be09commit hash: 97f77a7cb57017e623393803984b79080a79be09 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
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

Number of commits found: 12