Skip to content

Commit

Permalink
deferred 0.4.0 (new formula)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunn committed Aug 24, 2016
1 parent 0b36159 commit a66d761
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Formula/deferred.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
require File.expand_path("../../Homebrew/emacs_formula", __FILE__)

class Deferred < EmacsFormula
desc "Simple asynchronous functions for Emacs Lisp "
homepage "https://github.com/kiwanami/emacs-deferred"
url "https://github.com/kiwanami/emacs-deferred/archive/v0.4.0.tar.gz"
sha256 "1f3d615eff3b5199176ff7d84bc1908d48a936125c43c2deac5c073051a3aca5"
head "https://github.com/kiwanami/emacs-deferred.git"

depends_on :emacs

def install
byte_compile "deferred.el", "concurrent.el"
elisp.install "deferred.el", "deferred.elc",
"concurrent.el", "concurrent.elc"
end

test do
(testpath/"test.el").write <<-EOS.undent
(add-to-list 'load-path "#{elisp}")
(load "deferred")
(print deferred:version)
EOS
assert_equal "\"#{version}\"", shell_output("emacs -Q --batch -l #{testpath}/test.el").strip
end
end

0 comments on commit a66d761

Please sign in to comment.