homebrew-core/Formula/apache-forrest.rb

39 lines
1.2 KiB
Ruby
Raw Normal View History

class ApacheForrest < Formula
desc "Publishing framework providing multiple output formats"
homepage "https://forrest.apache.org/"
url "https://www.apache.org/dyn/closer.cgi?path=forrest/apache-forrest-0.9-sources.tar.gz"
sha256 "c6ac758db2eb0d4d91bd1733bbbc2dec4fdb33603895c464bcb47a34490fb64d"
resource "deps" do
url "https://www.apache.org/dyn/closer.cgi?path=forrest/apache-forrest-0.9-dependencies.tar.gz"
sha256 "33146b4e64933691d3b779421b35da08062a704618518d561281d3b43917ccf1"
end
def install
libexec.install Dir["*"]
bin.install_symlink "#{libexec}/bin/forrest"
resource("deps").stage do
2013-11-28 10:00:33 +00:00
# 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"
]
deps_to_install.each do |dep|
(libexec+dep).install Dir["#{dep}/*"]
end
end
end
test do
system "#{bin}/forrest", "-projecthelp"
end
end