diff options
| author | Jack Nagel | 2012-04-28 17:20:53 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-04-28 17:20:53 -0500 |
| commit | 873d3e608952ee25776648f2c80ed6debce4de03 (patch) | |
| tree | 9ff0b111cc9f8ad17fcc84764518c289899bf3ad /Library | |
| parent | 9a832c6c9c66dc8d9345a6dda57984efc768f294 (diff) | |
| download | homebrew-873d3e608952ee25776648f2c80ed6debce4de03.tar.bz2 | |
wine: move patch inline
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/wine.rb | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/Library/Formula/wine.rb b/Library/Formula/wine.rb index 69de13079..94b18e4db 100644 --- a/Library/Formula/wine.rb +++ b/Library/Formula/wine.rb @@ -29,6 +29,12 @@ class Wine < Formula cause 'llvm-gcc does not respect force_align_arg_pointer' end + # Wine tests CFI support by calling clang, but then attempts to use as, which + # does not work. Use clang for assembling too. + def patches + DATA if ENV.compiler == :clang + end + # the following libraries are currently not specified as dependencies, or not built as 32-bit: # configure: libsane, libv4l, libgphoto2, liblcms, gstreamer-0.10, libcapi20, libgsm, libtiff @@ -88,14 +94,6 @@ class Wine < Formula (bin+'wine').write(wine_wrapper) end - def patches - p = [] - # Wine tests CFI support by calling clang, but then attempts to use as, which - # does not work. Use clang for assembling too. - p << 'https://raw.github.com/gist/1755988/266f883f568c223ab25da08581c1a08c47bb770f/winebuild.patch' if ENV.compiler == :clang - p - end - def caveats s = <<-EOS.undent For best results, you will want to install the latest version of XQuartz: @@ -110,3 +108,23 @@ class Wine < Formula return s end end + +__END__ +diff --git a/tools/winebuild/utils.c b/tools/winebuild/utils.c +index 09f9b73..ed198f8 100644 +--- a/tools/winebuild/utils.c ++++ b/tools/winebuild/utils.c +@@ -345,10 +345,11 @@ struct strarray *get_as_command(void) + + if (!as_command) + { +- static const char * const commands[] = { "gas", "as", NULL }; +- as_command = find_tool( "as", commands ); ++ static const char * const commands[] = { "clang", NULL }; ++ as_command = find_tool( "clang", commands ); + } + strarray_add_one( args, as_command ); ++ strarray_add_one( args, "-c" ); + + if (force_pointer_size) + { |
