Permalink
Browse files

konoha: --HEAD and adding mecab dep for 10.8+

because 10.7 is the last SDK that has mecab.h.
  • Loading branch information...
1 parent 0cddc35 commit 4e2dbef4336679663d3b3b3d6a8c4290daded22f @samueljohn samueljohn committed Aug 27, 2013
Showing with 3 additions and 5 deletions.
  1. +3 −5 Library/Formula/konoha.rb
@@ -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'

0 comments on commit 4e2dbef

Please sign in to comment.