homebrew-core/Formula/atlassian-plugin-sdk.rb
2012-02-12 20:08:56 -08:00

35 lines
1 KiB
Ruby

require 'formula'
class AtlassianPluginSdk < Formula
homepage 'https://developer.atlassian.com/display/DOCS/Atlassian+Plugin+SDK+Documentation'
url 'https://maven.atlassian.com/content/repositories/atlassian-public/com/atlassian/amps/atlassian-plugin-sdk/3.7.3/atlassian-plugin-sdk-3.7.3.tar.gz'
md5 'aa231e2a1c3789f6540d549aaf1447a7'
def install
# Remove windows files
rm_f Dir["bin/*.bat"]
Dir.chdir "apache-maven/maven-docs" do
prefix.install %w{ NOTICE.txt LICENSE.txt README.txt }
end
# Install jars in libexec to avoid conflicts
libexec.install Dir['*']
# Symlink binaries
bin.install_symlink Dir["#{libexec}/bin/*"]
end
def caveats
<<-EOS.undent
Thanks for installing the Atlassian Plugin SDK. For more information,
visit https://developer.atlassian.com.
To create a plugin skeleton using atlas-create-APPLICATION-plugin, e.g.:
atlas-create-jira-plugin
To run your plugin's host application with the plugin skeleton installed:
atlas-run
EOS
end
end