beecrypt: copy new config.guess from libtool
parent
d8da878db5
commit
30d887b190
|
@ -6,25 +6,19 @@ class Beecrypt < Formula
|
|||
sha256 '286f1f56080d1a6b1d024003a5fa2158f4ff82cae0c6829d3c476a4b5898c55d'
|
||||
|
||||
depends_on "icu4c"
|
||||
depends_on "libtool" => :build
|
||||
|
||||
# fix build with newer clang, gcc 4.7 (https://bugs.gentoo.org/show_bug.cgi?id=413951)
|
||||
patch :p0, :DATA
|
||||
|
||||
def darwin_major_version
|
||||
# kern.osrelease: 11.4.2
|
||||
full_version = `/usr/sbin/sysctl -n kern.osrelease`
|
||||
full_version.split("\.")[0]
|
||||
end
|
||||
|
||||
def install
|
||||
ENV.remove_from_cflags(/-march=\S*/)
|
||||
args = ["--prefix=#{prefix}", "--disable-openmp", "--without-java",
|
||||
"--without-python"]
|
||||
if MacOS.prefer_64_bit?
|
||||
args << "--build=x86_64-apple-darwin#{darwin_major_version}"
|
||||
end
|
||||
|
||||
system "./configure", *args
|
||||
cp Dir["#{Formula["libtool"].opt_share}/libtool/config/config.*"], buildpath
|
||||
system "./configure", "--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--disable-openmp",
|
||||
"--without-java",
|
||||
"--without-python"
|
||||
system "make"
|
||||
system "make check"
|
||||
system "make install"
|
||||
|
|
Loading…
Reference in New Issue