mkvalidator 0.5.0

Closes Homebrew/homebrew#39225.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
This commit is contained in:
Alex Dunn 2015-04-30 12:39:53 -07:00 committed by Tim D. Smith
parent 43e12486d3
commit d3237896e0

View file

@ -1,30 +1,33 @@
require 'formula'
class Mkvalidator < Formula
homepage 'http://www.matroska.org/downloads/mkvalidator.html'
url 'https://downloads.sourceforge.net/project/matroska/mkvalidator/mkvalidator-0.4.2.tar.bz2'
sha1 'e0e431e6ca7011e7e4547f3166e532553a1d6a79'
homepage "http://www.matroska.org/downloads/mkvalidator.html"
url "https://downloads.sourceforge.net/project/matroska/mkvalidator/mkvalidator-0.5.0.tar.bz2"
sha256 "c3e72e5b49d32174415b9273ea8d52380e09ac63c8dc7db684104021c711c104"
# see https://sourceforge.net/tracker/?group_id=68739&atid=522230
patch :DATA if MacOS.prefer_64_bit?
# see https://sourceforge.net/p/matroska/bugs/9/
# and https://sourceforge.net/p/matroska/patches/3/
if MacOS.prefer_64_bit?
patch do
url "https://sourceforge.net/p/matroska/patches/_discuss/thread/8899370c/81cc/attachment/mkvalidator-0.3.7.gcc_osx_x64.build.diff"
sha256 "c714977d5b68e90851ce59aacc789438b2455741eba43bd473a248a59932ce3c"
end
end
resource "tests" do
url "https://github.com/dunn/garbage/raw/c0e682836e5237eef42a000e7d00dcd4b6dcebdb/test.mka"
sha256 "6d7cc62177ec3f88c908614ad54b86dde469dbd2b348761f6512d6fc655ec90c"
end
def install
ENV.j1 # Otherwise there are races
system "./configure"
system "make -C mkvalidator"
system "make", "-C", "mkvalidator"
bindir = `corec/tools/coremake/system_output.sh`.chomp
bin.install "release/#{bindir}/mkvalidator"
end
end
__END__
--- a/corec/tools/coremake/gcc_osx_x64.build 2012-05-13 00:39:54.000000000 -0700
+++ b/corec/tools/coremake/gcc_osx_x64.build 2012-06-14 01:43:02.000000000 -0700
@@ -4,7 +4,6 @@
PLATFORMLIB = osx_x86
SVNDIR = osx_x86
-SDK = /Developer/SDKs/MacOSX10.6.sdk
CCFLAGS=%(CCFLAGS) -arch x86_64 -mdynamic-no-pic -mmacosx-version-min=10.6
ASMFLAGS = -f macho64 -D_MACHO
test do
resource("tests").stage do
system bin/"mkvalidator", "test.mka"
end
end
end