Wednesday, May 16, 2007

Macでいろいろ対応したVim7.1(gvim)のインストール

以前のエントリにて、

普段 MacPorts 版の Vim7 を利用しているのだが、いつのまにか gvim がビルドされなくなっているようだ。

なんて言っていたのだが、実は、vim-app として分かれていただけだった。

% port info vim-app
vim-app 7.1.000, editors/vim-app (Variants: universal, big, huge, multibyte, xim, perl, python, ruby, tcl, cscope, darwin_i386)
http://www.vim.org/

This port provides Vim.app, a GUI version of the famous editor vim. Vim is a highly configurable text editor built to enable efficient text editing.

Library Dependencies: gettext, ncurses
Platforms: darwin freebsd
Maintainers: raimue@codingfarm.de

ただし、相変わらず日本語のインライン入力には対応しておらず、我々日本人にとって常用できるレベルのものでは無い。

そこで、様々なパッチを適用した Local Portfile を公開してるがいらっしゃったので、ありがたく使わせていただくことにする。

何に対応しているのかというと、

  • 日本語のインライン入力
  • migemo
  • アンチエイリアス / ATSUI
  • 半透明

と、至れり尽くせり。

今回、Local Portfile を利用するのは初めてなので、自前の Portfile の作り方・使い方 を参考にしながら Local Ports Repository を構築する。

% sudo mkdir /opt/local/var/db/dports/sources/private
% cd /opt/local/var/db/dports/sources/private
% sudo mkdir `ls -F1 /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/ | grep '\/$'`
% sudo vi /opt/local/etc/ports/source.conf
# To enable your local ports repository, uncomment and customize the
# following line to point at your local dports directory
# Example: file:///Users/landonf/misc/darwinports/dports
#
# To get darwinports from the darwinports rsync server use:
# rsync://rsync.darwinports.org/dpupdate/dports
file:///opt/local/var/db/dports/sources/private
rsync://rsync.darwinports.org/dpupdate/dports

予め、以下の Portfile をダウンロードしておきます。

% sudo tar jxvf ~/src/cmigemo.1.3c_3.tbz2
textproc/cmigemo/
textproc/cmigemo/files/
textproc/cmigemo/files/patch-config.mk.diff
textproc/cmigemo/files/patch-config.mk.in.diff
textproc/cmigemo/files/patch-config_default.mk.diff
textproc/cmigemo/files/patch-dict.mk.diff
textproc/cmigemo/files/patch-Make_osx.mk.diff
textproc/cmigemo/Portfile

% sudo tar jxvf ~/src/vim7.1.000.0.tbz2
editors/vim/
editors/vim/Portfile
editors/vim/files/
editors/vim/files/GVim_app.tar.gz
editors/vim/files/atsui+inline.diff
editors/vim/files/checksums_dist
editors/vim/files/checksums_patch
editors/vim/files/gvim.sh
editors/vim/files/gvimrc
editors/vim/files/patch-Info.plist
editors/vim/files/transparency.diff
editors/vim/files/vimrc

% sudo portindex
Creating software index in /opt/local/var/db/dports/sources/private
Adding port editors/vim
Adding port textproc/cmigemo

Total number of ports parsed:   2 
Ports successfully parsed:      2        
Ports failed:                   0

インストール済みのMacPorts版Vimは削除しておいてから、LocalPorts版Vimをインストールします。

% sudo port install cmigemo +utf8
--->  Installing cmigemo 1.3c_3+utf8
--->  Activating cmigemo 1.3c_3+utf8
--->  Cleaning cmigemo

% sudo port install vim +huge +kaoriya +cscope +ruby +aqua +macvim
--->  Fetching vim
--->  Verifying checksum(s) for vim
--->  Extracting vim
--->  Configuring vim
--->  Building vim with target all
--->  Staging vim into destroot
--->  Installing vim 7.1.000_0+aqua+cscope+darwin_i386+huge+kaoriya+macvim+ruby
--->  Activating vim 7.1.000_0+aqua+cscope+darwin_i386+huge+kaoriya+macvim+ruby
--->  Cleaning vim

これで完成です。

かなり良いですね。

フォントも綺麗になったし、半透明は嬉しいし、migemoは便利だし。

PrivatePortfile公開ありがとうございます > sakamoto

関連URL

2007/05/31 修正

Local Port Repository のパスを ~/src/ports から /opt/local/var/db/dports/sources/private に変更。

2 comments:

aiyipianni said...

Aston Villa rode their luck at Hull City where an 88-minute own goal from Kamil Zayatte saw them leapfrog three points clear of Arsenal and into fourth place in the Premier League wow gold with a 1-0 win.

Villa had to survive Hull penalty wotlk gold appeals for a handball against Ashley Young in time added on, television replays showing that referee Steve Bennett wow gold correctly rejected the claims after consulting a linesman.

Bennett had been involved in controversy after just five minutes when American goalkeeper Brad Friedel looked to have handed Hull the initiative and threaten Villa's return to the Champions League qualifying wow gold zone.

Friedel spilled the ball under pressure from Nick Barmby and stand-in right-back Nigel Reo-Coker turned it into his own net as he attempted to wow gold clear.

But Bennett cut short celebrations at the KC Stadium -- and let Friedel off the hook -- when he ruled out the score for an wow wotlkapparent infringement by Barmby.

Zayatte's intervention from a Young cross bound for wow gold Gabriel Agbonlahor then saw Villa leapfrog Arsenal and draw level with Manchester United on 38 points -- seven adrift of leaders Liverpool and four wow gold behind Chelsea.

Stung by an on-pitch dressing down wow gold by manager Phil Brown at Manchester City last week, Hull showed five changes and a vastly improved performance.

Promoted Hull were looking for only their second win in 11 games while wow gold Villa arrived unbeaten in seven and it looked to be heading for a goalless draw when the home side suffered a cruel late blow.

aiyipianni said...

British tennis ace Andy Murray can expect a massive income injection after joining the same wow po management group that handles the likes wow or of David Beckham and Cristiano Ronaldo.

Simon Fuller's 19 Entertainment, wow geld partnered with CAA Sports, signed world number four LOTR Gold Murray and doubles-playing brother Jamie for representation across all their on and off court activity from LOTR gold March 2009.

"Jamie and I buy Warhammer gold/a> feel we've made big progress in the last couple of years on court," 21-year-old 2008 U.S. Open runner-up Andy said on his Web site.

"It's important that we have the very best team around us to take care of business while buy Warhammer gold we concentrate 100% on our tennis. Warhammer gold So this is a fantastic opportunity for us to work with buy Warhammer gold Simon Fuller, 19 and CAA Sports.

"We now have an Warhammer gold unbeatable combination of representatives buy Warhammer gold with world-class stature and experience, and Warhammer gold we are really excited by what we can achieve buy Warhammer gold together".

Fuller's company, which Warhammer gold is run from London, New York and LA, wow gold has partnered with CAA Sports, and already represents world of warcraft gold the world No. 3 Novak Djokovic.

American Idol creator Fuller buy wow gold commented: "I am very cheap wow gold excited to be working with Andy and Jamie, wow power leveling two of the brightest British wow powerleveling talents in global sports.

"Their determination dofus kamas to succeed has become a kamas dofus trademark in their game and their progress as professional Lord of the Rings Online Gold sportsmen has taken them to the LOTRO Gold top in world tennis.

"19's innovative LOTR Gold partnership with CAA Sports will provide them fly for fun penya with an unparalleled level of flyff penya global support".