itamae-plugin-recipe-yk_mecab 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/itamae/plugin/recipe/yk_mecab/install.rb +10 -10
- data/lib/itamae/plugin/recipe/yk_mecab/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e92a8468f08f9b486e9ef39d159919e6184692e
|
4
|
+
data.tar.gz: 186bd3d485ce4d1324da5b0c550fb7db3c8bc54c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60a7411466dac774963ad5c6a22a4e2958a620063821966756bef4c70eab4c63a2631f20b7e4cb56d467ee5446a5a63024b39bc7835e048fc248460e934cc2c1
|
7
|
+
data.tar.gz: 27319905a96cfb2e8f9ce0ad0a41f721190b8d9768f40ecefc169dd4648e953039d6bc34eda4ac3ae1d6aeaf6e8c9d33075ffcfba3d3820509913a9d3aa5db03
|
data/README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/itamae-plugin-recipe-yk_mecab.svg)](https://badge.fury.io/rb/itamae-plugin-recipe-yk_mecab)
|
2
|
+
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/yosuke0315/itamae-plugin-recipe-yk_mecab/blob/master/LICENSE.txt)
|
3
|
+
|
1
4
|
# Itamae::Plugin::Recipe::YkMecab
|
2
5
|
|
3
6
|
Itamae plugin to install mecab
|
@@ -41,10 +44,9 @@ include_recipe "yk_mecab::install"
|
|
41
44
|
|
42
45
|
```yml
|
43
46
|
# for example
|
44
|
-
|
45
|
-
user: 'vagrant'
|
46
47
|
home_dir: '/home/ec2-user/'
|
47
48
|
mecab:
|
49
|
+
user: 'vagrant'
|
48
50
|
hatena: '1' # If you need hatena dictionary.
|
49
51
|
wikipedia: '' # If you don't need wikipedia dictionary.
|
50
52
|
```
|
@@ -8,22 +8,22 @@ end
|
|
8
8
|
package 'wget'
|
9
9
|
|
10
10
|
# download and install mecab
|
11
|
-
execute "wget http://
|
12
|
-
not_if 'ls | grep
|
11
|
+
execute "wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mecab/mecab_0.996.orig.tar.gz" do
|
12
|
+
not_if 'ls | grep mecab_0.996.orig.tar.gz'
|
13
13
|
end
|
14
14
|
|
15
|
-
execute "tar zxvf
|
16
|
-
not_if 'ls | grep mecab-0.
|
15
|
+
execute "tar zxvf mecab_0.996.orig.tar.gz" do
|
16
|
+
not_if 'ls | grep mecab-0.996$'
|
17
17
|
end
|
18
18
|
|
19
|
-
execute "cd mecab-0.
|
19
|
+
execute "cd mecab-0.996; sudo ./configure --enable-utf8-only; make; sudo make install"
|
20
20
|
|
21
21
|
# install ipa dictionary
|
22
|
-
execute "wget http://
|
23
|
-
not_if 'ls | grep mecab-
|
22
|
+
execute "wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mecab-ipadic/mecab-ipadic_2.7.0-20070801+main.orig.tar.gz" do
|
23
|
+
not_if 'ls | grep mecab-ipadic_2.7.0-20070801+main.orig.tar.gz'
|
24
24
|
end
|
25
25
|
|
26
|
-
execute "tar zxvf mecab-
|
26
|
+
execute "tar zxvf mecab-ipadic_2.7.0-20070801+main.orig.tar.gz" do
|
27
27
|
not_if 'ls | grep mecab-ipadic-2.7.0-20070801$'
|
28
28
|
end
|
29
29
|
|
@@ -67,10 +67,10 @@ unless node[:mecab][:wikipedia].empty? && node[:mecab][:hatena].empty?
|
|
67
67
|
remote_file "#{node[:home_dir]}/make_dict.rb" do
|
68
68
|
source './files/make_dict.rb'
|
69
69
|
mode '755'
|
70
|
-
user node[:user]
|
70
|
+
user node[:mecab][:user]
|
71
71
|
end
|
72
72
|
execute "/bin/bash -lc 'ruby make_dict.rb'" do
|
73
|
-
user node[:user]
|
73
|
+
user node[:mecab][:user]
|
74
74
|
end
|
75
75
|
execute "/usr/local/libexec/mecab/mecab-dict-index -d /usr/local/lib/mecab/dic/ipadic -u custom.dic -f utf-8 -t utf-8 custom.csv"
|
76
76
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae-plugin-recipe-yk_mecab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yosuke0315
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: itamae
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: '0'
|
109
109
|
requirements: []
|
110
110
|
rubyforge_project:
|
111
|
-
rubygems_version: 2.
|
111
|
+
rubygems_version: 2.5.1
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Itamae plugin to install mecab
|