diff options
| author | Adam Vandenberg | 2014-04-20 11:45:42 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-04-20 12:24:06 -0700 |
| commit | ac453799aee821dbb884c5e4d79d7d3a6c2a2676 (patch) | |
| tree | 3c173e0feaf994dc3f689eca731b65747296e46f /Library/Formula | |
| parent | a75f1cd427843db205b5dbb87f1a5282515d4b8e (diff) | |
| download | homebrew-ac453799aee821dbb884c5e4d79d7d3a6c2a2676.tar.bz2 | |
winexe: fix build on Mavericks
Closes #26855.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/winexe.rb | 16 |
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" |
