Skip to content

Commit

Permalink
gnugo-emacs 3.0.2
Browse files Browse the repository at this point in the history
Closes #558.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
  • Loading branch information
dunn committed Feb 9, 2017
1 parent 526579b commit 646d041
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Formula/gnugo-emacs.rb
Expand Up @@ -3,28 +3,30 @@
class GnugoEmacs < EmacsFormula
desc "Emacs interface to GNU Go"
homepage "http://www.gnuvola.org/software/gnugo/"
url "https://elpa.gnu.org/packages/gnugo-3.0.1.tar"
sha256 "f70ef92dcb53f7a4a0246d4f91933ef6c4b226e4951d01b0fdadeb5dd383e223"
url "https://elpa.gnu.org/packages/gnugo-3.0.2.tar"
sha256 "732c5b6195b4e3f1b4af113717590c3fa2d77a862bfa002f9ac26aae8049b58b"

bottle :disable

depends_on :emacs
depends_on "homebrew/games/gnu-go"
depends_on "gnu-go"
depends_on "homebrew/emacs/ascii-art-to-unicode"
depends_on "homebrew/emacs/xpm-emacs"
depends_on "homebrew/emacs/cl-lib" if Emacs.version < Version.create("24.3")

def install
byte_compile Dir["*.el"]
elisp.install Dir["*.el"], Dir["*.elc"]
byte_compile "gnugo.el", "gnugo-frolic.el", "gnugo-imgen.el"
elisp.install "gnugo.el", "gnugo.elc",
"gnugo-frolic.el", "gnugo-frolic.elc",
"gnugo-imgen.el", "gnugo-imgen.elc"
end

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

0 comments on commit 646d041

Please sign in to comment.