Formula for the stax SDK (stax.net)

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Jan Berkel 2010-08-22 22:40:04 +02:00 committed by Adam Vandenberg
parent 5f5b05feba
commit 1778bde306
1 changed files with 24 additions and 0 deletions

24
Formula/stax-sdk.rb Normal file
View File

@ -0,0 +1,24 @@
require 'formula'
class StaxSdk <Formula
url 'http://stax-downloads.s3.amazonaws.com/sdk/stax-sdk-0.3.8-dist.zip'
version '0.3.8'
homepage 'http://wiki.stax.net/w/index.php/SDK'
md5 'db14071f8c1628ed23bb66369fcca8bf'
def shim_script target
<<-EOS.undent
#!/bin/bash
export STAX_HOME=#{libexec}
#{libexec}/#{target} $*
EOS
end
def install
rm Dir['*.bat', '*.lnk']
libexec.install Dir['*']
(bin+'stax').write shim_script('stax')
(bin+'staxd').write shim_script('staxd')
end
end