From 0bb2e41ecb58f3172deed26c97c37af52240ce05 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 21 Oct 2014 02:05:57 -0500 Subject: gnu-cobol: put fails_with in stable block --- Library/Formula/gnu-cobol.rb | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/gnu-cobol.rb b/Library/Formula/gnu-cobol.rb index 719854751..64a76fc19 100644 --- a/Library/Formula/gnu-cobol.rb +++ b/Library/Formula/gnu-cobol.rb @@ -2,8 +2,18 @@ require "formula" class GnuCobol < Formula homepage "http://www.opencobol.org/" - url "https://downloads.sourceforge.net/project/open-cobol/gnu-cobol/1.1/gnu-cobol-1.1.tar.gz" - sha1 "86e928c43cb3372f1f4564f3fd5e1dde668e8c1f" + + stable do + url "https://downloads.sourceforge.net/project/open-cobol/gnu-cobol/1.1/gnu-cobol-1.1.tar.gz" + sha1 "86e928c43cb3372f1f4564f3fd5e1dde668e8c1f" + + fails_with :clang do + cause <<-EOS.undent + Building with Clang configures GNU-COBOL to use Clang as its compiler, + which causes subsequent GNU-COBOL-based builds to fail. + EOS + end + end devel do version "2.0_nightly_r411" @@ -23,15 +33,6 @@ class GnuCobol < Formula depends_on "berkeley-db4" depends_on "gmp" - if build.stable? - fails_with :clang do - cause <<-EOS.undent - Building with Clang configures GNU-COBOL to use Clang as its compiler, - which causes subsequent GNU-COBOL-based builds to fail. - EOS - end - end - def install # both environment variables are needed to be set # the cobol compiler takes these variables for calling cc during its run -- cgit v1.2.3