forked from sjackman/linuxbrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch homebrew/master into linuxbrew/master
Conflicts: Formula/pango.rb Formula/python3.rb Formula/stunnel.rb
- Loading branch information
Showing
10 changed files
with
75 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
class ApacheCtakes < Formula | ||
desc "NLP system for extraction of information from EMR clinical text" | ||
homepage "https://ctakes.apache.org" | ||
url "https://apache.osuosl.org/ctakes/ctakes-4.0.0/apache-ctakes-4.0.0-bin.tar.gz" | ||
sha256 "37ca2b8dfe06465469ed1830fbb84dfc7bcc4295e5387d66e90a76ad2a5cdeaf" | ||
|
||
bottle :unneeded | ||
|
||
option "with-ctakes-resources", "Install prebuilt dictionaries and models" | ||
|
||
depends_on :java => "1.8+" | ||
|
||
resource "ctakes-resources" do | ||
url "https://downloads.sourceforge.net/project/ctakesresources/ctakes-resources-4.0-bin.zip" | ||
sha256 "c72b5f64e1572c207c139f1dfbe6fa8b5e3708bc66e1f5d6f4c8863055121351" | ||
end | ||
|
||
def install | ||
rm_f Dir["bin/*.bat", "bin/*.cmd", "bin/ctakes.profile", "bin/ctakes-ytex", | ||
"libexec/*.bat", "libexec/*.cmd"] | ||
libexec.install %w[bin config desc lib resources] | ||
pkgshare.install_symlink libexec/"resources/org/apache/ctakes/examples" | ||
|
||
if build.with? "ctakes-resources" | ||
resource("ctakes-resources").stage do | ||
system "ditto", "resources", libexec/"resources" | ||
end | ||
end | ||
|
||
bin.write_exec_script Dir["#{libexec}/bin/*"] | ||
end | ||
|
||
test do | ||
piper = pkgshare/"examples/pipeline/HelloWorld.piper" | ||
note = pkgshare/"examples/notes/dr_nutritious_1.txt" | ||
output = shell_output("#{bin}/runPiperFile.sh -p #{piper} -i #{note}") | ||
assert_match "mayo-pos.zip", output | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters