From e5567db19660be90cfa9c1837c8fcdc33d47b97a Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 8 Aug 2019 23:42:43 -0400 Subject: [PATCH] elm-format 0.8.2 Closes #42959. Signed-off-by: Chongyu Zhu --- Formula/elm-format.rb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Formula/elm-format.rb b/Formula/elm-format.rb index d459c45f8f..059dcec0a1 100644 --- a/Formula/elm-format.rb +++ b/Formula/elm-format.rb @@ -6,8 +6,8 @@ class ElmFormat < Formula desc "Elm source code formatter, inspired by gofmt" homepage "https://github.com/avh4/elm-format" url "https://github.com/avh4/elm-format.git", - :tag => "0.8.1", - :revision => "e3f9eb711f05a460557ddae2530802c15ee94d90" + :tag => "0.8.2", + :revision => "ab3627cce01e5556b3fe8c2b5e3d92b80bfc74af" head "https://github.com/avh4/elm-format.git" bottle do @@ -20,7 +20,19 @@ class ElmFormat < Formula depends_on "cabal-install" => :build depends_on "ghc" => :build + def build_elm_format_conf + <<~EOS + module Build_elm_format where + + gitDescribe :: String + gitDescribe = "#{version}" + EOS + end + def install + defaults = buildpath/"generated/Build_elm_format.hs" + defaults.write(build_elm_format_conf) + (buildpath/"elm-format").install Dir["*"] cabal_sandbox do