2015-05-28 14:39:07 +00:00
|
|
|
class Pla < Formula
|
|
|
|
desc "A tool for building gantt charts in format PNG, EPS, PDF or SVG."
|
|
|
|
homepage "http://www.arpalert.org/pla.html"
|
2015-05-28 14:39:07 +00:00
|
|
|
url "http://www.arpalert.org/src/pla-1.2.tar.gz"
|
|
|
|
sha256 "c2f1ce50b04032abf7f88ac07648ea40bed2443e86e9f28f104d341965f52b9c"
|
2015-05-28 14:39:07 +00:00
|
|
|
|
2015-05-28 15:34:59 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-06-01 20:41:29 +00:00
|
|
|
sha256 "308920e8bf8642826cd973eaa63e22f0fc3dec43a0152485d358ba575638291f" => :yosemite
|
|
|
|
sha256 "df4b500589672dc1c415866b7da4c678621858f48cbac2cab5765c2b4fb1857d" => :mavericks
|
|
|
|
sha256 "81969ccdf4fe754600e348d7aa34243ccf86d4ee4bcaf85b12fa5b5df99d9ec7" => :mountain_lion
|
2015-05-28 15:34:59 +00:00
|
|
|
end
|
|
|
|
|
2015-05-28 14:39:07 +00:00
|
|
|
depends_on "cairo"
|
2015-05-28 14:39:07 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2015-05-28 14:39:07 +00:00
|
|
|
|
|
|
|
def install
|
2015-05-28 14:39:07 +00:00
|
|
|
system "make"
|
2015-05-28 14:39:07 +00:00
|
|
|
bin.install "pla"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.pla").write <<-EOS.undent
|
|
|
|
[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
|