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

Bot filter coming soon

To deter bots pegging the database CPU to 100%, a bot testing filter to be added to the website. This should not affect newsfeeds etc. Anubis seems light-weight - it is already in use within the FreeBSD Project. This notice is just a heads up in case you see something odd. This notice will be updated after Anubis is installed.

Port details
d2 Modern text-to-diagram language
0.7.0_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.6.9_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-06-06 20:00:53
Commit Hash: 94be418
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.0_2/catalog.mk
  3. /usr/local/share/licenses/d2-0.7.0_2/LICENSE
  4. /usr/local/share/licenses/d2-0.7.0_2/MPL20
Collapse this list.
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 = 1746156043 SHA256 (go/graphics_d2/d2-v0.7.0/v0.7.0.mod) = 0057e910e9c13228f6fdff27f79314e9db5d78d9d8e023d9de36169548c7988e SIZE (go/graphics_d2/d2-v0.7.0/v0.7.0.mod) = 2267

Expand this list (2 items)

Collapse this list.

SHA256 (go/graphics_d2/d2-v0.7.0/v0.7.0.zip) = bebb249eb3a963c46167a269f1431f20e30bc3821ea915fe625358039e69f702 SIZE (go/graphics_d2/d2-v0.7.0/v0.7.0.zip) = 30467544

Collapse this list.


Packages (timestamps in pop-ups are UTC):
d2
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest0.7.0_20.7.0_2-0.7.0_20.7.0_2---
FreeBSD:13:quarterly0.6.9_10.6.9_1-0.6.9_10.6.9_1---
FreeBSD:14:latest0.7.0_20.7.0_2-0.7.0_20.7.0_2---
FreeBSD:14:quarterly0.6.9_10.6.9_1-0.6.9_10.7.0_2---
FreeBSD:15:latest0.7.0_20.7.0_2n/a0.7.0n/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: 7

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
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: 7