emacs: disable --with-file-notification=gfile unless stable (#4067)

--with-file-notification=gfile support on OS X has been removed in Emacs
25 (supplanted by kqueue(2) support), and even leads to a configure
error since
21ad7279e4.

Fixes #4048.
This commit is contained in:
Zhiming Wang 2016-08-20 22:18:51 +08:00 committed by Dominyk Tiller
parent fd31bb89df
commit ecc7bdd843

View file

@ -42,6 +42,8 @@ class Emacs < Formula
depends_on "librsvg" => :recommended
depends_on "imagemagick" => :optional
depends_on "mailutils" => :optional
# Remove this option and the --with-file-notification=gfile line below once
# Emacs 25 is stable (#4048)
depends_on "glib" => :optional
def install
@ -54,7 +56,7 @@ class Emacs < Formula
--without-x
]
args << "--with-file-notification=gfile" if build.with? "glib"
args << "--with-file-notification=gfile" if build.stable? && build.with?("glib")
if build.with? "libxml2"
args << "--with-xml2"