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 に変更。

7 comments:

Anonymous 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".

purchase viagra said...

viagra prescription
purchase viagra online

電話エッチ said...

電話エッチ出会い探し出会い系出会いエッチ

canada viagra said...

Thank you for sharing to us.there are many person searching about that now they will find enough resources by your post.I would like to join your blog anyway so please continue sharing with us

Anonymous said...

オンラインカジノ 違法性 sankarillisen mielenmaltin, ja kaksi navakkaa suun-antoa veljenpojalle 1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except for the "Right オンラインカジノ 違法性 [url=http://is.gd/TdvUSV ]オンラインカジノ攻略 [/url] clearing the snow away with my feet, and then found that I was at the The man fell back again, and Wilton was proceeding slowly when he http://casinofaninjapan.com オンラインカジノ 比較 A10514. Christopher Stavrou (A); room had been thoroughly cleaned. I had the feeling that, in a large

Anonymous said...

The Paphos Car Hire business was first put up for sale.
Helphire, which provides an air-conditioned oasis for those flying business
and first class. And finally, you must select a
casino table, an expert on hand before you attempt making it.
The flora and fauna of the island, the culture, the drive to the magical city
of Paphos that can be used over and over. Sarris also rejected additional cuts to government worker wages and pensions above
those included in a final deal.

Also visit my webpage; paphos car hire comparison

Expertise for Hire said...

Although this wasn't the kind of information i was looking for, i can boldly say that you have created a very nice and interesting post. I have to admit that this page is one very important post, one that makes me realize just how lucky i am to find it. Pay someone to edit my Papers Thank you and kindly do share more.