Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
Add recipe for languagetool
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Apr 23, 2014
1 parent 3ee4a69 commit 7b79673
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
8 changes: 8 additions & 0 deletions languagetool/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) # 1.7 is also fine
./build.sh languagetool-standalone clean package

# There doesn't seem to be a recommended place to install it, so
# $PREFIX/languagetool seems good enough.
mv languagetool-standalone/target/LanguageTool-2.6-SNAPSHOT/LanguageTool-2.6-SNAPSHOT $PREFIX/languagetool

git describe | sed 's/-/_/g' > __conda_version__.txt
18 changes: 18 additions & 0 deletions languagetool/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package:
name: languagetool
version: 2.6 # Overriden by build.sh

source:
git_url: git://github.com/languagetool-org/languagetool.git

test:
files:
- test.txt

commands:
- java -jar $PREFIX/languagetool/languagetool-commandline.jar test.txt

about:
home: https://www.languagetool.org/
license: LGPL
summary: "LanguageTool is an Open Source proofreading software for English, French, German, Polish, Russian, and more than 20 other languages. It finds many errors that a simple spell checker cannot detect."
8 changes: 8 additions & 0 deletions languagetool/notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
You need to install `mvn` somewhere in your path
(http://maven.apache.org/download.cgi), and you need to have the Java SDK
(which is not the same thing as the runtime) 1.7 (or 1.8). You can check with
`javac -version`. That is from
http://www.oracle.com/technetwork/java/javase/downloads. If you have 1.8 and
you want to set it aside, see
http://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html#A1096903
for how to do this on a Mac.
1 change: 1 addition & 0 deletions languagetool/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is is a test

0 comments on commit 7b79673

Please sign in to comment.