brew update
brew upgrade
+brew_prefix=`brew --prefix`
+
#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 install apple-gcc42
+#export IMAKECPP=/usr/local/bin/cpp-4.2
+brew install gcc
+export IMAKECPP=${brew_prefix}/bin/cpp
brew -v install libtiff
brew -v install openjpeg
brew -v install xaw3d
brew -v install gettext
-brew_prefix=`brew --prefix`
-
if [ -f /Library/LaunchDaemons/homebrew.mxcl.canna.plist ]
then
sudo launchctl unload -w /Library/LaunchDaemons/homebrew.mxcl.canna.plist
sudo ${brew_prefix}/sbin/cannakill
fi
-#(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 tap chise/misc
+brew -v install canna
sudo sh -c "sed 's/rc\.canna/rc.canna-root/' \
brew -v install wget
-CC=gcc-4.2 ./configure \
+CC=${brew_prefix}/bin/gcc ./configure \
--with-site-includes=/usr/X11/include \
--with-site-libraries=/usr/X11/lib \
--with-canna