Skip to content

Commit

Permalink
ioke: test added
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#40021.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
  • Loading branch information
bfontaine authored and DomT4 committed May 23, 2015
1 parent 896f833 commit 045e004
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions Formula/ioke.rb
@@ -1,9 +1,7 @@
require 'formula'

class Ioke < Formula
homepage 'http://ioke.org/'
url 'http://ioke.org/dist/ioke-P-ikj-0.4.0.tar.gz'
sha1 '1cf1512e1a845b64c8f839fed396f279afdc0ed9'
homepage "http://ioke.org/"
url "http://ioke.org/dist/ioke-P-ikj-0.4.0.tar.gz"
sha256 "701d24d8a8d0901cde64f11c79605c21d43cafbfb2bdd86765b664df13daec7c"

def install
# Remove windows files
Expand All @@ -12,15 +10,19 @@ def install
prefix.install_metafiles

# Install jars in libexec to avoid conflicts
libexec.install Dir['*']
libexec.install Dir["*"]

# Point IOKE_HOME to libexec
inreplace libexec/'bin/ioke' do |s|
s.change_make_var! 'IOKE_HOME', libexec
inreplace libexec/"bin/ioke" do |s|
s.change_make_var! "IOKE_HOME", libexec
end

bin.install_symlink libexec/'bin/ioke',
libexec/'bin/ispec',
libexec/'bin/dokgen'
bin.install_symlink libexec/"bin/ioke",
libexec/"bin/ispec",
libexec/"bin/dokgen"
end

test do
system "#{bin}/ioke", "-e", '"test" println'
end
end

0 comments on commit 045e004

Please sign in to comment.