apib: opt_prefix/libexec => opt_libexec

This commit is contained in:
Dominyk Tiller 2016-07-09 17:36:59 +01:00
parent 618ac8acdb
commit 535d27a964
No known key found for this signature in database
GPG key ID: FE19AEFCF658C6F6

View file

@ -24,13 +24,13 @@ class Apib < Formula
# https://github.com/apigee/apib/issues/11
unless MacOS::CLT.installed?
inreplace "configure" do |s|
s.gsub! "/usr/include/apr-1.0", "#{Formula["apr"].opt_prefix}/libexec/include/apr-1"
s.gsub! "/usr/include/apr-1", "#{Formula["apr"].opt_prefix}/libexec/include/apr-1"
s.gsub! "/usr/include/apr-1.0", "#{Formula["apr"].opt_libexec}/include/apr-1"
s.gsub! "/usr/include/apr-1", "#{Formula["apr"].opt_libexec}/include/apr-1"
end
ENV.append "LDFLAGS", "-L#{Formula["apr-util"].opt_prefix}/libexec/lib"
ENV.append "LDFLAGS", "-L#{Formula["apr"].opt_prefix}/libexec/lib"
ENV.append "CFLAGS", "-I#{Formula["apr"].opt_prefix}/libexec/include/apr-1"
ENV.append "CFLAGS", "-I#{Formula["apr-util"].opt_prefix}/libexec/include/apr-1"
ENV.append "LDFLAGS", "-L#{Formula["apr-util"].opt_libexec}/lib"
ENV.append "LDFLAGS", "-L#{Formula["apr"].opt_libexec}/lib"
ENV.append "CFLAGS", "-I#{Formula["apr"].opt_libexec}/include/apr-1"
ENV.append "CFLAGS", "-I#{Formula["apr-util"].opt_libexec}/include/apr-1"
end
system "./configure", "--prefix=#{prefix}"