Skip to content

Commit

Permalink
Merge pull request #141341 from Moisan/apache-opennlp_2.3.0
Browse files Browse the repository at this point in the history
apache-opennlp 2.3.0
  • Loading branch information
BrewTestBot authored Sep 4, 2023
2 parents ee4299d + 77c2249 commit 6eeec04
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Formula/a/apache-opennlp.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
class ApacheOpennlp < Formula
desc "Machine learning toolkit for processing natural language text"
homepage "https://opennlp.apache.org/"
url "https://www.apache.org/dyn/closer.lua?path=opennlp/opennlp-2.1.1/apache-opennlp-2.1.1-bin.tar.gz"
mirror "https://archive.apache.org/dist/opennlp/opennlp-2.1.1/apache-opennlp-2.1.1-bin.tar.gz"
sha256 "b0f9e2a711e348f6a8cee402b0344c92e9edbdc267a23b43bcc02c679aba18bc"
url "https://www.apache.org/dyn/closer.lua?path=opennlp/opennlp-2.3.0/apache-opennlp-2.3.0-bin.tar.gz"
mirror "https://archive.apache.org/dist/opennlp/opennlp-2.3.0/apache-opennlp-2.3.0-bin.tar.gz"
sha256 "d506207db0fe9d23864f36dd6f7b31a42d35028d29fa3c9f89883228eb8522a1"
license "Apache-2.0"

bottle do
sha256 cellar: :any_skip_relocation, all: "cb1202d68368e63957b407ab0719327100ce7d89cdd16dd710c1ad117d4fe3e4"
sha256 cellar: :any_skip_relocation, all: "6b36dffdb371955cc8d6ba3abd326142fdbfe5e47aac62bd588f4220d88802ae"
end

depends_on "openjdk"

def install
libexec.install Dir["*"]
(bin/"opennlp").write_env_script libexec/"bin/opennlp", JAVA_HOME: Formula["openjdk"].opt_prefix
(bin/"opennlp").write_env_script libexec/"bin/opennlp", JAVA_HOME: Formula["openjdk"].opt_prefix,
OPENNLP_HOME: libexec
# script uses a relative path to the conf folder
inreplace libexec/"bin/opennlp", "../conf", "$OPENNLP_HOME/conf"
end

test do
Expand Down

0 comments on commit 6eeec04

Please sign in to comment.