octave: fix for Qt 5.12 compatibility (#35904)

This commit is contained in:
Andrew Janke 2019-01-11 10:08:06 -05:00 committed by FX Coudert
parent 465817a507
commit 51bfe28bf1

View file

@ -65,7 +65,13 @@ class Octave < Formula
inreplace "src/mkoctfile.in.cc", /%OCTAVE_CONF_OCT(AVE)?_LINK_(DEPS|OPTS)%/, '""'
args = []
args << "--without-qt" if build.without? "qt"
if build.with? "qt"
# Stuff for Qt 5.12 compatibility
# https://savannah.gnu.org/bugs/?55187
ENV["QCOLLECTIONGENERATOR"]="qhelpgenerator"
else
args << "--without-qt"
end
system "./bootstrap" if build.head?
system "./configure", "--prefix=#{prefix}",