Skip to content

Commit

Permalink
d2: new port (version 0.0.13)
Browse files Browse the repository at this point in the history
  • Loading branch information
herbygillot committed Nov 23, 2022
1 parent 5da4808 commit ac63147
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions graphics/d2/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup golang 1.0

go.setup github.com/terrastruct/d2 0.0.13 v
go.package oss.terrastruct.com/d2
github.tarball_from archive
revision 0

description D2 is a modern diagram scripting language that turns text \
to diagrams.

long_description {*}${description}

categories graphics
installs_libs no
license MPL-2
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer

checksums rmd160 de9c2ab4aaa072aeca46739eb9814c0fdb58030d \
sha256 52fd8cddfb7fb34d88a0d6049c038bc31447216ede659d892ec13e288ab966e7 \
size 26302041

build.env-delete GO111MODULE=off GOPROXY=off

build.pre_args-append \
-o ./bin

build.args ./cmd/...

pre-build {
file mkdir ${worksrcpath}/bin
}

destroot {
foreach x [glob ${worksrcpath}/bin/*] {
xinstall -m 0755 ${x} ${destroot}${prefix}/bin/
}
}

0 comments on commit ac63147

Please sign in to comment.