aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-09-09 09:50:03 -0700
committerAdam Vandenberg2012-09-09 09:50:31 -0700
commitb8474d0b697c42e569b310e1cead7cfa9bae99df (patch)
tree2857b232a2468c1424784c08d957ad26c3c59e9c /Library/Formula
parent639978a85e5f5ea7736aa895ec4474dd9d0101c4 (diff)
downloadhomebrew-b8474d0b697c42e569b310e1cead7cfa9bae99df.tar.bz2
aws-sns-cli: don't install 'service' to bin
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/aws-sns-cli.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Formula/aws-sns-cli.rb b/Library/Formula/aws-sns-cli.rb
index 9ff475312..1d6682d5a 100644
--- a/Library/Formula/aws-sns-cli.rb
+++ b/Library/Formula/aws-sns-cli.rb
@@ -8,7 +8,15 @@ class AwsSnsCli < AmazonWebServicesFormula
sha1 'fcb6f651275b88f6225ed94f51568936ccba9e6d'
def install
- standard_install
+ rm Dir['bin/*.cmd'] # Remove Windows versions
+
+ # There is a "service" binary, which of course will conflict with any number
+ # other brews that have a generically named tool. So don't just blindly
+ # install bin to the prefix.
+ jars = prefix/'jars'
+ jars.install "bin", "lib"
+ system "chmod +x #{jars}/bin/*"
+ bin.install_symlink Dir["#{jars}/bin/sns-*"]
end
def caveats