Skip to content

Commit 5127a56

Browse files
committed
dpic 2024.01.01 (new formula)
This adds support to the dpic utility developed by J.D. Aplevich from University of Toronto. It is a replacement for the gnu pic and dependency of the circuit_macros latex package Signed-off-by: Tianrui Wei <[email protected]>
1 parent bbe25dd commit 5127a56

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Formula/d/dpic.rb

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
class Dpic < Formula
2+
desc "Implementation of the GNU pic \"little language\""
3+
homepage "https://ece.uwaterloo.ca/~aplevich/dpic/"
4+
url "https://ece.uwaterloo.ca/~aplevich/dpic/dpic-2024.01.01.tar.gz"
5+
sha256 "a69d8f5937bb400f53dd8188bc91c6f90c5fdb94287715fa2d8222b482288243"
6+
license "BSD-2-Clause"
7+
8+
def install
9+
system "./configure", *std_configure_args
10+
system "make"
11+
bin.install "dpic"
12+
end
13+
14+
test do
15+
(testpath/"test.pic").write <<~EOS
16+
.PS
17+
down; box; arrow; ellipse; arrow; circle
18+
move down
19+
left; box; arrow; ellipse; arrow; circle
20+
[ right; box; arrow; circle; arrow down from last circle.s; ellipse ] \
21+
with .w at (last circle,1st ellipse)
22+
.PE
23+
EOS
24+
system bin/"dpic", "-g", "test.pic"
25+
end
26+
end

0 commit comments

Comments
 (0)