2010-11-18 00:59:47 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class AtlassianPluginSdk < Formula
|
2011-11-22 00:59:17 +00:00
|
|
|
url 'https://maven.atlassian.com/content/repositories/atlassian-public/com/atlassian/amps/atlassian-plugin-sdk/3.7.2/atlassian-plugin-sdk-3.7.2.tar.gz'
|
2011-10-07 13:01:29 +00:00
|
|
|
homepage 'https://developer.atlassian.com/display/DOCS/Atlassian+Plugin+SDK+Documentation'
|
2011-11-22 00:59:17 +00:00
|
|
|
md5 '3042e6f3a391ce7d0e789533e8df965d'
|
2010-11-18 00:59:47 +00:00
|
|
|
|
|
|
|
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.mkpath
|
|
|
|
Dir["#{libexec}/bin/*"].each do |f|
|
|
|
|
ln_s f, bin+File.basename(f)
|
|
|
|
end
|
2011-10-07 13:01:29 +00:00
|
|
|
|
2010-11-18 00:59:47 +00:00
|
|
|
end
|
|
|
|
|
2011-10-07 13:01:29 +00:00
|
|
|
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
|
2010-11-18 00:59:47 +00:00
|
|
|
|
|
|
|
To run your plugin's host application with the plugin skeleton installed:
|
|
|
|
atlas-run
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|