aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Berkel2010-08-22 22:40:04 +0200
committerAdam Vandenberg2010-08-23 09:17:25 -0700
commit170febb185b6db47ebf161691bc9a2489f4e42bc (patch)
treef04b2fbd7a9aa822061fc01f4de28f8c44f4b818
parent2e404d7a2e750ef2398dae8859766fb5a6fdb1de (diff)
downloadhomebrew-170febb185b6db47ebf161691bc9a2489f4e42bc.tar.bz2
Formula for the stax SDK (stax.net)
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/stax-sdk.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/stax-sdk.rb b/Library/Formula/stax-sdk.rb
new file mode 100644
index 000000000..76b67c8d4
--- /dev/null
+++ b/Library/Formula/stax-sdk.rb
@@ -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