From 7fa7ddcbbf605d682e8b40dc116f44f90008d4f2 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 18 Mar 2014 16:51:41 -0500 Subject: electric-fence: use patch DSL --- Library/Formula/electric-fence.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/electric-fence.rb b/Library/Formula/electric-fence.rb index acbfa794c..53a49792d 100644 --- a/Library/Formula/electric-fence.rb +++ b/Library/Formula/electric-fence.rb @@ -6,18 +6,16 @@ class ElectricFence < Formula version '2.1.13-0.1' sha1 'e6765bcb1543272040b806eea706fc7ae9b60524' + # Patch based on this MacPorts port: https://trac.macports.org/ticket/23836 + # Discussion on how to port it to OS X: http://lists.apple.com/archives/xcode-users/2005/Oct/msg00791.html + patch :DATA + def install system "make" lib.install "libefence.a" man3.install "libefence.3" end - def patches - # Patch based on this MacPorts port: https://trac.macports.org/ticket/23836 - # Discussion on how to port it to OS X: http://lists.apple.com/archives/xcode-users/2005/Oct/msg00791.html - DATA - end - test do (testpath/'test1.c').write <<-EOS.undent #include -- cgit v1.2.3