Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
konoha: --HEAD and adding mecab dep for 10.8+
Browse files Browse the repository at this point in the history
because 10.7 is the last SDK that has mecab.h.
  • Loading branch information
samueljohn committed Aug 27, 2013
1 parent 0cddc35 commit 4e2dbef
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Library/Formula/konoha.rb
Expand Up @@ -5,22 +5,20 @@ class Konoha < Formula
url 'https://github.com/konoha-project/konoha3/archive/v0.1.tar.gz'
sha1 '85ee3527c9a2db2874280e506c09aab8809a6ad5'

head 'https://github.com/konoha-project/konoha3.git'

option 'tests', 'Verify the build with make test (1 min)'

depends_on 'cmake' => :build
depends_on :mpi => [:cc, :cxx]
depends_on 'pcre'
depends_on 'json-c'
depends_on 'sqlite'
depends_on 'mecab' if MacOS.version >= :mountain_lion
depends_on :python # for python glue code

def install
args = std_cmake_args + ['..']
# mecab is no longer in the 10.8 SDK but superenv does not (yet) support
# switching to an older SDK. And if we add the include path so that
# `mecab.h` is found, we get more errors in mecab_glue.c:
# error: no member named 'id' in 'struct mecab_node_t'
args << "-DHAVE_LIBMECAB=OFF" if MacOS.version >= :mountain_lion
mkdir 'build' do
system 'cmake', *args
system 'make'
Expand Down

0 comments on commit 4e2dbef

Please sign in to comment.