以åãはこべにっき# - MacPortsでステキなUNIXツールをインストールã§MacPortsã®ç´¹ä»ããã¾ãããä»åã¯ããMacPortsæ¨æºã§ã¯ç¨æããã¦ããªãã½ããã¦ã§ã¢ãã¤ã³ã¹ãã¼ã«ã§ããããã«ãªãPrivatePortsãä»æ´ãªããå©ç¨ãã¦ã¿ã¾ããã
MacPortsã§ã¯ã½ããã¦ã§ã¢ãã¤ã³ã¹ãã¼ã«ããã®ã«ãã½ããã¦ã§ã¢ã®ã½ã¼ã¹ã³ã¼ãã®å ´æãã¤ã³ã¹ãã¼ã«æ¹æ³ãæå®ããportfileã¨ãããã®ã使ã£ã¦ãã¾ããæ®éã«MacPortsã使ã£ã¦ããã¨ããã©ã«ãã§ç¨æãããportfileã使ã£ã¦ã½ããã¦ã§ã¢ãã¤ã³ã¹ãã¼ã«ãããã¨ãã§ãã¾ãã
PrivatePortsã¨ããã®ã¯ãMacPortsã§ããã©ã«ã以å¤ã§ãæå¿ãä½æããportfileéã®äºãæãã¾ããPrivatePortsã使ãã°ãæ®éMacPortsã§ã¯ã¤ã³ã¹ãã¼ã«ã§ããªãã½ããã¦ã§ã¢ãããããé©å¿ãããã½ããã¦ã§ã¢ã使ãäºãã§ããããã«ãªãã¾ããããããããããããã
ãã¡ãKaoriYaãããã®vimããã®æ¹æ³ã§ã¤ãããã¨ç¥ã£ãã®ã§ããã®PrivatePortfile/Vim - MacPortsWiki-JPãã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¾ããã以ä¸ãã®ã¡ã¢ã
ã¾ããPrivatePortsã®portfileãç½®ãããã®ãã£ã¬ã¯ããªãä½æãã¾ããç§ã¯ä»¥ä¸ã®ããã«ãã¾ããã
$ mkdir /Users/yohei/localports
ãã®ãã£ã¬ã¯ããªã«ãportfileãå±éãã¾ããPrivatePortfile/Vim - MacPortsWiki-JPã®vimãå©ç¨ããã«ã¯ãPrivatePortfile/CMigemo - MacPortsWiki-JPã«ããCMigemoãå¿ è¦ãããã®ã§ãããããã®ãã¼ã¸ãããææ°ã®portfileããã¦ã³ãã¼ããã¦å±éãã¾ããå±éãããã¡ã¤ã«ã/Users/yohei/localportsã«ç½®ãã¨æ¬¡ã®ããã«ãªãã¾ãã
$ ls /Users/yohei/localports
editors/ textproc/
ããã ãã§ã¯ãportããã¯èªã¿è¾¼ããªãããããã¤ã³ããã¯ã¹ãä½æããå¿ è¦ãããã¾ããportindexã³ãã³ãã§ã¤ã³ããã¯ã¹ãä½ãã¾ããããã¯portfileã追å ãããã¨ã«å¿ è¦ã ã¨æãã¾ãããã¶ãã
$ cd /Users/yohei/localports $ portindex Creating software index in /Users/yohei/localports Adding port editors/vim Adding port textproc/cmigemo Total number of ports parsed: 2 Ports successfully parsed: 2 Ports failed: 0
ããã§ãportfileã®é ç½®ã¯ã§ãã¾ããããããããã®ã¾ã¾ã ã¨portã³ãã³ãã¯ãããããã¤ãã£ãlocalportsãã©ãã«ããã®ããããã¾ãããããã§/opt/local/etc/ports/sources.confã«æ¬¡ã®ä¸è¡ãæ¸ãå ãã¾ãã
file:///Users/yohei/localports
ããã§ããããã追å ããportfileãportã³ãã³ãã§ä½¿ããããã«ãªã£ãã¯ãã§ãã確èªããã¨ã
$ port search vim vim editors/vim 7.1b.001 Vi workalike with many additional features vimdrop aqua/vimdrop 0.8 droplet for getting files loaded into vim vim editors/vim 7.1b.002 Vi workalike with many additional features vim-app editors/vim-app 7.0.224 Vim.app is a GUI version of the famous editor vim. p5-text-vimcolor perl/p5-text-vimcolor 0.11 syntax color text in HTML or XML using Vim. vim2html textproc/vim2html 1.46 vim2html converts any Vim-editable file into well-formed HTML
ããã©ã«ãã®vim以å¤ã«ãå¥ã®vimãç¾ããããã«ãªãã¾ãããä¸çªä¸ã®vimãããã§ãã
å¾ã¯ä¾åã¢ã¸ã¥ã¼ã«ã§ããcmigemoãã¤ã³ã¹ãã¼ã«ããã°ãkaoriyaãããã®ããã£ãvimãã¤ã³ã¹ãã¼ã«ã§ããããã«ãªãã¾ãããã¡ã¯ã以ä¸ã®ããã«æ°ããvimãã¤ã³ã¹ãã¼ã«ãã¾ããã
$ sudo port install cmigemo +utf8 $ sudo port install vim +huge +multibyte +perl +python +ruby +macvim +kaoriya +cscope +aqua
PrivatePortsã¯PrivatePortfile - MacPortsWiki-JPã«ã¾ã¨ãããã¦ãã¦ãä»ã«ããããããªãã®ãä½æããã¦ããããã§ãããããããããããããã
èªåã§ãä½ãããããªã®ã§ãã¾ã MacPortsã«ãªãã¢ã¸ã¥ã¼ã«ã®portfileãä½ã£ã¦ã¿ãã®ãããããã§ããã