2010-02-06 16:52:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ioke < Formula
|
2010-02-06 16:52:15 +00:00
|
|
|
homepage 'http://ioke.org/'
|
2012-11-11 19:20:09 +00:00
|
|
|
url 'http://ioke.org/dist/ioke-P-ikj-0.4.0.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '1cf1512e1a845b64c8f839fed396f279afdc0ed9'
|
2010-02-06 16:52:15 +00:00
|
|
|
|
|
|
|
def install
|
2010-09-01 14:40:43 +00:00
|
|
|
# Remove windows files
|
|
|
|
rm_f Dir["bin/*.bat"]
|
|
|
|
|
2012-11-11 19:20:09 +00:00
|
|
|
prefix.install_metafiles
|
|
|
|
|
|
|
|
# Install jars in libexec to avoid conflicts
|
|
|
|
libexec.install Dir['*']
|
|
|
|
|
2010-09-01 14:40:43 +00:00
|
|
|
# Point IOKE_HOME to libexec
|
2012-11-11 19:20:09 +00:00
|
|
|
inreplace libexec/'bin/ioke' do |s|
|
2010-09-07 21:34:39 +00:00
|
|
|
s.change_make_var! 'IOKE_HOME', libexec
|
2010-02-06 16:52:15 +00:00
|
|
|
end
|
|
|
|
|
2013-07-06 09:12:37 +00:00
|
|
|
bin.install_symlink libexec/'bin/ioke',
|
|
|
|
libexec/'bin/ispec',
|
|
|
|
libexec/'bin/dokgen'
|
2010-02-06 16:52:15 +00:00
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|