2011-10-18 23:22:28 +00:00
|
|
|
class Libmxml < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Mini-XML library"
|
2014-05-08 21:06:42 +00:00
|
|
|
homepage "http://www.minixml.org/"
|
2015-01-10 04:01:33 +00:00
|
|
|
url "https://www.msweet.org/files/project3/mxml-2.9.tar.gz"
|
|
|
|
sha1 "a3d9c1f8cf8c7f85d76bb6954af1888d55f926f0"
|
|
|
|
|
|
|
|
head "http://svn.msweet.org/mxml/"
|
2011-10-18 23:22:28 +00:00
|
|
|
|
2014-05-30 23:03:52 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-01-10 14:35:36 +00:00
|
|
|
sha1 "e1c87b1b1ec3e362656f7e5d9c14c99dec182ab8" => :yosemite
|
|
|
|
sha1 "5d8a8bd17997790bb48c6142750ef9d2539d674b" => :mavericks
|
|
|
|
sha1 "2f99f449b8730e5fc9e340671ca9ff2e6095c8f9" => :mountain_lion
|
2014-05-30 23:03:52 +00:00
|
|
|
end
|
|
|
|
|
2014-05-30 20:41:18 +00:00
|
|
|
depends_on :xcode => :build # for docsetutil
|
2012-10-10 15:53:42 +00:00
|
|
|
|
2011-10-18 23:22:28 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--enable-shared",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make"
|
2015-01-10 04:01:33 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.c").write <<-EOS.undent
|
|
|
|
int testfunc(char *string)
|
|
|
|
{
|
|
|
|
return string ? string[0] : 0;
|
|
|
|
}
|
|
|
|
EOS
|
|
|
|
assert_match /testfunc/, shell_output("#{bin}/mxmldoc test.c")
|
2011-10-18 23:22:28 +00:00
|
|
|
end
|
|
|
|
end
|