- Use apple-gcc42 instead of
authorMORIOKA Tomohiko <tomo.git@chise.org>
Thu, 7 Nov 2013 10:02:48 +0000 (19:02 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Thu, 7 Nov 2013 10:02:48 +0000 (19:02 +0900)
  https://raw.github.com/Homebrew/homebrew-dupes/master/gcc.rb.
(IMAKECPP): Use /usr/local/bin/cpp-4.2 instead of
/usr/local/bin/cpp-4.7.
- Use "brew tap chise/cjkv".
- Use gcc-4.2 to compile CHISE-base.

bootstrap.homebrew

index d99212f..2ca3586 100755 (executable)
@@ -3,9 +3,10 @@
 brew update
 brew upgrade
 
-brew install https://raw.github.com/Homebrew/homebrew-dupes/master/gcc.rb \
-       --use-llvm
-export IMAKECPP=/usr/local/bin/cpp-4.7
+#brew install https://raw.github.com/Homebrew/homebrew-dupes/master/gcc.rb \
+#      --use-llvm
+brew install apple-gcc42
+export IMAKECPP=/usr/local/bin/cpp-4.2
 
 brew -v install libtiff
 brew -v install openjpeg
@@ -24,10 +25,16 @@ then
     sudo ${brew_prefix}/sbin/cannakill
 fi
 
-(cd ${brew_prefix}; git pull https://github.com/chise/homebrew/)
+#(cd ${brew_prefix}; git pull https://github.com/chise/homebrew/)
+
+#brew -v install canna
+#brew upgrade
+
+brew tap chise/cjkv
+( cd /usr/local/Library/Taps/chise-cjkv ; \
+    git remote set-url origin git@github.com:chise/homebrew-cjkv.git)
+brew -v install /usr/local/Library/Taps/chise-cjkv/Library/Formula/canna.rb
 
-brew -v install canna
-brew upgrade
 
 sudo sh -c "sed 's/rc\.canna/rc.canna-root/' \
     < ${brew_prefix}`ls -l ${brew_prefix}/sbin/cannaserver \
@@ -38,7 +45,7 @@ sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.canna.plist
 
 brew -v install wget
 
-./configure \
+CC=gcc-4.2 ./configure \
     --with-site-includes=/usr/X11/include \
     --with-site-libraries=/usr/X11/lib \
     --with-canna