Added MeCab recipe.

This commit is contained in:
Patrick 2024-04-10 20:53:52 +02:00
parent d126296283
commit 040571f74b

14
recipes/mecab/recipe.py Normal file
View 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']
}