Skip to content

Commit

Permalink
pla 1.1
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#40159.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
  • Loading branch information
benjaminweb authored and tdsmith committed May 31, 2015
1 parent e1ba411 commit 9837174
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Formula/pla.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
class Pla < Formula
desc "A tool for building gantt charts in format PNG, EPS, PDF or SVG."
homepage "http://www.arpalert.org/pla.html"
url "http://www.arpalert.org/src/pla-1.1.tar.gz"
sha256 "a213c5e1060c97618d0eb0462cfdf738532591b30f18b36a37c1a4398346ac37"

depends_on "cairo"

def install
ENV.prepend "CFLAGS", "-I#{Formula["cairo"].opt_include}/cairo"
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}"
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

0 comments on commit 9837174

Please sign in to comment.