aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-04-20 11:45:42 -0700
committerAdam Vandenberg2014-04-20 12:24:06 -0700
commitac453799aee821dbb884c5e4d79d7d3a6c2a2676 (patch)
tree3c173e0feaf994dc3f689eca731b65747296e46f /Library
parenta75f1cd427843db205b5dbb87f1a5282515d4b8e (diff)
downloadhomebrew-ac453799aee821dbb884c5e4d79d7d3a6c2a2676.tar.bz2
winexe: fix build on Mavericks
Closes #26855.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/winexe.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Formula/winexe.rb b/Library/Formula/winexe.rb
index b116a5cc4..c03c867c7 100644
--- a/Library/Formula/winexe.rb
+++ b/Library/Formula/winexe.rb
@@ -14,7 +14,23 @@ class Winexe < Formula
# Added by @vspy
patch :DATA
+ # This Winexe uses "getopts.pl" that is no longer supplied with newer
+ # versions of Perl
+ resource "Perl4::CoreLibs" do
+ url "http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Perl4-CoreLibs-0.003.tar.gz"
+ sha1 "ad4c5a9fa8da4f461dc774e5c53136a55413ef2f"
+ end
+
def install
+ if MacOS.version >= :mavericks
+ ENV.prepend_create_path 'PERL5LIB', libexec+'lib/perl5'
+ resource("Perl4::CoreLibs").stage do
+ system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
+ system "make"
+ system "make", "install"
+ end
+ end
+
cd "source4" do
system "./autogen.sh"
system "./configure", "--enable-fhs"