2013-11-17 10:12:20 +00:00
|
|
|
class ApacheForrest < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Publishing framework providing multiple output formats"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://forrest.apache.org/"
|
|
|
|
url "https://www.apache.org/dyn/closer.cgi?path=forrest/apache-forrest-0.9-sources.tar.gz"
|
|
|
|
sha256 "c6ac758db2eb0d4d91bd1733bbbc2dec4fdb33603895c464bcb47a34490fb64d"
|
2013-11-17 10:12:20 +00:00
|
|
|
|
2015-10-05 20:57:56 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "615ab5a39fcc19a110ebab166c05a614149374e65c5f9a7a4522fa400b8d4118" => :el_capitan
|
|
|
|
sha256 "cd0e4ceeb9e01118fe69bee3f80ccff63a951e01bf76c87146185ae6fe474c09" => :yosemite
|
|
|
|
sha256 "a0e06c41204932f1427e38d47b3c4442dea7f7c3312f959faf1b725d35d85a52" => :mavericks
|
|
|
|
end
|
|
|
|
|
2015-10-05 16:28:22 +00:00
|
|
|
depends_on :java
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
resource "deps" do
|
|
|
|
url "https://www.apache.org/dyn/closer.cgi?path=forrest/apache-forrest-0.9-dependencies.tar.gz"
|
|
|
|
sha256 "33146b4e64933691d3b779421b35da08062a704618518d561281d3b43917ccf1"
|
2013-11-17 10:12:20 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2015-08-03 12:55:31 +00:00
|
|
|
libexec.install Dir["*"]
|
2015-10-05 16:28:22 +00:00
|
|
|
(bin/"forrest").write_env_script libexec/"bin/forrest", Language::Java.java_home_env
|
2013-11-17 10:12:20 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
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",
|
2015-10-05 16:28:22 +00:00
|
|
|
"tools/jetty",
|
2013-11-28 10:00:33 +00:00
|
|
|
]
|
|
|
|
deps_to_install.each do |dep|
|
|
|
|
(libexec+dep).install Dir["#{dep}/*"]
|
|
|
|
end
|
2013-11-17 10:12:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/forrest", "-projecthelp"
|
|
|
|
end
|
|
|
|
end
|