aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-10-21 02:05:57 -0500
committerJack Nagel2014-10-21 02:10:36 -0500
commit0bb2e41ecb58f3172deed26c97c37af52240ce05 (patch)
tree112089ba330543c91bf7064759a14b4ab6196d59 /Library
parent0e0e5fc375b4d90377156902ec0ef56cef9e4733 (diff)
downloadhomebrew-0bb2e41ecb58f3172deed26c97c37af52240ce05.tar.bz2
gnu-cobol: put fails_with in stable block
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gnu-cobol.rb23
1 files changed, 12 insertions, 11 deletions
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