From f4661bcac41402f77828bda2666e7c253fe31d46 Mon Sep 17 00:00:00 2001 From: equal-l2 Date: Fri, 27 Jan 2017 19:36:12 +0900 Subject: [PATCH] curlpp: replace CRLF with LF in curlpp-config Closes #9326. Signed-off-by: Tomasz Pajor --- Formula/curlpp.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Formula/curlpp.rb b/Formula/curlpp.rb index 50a648892c..5c83c75bdf 100644 --- a/Formula/curlpp.rb +++ b/Formula/curlpp.rb @@ -3,6 +3,7 @@ class Curlpp < Formula homepage "http://www.curlpp.org" url "https://github.com/jpbarrette/curlpp/releases/download/v0.7.4/curlpp-0.7.4.tar.gz" sha256 "7e33934f4ce761ba293576c05247af4b79a7c8895c9829dc8792c5d75894e389" + revision 1 bottle do cellar :any @@ -18,6 +19,12 @@ class Curlpp < Formula "--disable-silent-rules", "--prefix=#{prefix}" system "make", "install" + + # https://github.com/jpbarrette/curlpp/issues/34 + # Workaround for #9315, replace CRLF with LF + # This should be removed in the next release + system "sed", "-i.bak", "-e", "s/\r//g", "#{bin}/curlpp-config" + rm "#{bin}/curlpp-config.bak" end test do