sdl: use --with-test

This commit is contained in:
Baptiste Fontaine 2015-12-08 13:11:49 +01:00
parent 77bd173057
commit 52c6b574f6

View file

@ -22,10 +22,11 @@ class Sdl < Formula
end
option "with-x11", "Compile with support for X11 video driver"
option "with-tests", "Compile and install the tests"
option "with-test", "Compile and install the tests"
option :universal
deprecated_option "with-x11-driver" => "with-x11"
deprecated_option "with-tests" => "with-test"
depends_on :x11 => :optional
@ -77,7 +78,7 @@ class Sdl < Formula
# Copy source files needed for Ojective-C support.
libexec.install Dir["src/main/macosx/*"] if build.stable?
if build.with? "tests"
if build.with? "test"
ENV.prepend_path "PATH", "#{bin}"
# This is stupid but necessary. Blurgh. Otherwise, test building fails, even
# with various flags, prepending & pkg_config_path tinkering.