diff options
| author | Viktor Szakáts | 2015-01-10 05:01:33 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2015-01-10 14:42:04 +0000 | 
| commit | 32b1ca297ed9a6ad620912d854aca54dee278c62 (patch) | |
| tree | f407711721b9cf91a5c4c4cfd6447d8d2c37d1ce | |
| parent | 05ddaab9a3566ea72abab3ff05c0c8f0ad510937 (diff) | |
| download | homebrew-32b1ca297ed9a6ad620912d854aca54dee278c62.tar.bz2 | |
libmxml: 2.9, pass strict audit, added https, head
Closes #35718.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/libmxml.rb | 20 | 
1 files changed, 15 insertions, 5 deletions
| diff --git a/Library/Formula/libmxml.rb b/Library/Formula/libmxml.rb index 4f49bfdef..e20c088f6 100644 --- a/Library/Formula/libmxml.rb +++ b/Library/Formula/libmxml.rb @@ -1,9 +1,9 @@ -require "formula" -  class Libmxml < Formula    homepage "http://www.minixml.org/" -  url "http://www.msweet.org/files/project3/mxml-2.8.tar.gz" -  sha1 "09d88f1720f69b64b76910dfe2a5c5fa24a8b361" +  url "https://www.msweet.org/files/project3/mxml-2.9.tar.gz" +  sha1 "a3d9c1f8cf8c7f85d76bb6954af1888d55f926f0" + +  head "http://svn.msweet.org/mxml/"    bottle do      cellar :any @@ -20,6 +20,16 @@ class Libmxml < Formula                            "--enable-shared",                            "--prefix=#{prefix}"      system "make" -    system "make install" +    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")    end  end | 
