Added MeCab recipe.
This commit is contained in:
parent
d126296283
commit
040571f74b
14
recipes/mecab/recipe.py
Normal file
14
recipes/mecab/recipe.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
from SCons.Script import *
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
def cook(env: Environment, git_ref = 'master') -> dict:
|
||||||
|
repo = env.Cook('GitBranch', repo_name = 'mecab', remote_url = 'https://github.com/taku910/mecab.git', git_ref = git_ref)
|
||||||
|
checkout_root = repo['checkout_root']
|
||||||
|
build_result = env.Cook('AutotoolsProject', os.path.join(checkout_root, 'mecab'))
|
||||||
|
return {
|
||||||
|
'LIBPATH': build_result['LIBPATH'],
|
||||||
|
'CPPPATH': build_result['CPPPATH'],
|
||||||
|
'LIBS': ['mecab']
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user