aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Bilyk2011-10-18 15:53:04 +0700
committerAdam Vandenberg2012-03-10 13:51:14 -0800
commitdbfc5a9326bae9e5c07e541e245d01bc77832708 (patch)
tree4bc9a648e34f8c19b4a60cce71ac661720b58046
parentafa56ebb76e666a5a6afc1e58cae5bca5bdbf94b (diff)
downloadhomebrew-dbfc5a9326bae9e5c07e541e245d01bc77832708.tar.bz2
winexe 1.00
Closes #8166. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/winexe.rb40
1 files changed, 40 insertions, 0 deletions
diff --git a/Library/Formula/winexe.rb b/Library/Formula/winexe.rb
new file mode 100644
index 000000000..21df28305
--- /dev/null
+++ b/Library/Formula/winexe.rb
@@ -0,0 +1,40 @@
+require 'formula'
+
+class Winexe < Formula
+ homepage 'http://sourceforge.net/projects/winexe/'
+ url 'http://sourceforge.net/projects/winexe/files/winexe-1.00.tar.gz'
+ md5 '48325521ddc40d14087d1480dc83d51e'
+
+ depends_on 'pkg-config' => :build
+
+ # This patch removes second definition of event context, which *should* break the build
+ # virtually everywhere, but for some reason it only breaks it on OS X.
+ # http://miskstuf.tumblr.com/post/6840077505/winexe-1-00-linux-macos-windows-7-finally-working
+ # Added by @vspy
+ def patches
+ {:p1 => DATA}
+ end
+
+ def install
+ cd "source4" do
+ system "./autogen.sh"
+ system "./configure", "--enable-fhs"
+ system "make basics idl bin/winexe"
+ bin.install "bin/winexe"
+ end
+ end
+end
+
+__END__
+diff -Naur winexe-1.00-orig/source4/winexe/winexe.h winexe-1.00/source4/winexe/winexe.h
+--- winexe-1.00-orig/source4/winexe/winexe.h 2011-06-18 00:00:00.000000000 +0000
++++ winexe-1.00/source4/winexe/winexe.h 2011-06-18 00:00:00.000000000 +0000
+@@ -63,7 +63,7 @@
+ int async_write(struct async_context *c, const void *buf, int len);
+ int async_close(struct async_context *c);
+
+-struct tevent_context *ev_ctx;
++extern struct tevent_context *ev_ctx;
+
+ /* winexesvc32_exe.c */
+ extern unsigned int winexesvc32_exe_len;