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

Commit

Permalink
Allow to install hunspell dictionaries as conda packages
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Apr 30, 2014
1 parent a995ca8 commit 5a34409
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
15 changes: 14 additions & 1 deletion hunspell/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
./configure --prefix=$PREFIX
./configure --prefix=$PREFIX --with-readine --with-ui
make
make check
make install
mv $PREFIX/bin/hunspell $PREFIX/bin/.hunspell

# We have to make a wrapper to add a spelling dictionary path to hunspell,
# since none of the default ones are relative to the binary (i.e., can be
# installed as a conda package)
cat <<EOF > $PREFIX/bin/hunspell
#!/bin/sh
export DICPATH='/opt/anaconda1anaconda2anaconda3/hunspell_dictionaries'
/opt/anaconda1anaconda2anaconda3/bin/.hunspell "\$@"
EOF

chmod a+x $PREFIX/bin/hunspell
6 changes: 6 additions & 0 deletions hunspell/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ source:
sha1: 902c76d2b55a22610e2227abc4fd26cbe606a51c
md5: 3121aaf3e13e5d88dfff13fb4a5f1ab8

build:
number: 1

has_prefix_files:
- bin/hunspell

requirements:
build:
- readline
Expand Down

0 comments on commit 5a34409

Please sign in to comment.