-
-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes Homebrew/legacy-homebrew#40159. Signed-off-by: Tim D. Smith <git@tim-smith.us>
- Loading branch information
1 parent
e1ba411
commit 9837174
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |