<commit_before>require 'formula'

class Lysp < Formula
  homepage 'http://www.piumarta.com/software/lysp/'
  url 'http://www.piumarta.com/software/lysp/lysp-1.1.tar.gz'
  sha1 '4d579895a5ccd947249b8de6c992ab969c144c78'

  depends_on 'bdw-gc'

  # Use our CFLAGS
  def patches; DATA; end

  def install
    system "make"
    bin.install "lysp", "gclysp"
  end
end

__END__
diff --git a/Makefile b/Makefile
index fc3f5d9..0b0e20d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,3 @@
-CFLAGS  = -O  -g -Wall
-CFLAGSO = -O3 -g -Wall -DNDEBUG
-CFLAGSs = -Os -g -Wall -DNDEBUG
 LDLIBS  = -rdynamic
 <commit_msg>lysp: fails with clang 500<commit_after>require 'formula'

class Lysp < Formula
  homepage 'http://www.piumarta.com/software/lysp/'
  url 'http://www.piumarta.com/software/lysp/lysp-1.1.tar.gz'
  sha1 '4d579895a5ccd947249b8de6c992ab969c144c78'

  depends_on 'bdw-gc'

  fails_with :clang do
    build 500
    cause "use of unknown builtin '__builtin_return'"
  end

  # Use our CFLAGS
  def patches; DATA; end

  def install
    system "make"
    bin.install "lysp", "gclysp"
  end
end

__END__
diff --git a/Makefile b/Makefile
index fc3f5d9..0b0e20d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,3 @@
-CFLAGS  = -O  -g -Wall
-CFLAGSO = -O3 -g -Wall -DNDEBUG
-CFLAGSs = -Os -g -Wall -DNDEBUG
 LDLIBS  = -rdynamic
 
{'fraction_non_alphanumeric': 0.13626040878122633, 'fraction_numerical': 0.07721423164269493, 'mean_word_length': 3.0552147239263805, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4843385', 'n_tokens_mistral': 637, 'n_tokens_neox': 576, 'n_words': 130}