diff options
| author | rstata-verticloud | 2013-11-17 02:12:20 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2013-11-28 10:00:45 +0000 |
| commit | 041ad2d37640d83f3ffb1ca5c5e2edaf8ee97ccc (patch) | |
| tree | e46cba6e4b5bffdf2973848198c313ee49d4159c /Library/Formula/apache-forrest.rb | |
| parent | 4f2e63ff6342ada5fa8bd31ad7623d8cc67bb10a (diff) | |
| download | homebrew-041ad2d37640d83f3ffb1ca5c5e2edaf8ee97ccc.tar.bz2 | |
apache-forrest 0.9 (new formula)
Closes #24520.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/apache-forrest.rb')
| -rw-r--r-- | Library/Formula/apache-forrest.rb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Library/Formula/apache-forrest.rb b/Library/Formula/apache-forrest.rb new file mode 100644 index 000000000..5860211d8 --- /dev/null +++ b/Library/Formula/apache-forrest.rb @@ -0,0 +1,42 @@ +require 'formula' + +class ApacheForrest < Formula + homepage 'http://forrest.apache.org/' + url 'http://www.apache.org/dyn/closer.cgi?path=forrest/apache-forrest-0.9-sources.tar.gz' + sha1 '8c7b49a7dff4b3f60a52c7696684168b6d454a47' + + resource 'deps' do + url 'http://www.apache.org/dyn/closer.cgi?path=forrest/apache-forrest-0.9-dependencies.tar.gz' + sha1 '10a4442d46baeadd3ba3377ed29ed694c86ece25' + end + + # Prevent deletion of intentionally-empty subdirs inside of + # template directories: + skip_clean ["libexec/main/template-sites", "libexec/main/fresh-site", + "libexec/plugins/pluginTemplate"] + + def install + libexec.install Dir['*'] + bin.install_symlink "#{libexec}/bin/forrest" + + # To avoid conflicts with directory names already installed from the + # main tarball, surgically install contents of dependency tarball + deps_to_install = [ + "lib", + "main/webapp/resources/schema/relaxng", + "main/webapp/resources/stylesheets", + "plugins/org.apache.forrest.plugin.output.pdf/", + "tools/ant", + "tools/forrestbot/lib", + "tools/forrestbot/webapp/lib", + "tools/jetty" + ] + resource('deps').stage do + deps_to_install.each { |p| (libexec + p).install Dir[p+"/*"] } + end + end + + test do + system "#{bin}/forrest", "-projecthelp" + end +end |
