winexe: fix build on Mavericks

Closes Homebrew/homebrew#26855.
This commit is contained in:
Adam Vandenberg 2014-04-20 11:45:42 -07:00
parent b60961a15f
commit 5176835ba0

View file

@ -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"