Skip to content

Commit

Permalink
undercover 0.5.0 (new formula)
Browse files Browse the repository at this point in the history
Closes #65.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
  • Loading branch information
dunn committed Nov 10, 2015
1 parent 453ea56 commit cfbe9a8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Formula/undercover.rb
@@ -0,0 +1,29 @@
require File.expand_path("../../Homebrew/emacs_formula", __FILE__)

class Undercover < EmacsFormula
desc "Test coverage library for Emacs"
homepage "https://github.com/sviridov/undercover.el"
url "https://github.com/sviridov/undercover.el/archive/v0.5.0.tar.gz"
sha256 "a8adcd65bfb8167d965ebefe28ee344c644b119df673aafe893dd98ef4568cc9"
head "https://github.com/sviridov/undercover.el.git"

depends_on :emacs => "24.1"
depends_on "homebrew/emacs/dash-emacs"
depends_on "homebrew/emacs/shut-up"

def install
byte_compile "undercover.el"
elisp.install "undercover.el", "undercover.elc"
end

test do
(testpath/"test.el").write <<-EOS.undent
(add-to-list 'load-path "#{elisp}")
(add-to-list 'load-path "#{Formula["homebrew/emacs/dash-emacs"].opt_elisp}")
(add-to-list 'load-path "#{Formula["homebrew/emacs/shut-up"].opt_elisp}")
(load "undercover")
(print undercover-version)
EOS
assert_equal "\"#{version}\"", shell_output("emacs -Q --batch -l #{testpath}/test.el").strip
end
end

0 comments on commit cfbe9a8

Please sign in to comment.