├── bin ├── release ├── detect └── compile └── README.md /bin/release: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "--- {}" 3 | -------------------------------------------------------------------------------- /bin/detect: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # this pack requires mecab and mecab-ipadic 4 | 5 | if [ -f $1/.linuxbrew/bin/mecab ]; then 6 | echo "mecab-ipadic-NEologd" 7 | exit 0 8 | else 9 | exit 1 10 | fi -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Heroku buildpack: mecab-ipadic-NEologd 2 | ======================= 3 | 4 | This is a [Heroku buildpack](http://devcenter.heroku.com/articles/buildpacks) for using [mecab-ipadic-NEologd](https://github.com/neologd/mecab-ipadic-neologd) in your project. -------------------------------------------------------------------------------- /bin/compile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | indent() { 4 | sed -u 's/^/ /' 5 | } 6 | 7 | echo "-----> Install mecab-ipadic-NEologd" 8 | BUILD_DIR=$1 9 | VENDOR_DIR="vendor" 10 | CLONE_URL="https://github.com/neologd/mecab-ipadic-neologd" 11 | 12 | echo "CLONE_URL = " $CLONE_URL | indent 13 | 14 | cd $BUILD_DIR 15 | mkdir -p $VENDOR_DIR 16 | cd $VENDOR_DIR 17 | 18 | echo "Set PATH: /app/.linuxbrew/bin/" | indent 19 | PATH="$PATH:$BUILD_DIR/.linuxbrew/bin/" 20 | export PATH 21 | echo "PATH exported" | indent 22 | 23 | git clone --depth 1 $CLONE_URL | indent 24 | cd mecab-ipadic-neologd 25 | 26 | yes yes | bin/install-mecab-ipadic-neologd -u `whoami` --ignore_adverb\ 27 | --ignore_interject\ 28 | --ignore_noun_ortho\ 29 | --ignore_noun_sahen_conn_ortho\ 30 | --ignore_adjective_std\ 31 | --ignore_adjective_verb\ 32 | --eliminate-redundant-entry | indent 33 | --------------------------------------------------------------------------------