野良デビュー portでvimを入れる
某vの字の使っているvimが素敵な事になっていたので、野良ポートより
vimをインストールしてみた。
色々することがあったので、メモしておく
(全く同じ者がここ(http://noraports.com/)にも書いてある)
全体手順
- portsをsvnでチェックアウトする。
- port のコンフィグを設定する。
- portindexを作り直す
- 実行チェックする。
- インストールする。
詳細手順
任意のディレクトリーに移動して、(今回は/Users/hoge/.)
$ svn co http://noraports.com/svn/trunk/ports
portの設定を書き換える。設定ファイルに上記portsフォルダーを指定する
$ sudo vim /opt/local/etc/macports/sources.conf
# MacPorts system wide sources configuration file # $Id: sources.conf 26177 2007-06-15 10:11:22Z jmpp@macports.org $ # # To enable your local ports repository, uncomment and customize the # following line to point at your local ports directory # Example: file:///Users/landonf/misc/MacPorts/ports # # To prevent a source from synchronizing when `port sync` is used, # append [nosync] to the end of the line # Example: file:///Users/landonf/misc/MacPorts/dports [nosync] # # To get the ports tree from the MacPorts rsync.macports.org server use: # rsync://rsync.macports.org/release/ports/ file:///Users/hoge/ports rsync://rsync.macports.org/release/ports/
下から2行目の様に追加する。
file:の後ろは’/’3つ書く(これ良く見かけるけど、なんで3つなのかは知らない)
portindexして、設定を追加する
% portindex [~/ports] Creating software index in /Users/hoge/ports Adding port databases/mysql5 Adding port databases/openldap Adding port databases/tokyocabinet Adding port devel/ctags Adding port devel/href Adding port editors/emacs-devel Adding port editors/macvim Adding port editors/smultron-ja Adding port editors/vim Adding port python/py25-tc Adding port ruby/rb-amazon Adding port shells/zsh-devel Adding port sysutils/freeradius Adding port sysutils/proctools Adding port sysutils/screen Adding port textproc/cmigemo Adding port textproc/mecab Adding port textproc/mecab-ipadic-utf8 Adding port textproc/senna Total number of ports parsed: 19 Ports successfully parsed: 19 Ports failed: 0
無事に追加されたようだ。
動作チェックする
% sudo port info vim Warning: Found 2 port vim definitions, displaying first one. vim 7.1.293, editors/vim (Variants: universal, athena, gtk1, gtk2, motif, tiny, small, big, huge, multibyte, xim, perl, python, ruby, tcl, cscope, kaoriya, aqua, cocoa) http://www.vim.org/ Vim is a virtually compatible, extremely enhanced version of the vi editor. Library Dependencies: gettext, ncurses Platforms: darwin freebsd Maintainers: nomaintainer@macports.org
Variantsの中身が増えてる。無事に追加されている。