This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to install hunspell dictionaries as conda packages
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
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 |
---|---|---|
@@ -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 |
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