File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 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+ bottle do
9+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "59d99f3d68b5d5f6cdd1442f68ea5a9284026d569fc4e6419330631922cfacaa"
10+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "1359cf82e6b9997e0543b51fe66e278c3f00104064c7757fc6d53a6d5da8363c"
11+ sha256 cellar : :any_skip_relocation , arm64_ventura : "62e275983e3ad6f36101e0a524a29c9e24d973a72443dd750d44e7dbc6353adf"
12+ sha256 cellar : :any_skip_relocation , sonoma : "306191125c20b05c28dae91d0da90c012769e4ecd0aa491e2d78d89594da640a"
13+ sha256 cellar : :any_skip_relocation , ventura : "2be8b31cce643e70b5120d3e8db82c2e6e6733138f62c8d960b0544a05682ae6"
14+ sha256 cellar : :any_skip_relocation , x86_64_linux : "99bb23d148d753c67dc621b7b5d8b9f3ca8759b7dba0cc45d9fc3b51a7e0611c"
15+ end
16+
17+ def install
18+ system "./configure" , *std_configure_args
19+ system "make"
20+ bin . install "dpic"
21+ end
22+
23+ test do
24+ ( testpath /"test.pic" ) . write <<~EOS
25+ .PS
26+ down; box; arrow; ellipse; arrow; circle
27+ move down
28+ left; box; arrow; ellipse; arrow; circle
29+ [ right; box; arrow; circle; arrow down from last circle.s; ellipse ] \
30+ with .w at (last circle,1st ellipse)
31+ .PE
32+ EOS
33+ system bin /"dpic" , "-g" , "test.pic"
34+ end
35+ end
You can’t perform that action at this time.
0 commit comments