41 lines
1.1 KiB
Ruby
41 lines
1.1 KiB
Ruby
class Pla < Formula
|
|
desc "Tool for building Gantt charts in PNG, EPS, PDF or SVG format"
|
|
homepage "https://www.arpalert.org/pla.html"
|
|
url "https://www.arpalert.org/src/pla-1.3.tar.gz"
|
|
sha256 "a342bfe064257487c6f55e049301cc7d06c84b08390a38fd42c901e962fc4a89"
|
|
license "GPL-2.0-only"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "9f16be821eecfd9fdc72071f1c2071790904f06ca56c0cf106021e7a1f4c8342" => :catalina
|
|
sha256 "f5199145d23f1b5c686958a7086b46ddbeb9e1b5041f456d94144cd4c7939821" => :mojave
|
|
sha256 "dd5b14bc8630dc3b16657e3e764b48cd9d851967daa1c7f039298bf4f2af7b78" => :high_sierra
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "cairo"
|
|
|
|
def install
|
|
system "make"
|
|
bin.install "pla"
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.pla").write <<~EOS
|
|
[4] REF0 Install des serveurs
|
|
color #8cb6ce
|
|
child 1
|
|
child 2
|
|
child 3
|
|
|
|
[1] REF0 Install 1
|
|
start 2010-04-08 01
|
|
duration 24
|
|
color #8cb6ce
|
|
dep 2
|
|
dep 6
|
|
EOS
|
|
system "#{bin}/pla", "-i", "#{testpath}/test.pla", "-o test"
|
|
end
|
|
end
|