diff --git a/Aliases/swig@4 b/Aliases/swig@4 new file mode 120000 index 000000000000..0d1a33d7ad9f --- /dev/null +++ b/Aliases/swig@4 @@ -0,0 +1 @@ +../Formula/swig.rb \ No newline at end of file diff --git a/Formula/swig@3.04.rb b/Formula/swig@3.rb similarity index 57% rename from Formula/swig@3.04.rb rename to Formula/swig@3.rb index 12283735141c..502e81c53cd9 100644 --- a/Formula/swig@3.04.rb +++ b/Formula/swig@3.rb @@ -1,16 +1,8 @@ -class SwigAT304 < Formula +class SwigAT3 < Formula desc "Generate scripting interfaces to C/C++ code" homepage "http://www.swig.org/" - url "https://downloads.sourceforge.net/project/swig/swig/swig-3.0.4/swig-3.0.4.tar.gz" - sha256 "410ffa80ef5535244b500933d70c1b65206333b546ca5a6c89373afb65413795" - - bottle do - sha256 "264a8dc6653c2fc3ae88f1b0a8d60aef2b54db681b4fce4ce783b4f73f6daa84" => :mojave - sha256 "fa6edd5df156b7a985bfe6f74f56cf15682af6b01d11f0ed342f2f05444234f0" => :high_sierra - sha256 "51b8115c0a2813caf115fb5f082e7aa1b84b7c51acec70822b8619e918969a14" => :sierra - sha256 "84988480f25dea3fce15b6ca0e9a3322222cc473066f23626d59b20001574fdf" => :el_capitan - sha256 "f5e5251fa5d8f6ce3a7e63c9f3762ccd3bbc49f4664d1d781b71425992c2425b" => :yosemite - end + url "https://downloads.sourceforge.net/project/swig/swig/swig-3.0.12/swig-3.0.12.tar.gz" + sha256 "7cf9f447ae7ed1c51722efc45e7f14418d15d7a1e143ac9f09a668999f4fc94d" keg_only :versioned_formula @@ -43,7 +35,7 @@ def install system "#{bin}/swig", "-ruby", "test.i" system ENV.cc, "-c", "test.c" system ENV.cc, "-c", "test_wrap.c", "-I#{MacOS.sdk_path}/System/Library/Frameworks/Ruby.framework/Headers/" - system ENV.cc, "-bundle", "-flat_namespace", "-undefined", "suppress", "test.o", "test_wrap.o", "-o", "test.bundle" + system ENV.cc, "-bundle", "-undefined", "dynamic_lookup", "test.o", "test_wrap.o", "-o", "test.bundle" assert_equal "2", shell_output("/usr/bin/ruby run.rb").strip end end