2011-04-01 18:47:31 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Autogen < Formula
|
|
|
|
homepage 'http://autogen.sourceforge.net'
|
2014-06-27 18:38:31 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/autogen/rel5.18.2/autogen-5.18.2.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/autogen/rel5.18.2/autogen-5.18.2.tar.gz'
|
|
|
|
sha1 'c63a0f567b4ad90c4243efbd2420c51e6b63309a'
|
|
|
|
|
2014-06-27 19:31:20 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "f0f73e326bc3f93b8e9095ed79a7baa50ca2e9b7" => :mavericks
|
|
|
|
sha1 "a4e6e9f7f9b60d18fd43b29c88a857dbab8b3b60" => :mountain_lion
|
|
|
|
sha1 "729f19be0284020f55ebc5b343a9811cde92630c" => :lion
|
|
|
|
end
|
|
|
|
|
2014-06-27 18:38:31 +00:00
|
|
|
# Please note, 5.18.2 is not the newest Autogen package.
|
|
|
|
# However, 5.18.3 has an unresolved guile issue and should not be updated to.
|
|
|
|
# Please do not submit an update to 5.18.3 until this issue (https://github.com/Homebrew/homebrew/pull/30406) is resolved.
|
|
|
|
# The ongoing 5.18.3 guile issue has been reported upstream to Autogen's devs.
|
2011-04-01 18:47:31 +00:00
|
|
|
|
|
|
|
depends_on 'guile'
|
2014-06-27 18:38:31 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2011-04-01 18:47:31 +00:00
|
|
|
|
2013-10-05 18:25:10 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 500
|
|
|
|
cause <<-EOS.undent
|
|
|
|
Clang does not appear to be able to handle variables using the name
|
|
|
|
'noreturn' as it is a new keyword in C++11, but it would normally be
|
|
|
|
used as in [[noreturn]] void foo() and not as a variable name. I'm not
|
|
|
|
sure if this is a compiler bug or what, but GCC handles it fine at
|
|
|
|
the moment.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2011-04-01 18:47:31 +00:00
|
|
|
def install
|
2012-02-27 19:56:53 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2011-04-01 18:47:31 +00:00
|
|
|
"--prefix=#{prefix}"
|
|
|
|
|
|
|
|
# make and install must be separate steps for this formula
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|