solr@6.6: make keg_only, fix plist_options (#33172)
This commit is contained in:
parent
a1c66208ae
commit
df2be4fabc
1 changed files with 8 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue