solr@6.6: make keg_only, fix plist_options (#33172)

This commit is contained in:
commitay 2018-10-20 08:20:13 +10:00 committed by GitHub
parent a1c66208ae
commit df2be4fabc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,8 @@ class SolrAT66 < Formula
bottle :unneeded bottle :unneeded
keg_only :versioned_formula
depends_on :java depends_on :java
skip_clean "example/logs" skip_clean "example/logs"
@ -21,14 +23,16 @@ class SolrAT66 < Formula
inreplace "#{bin}/post", '"$SOLR_TIP/dist"', "#{libexec}/dist" inreplace "#{bin}/post", '"$SOLR_TIP/dist"', "#{libexec}/dist"
# Fix the paths in the sample solrconfig.xml files # Fix the paths in the sample solrconfig.xml files
Dir.glob(["#{prefix}/example/**/solrconfig.xml", Dir.glob([
"#{prefix}/**/data_driven_schema_configs/**/solrconfig.xml", "#{prefix}/example/**/solrconfig.xml",
"#{prefix}/**/sample_techproducts_configs/**/solrconfig.xml"]) do |f| "#{prefix}/**/data_driven_schema_configs/**/solrconfig.xml",
"#{prefix}/**/sample_techproducts_configs/**/solrconfig.xml",
]) do |f|
inreplace f, ":../../../..}/", "}/libexec/" inreplace f, ":../../../..}/", "}/libexec/"
end end
end end
plist_options :manual => "solr start" plist_options :manual => "#{HOMEBREW_PREFIX}/opt/solr@6.6/bin/solr start"
def plist def plist
<<~EOS <<~EOS