MacPortsでgit-svnをインストールしたい場合,git-coreをインストールするときにvariantsで+svnを指定しなければならないみたい.
$ port variants git-core git-core has the variants: doc: Install HTML and plaintext documentation gitweb: Install gitweb.cgi svn: Bi-directional subversion repository support bash_completion: Bash completion support
こんな感じ.
$ sudo port install git-core +svn
既にgit-coreをインストールしてしまっている場合はportに-fオプションを与えて上書きインストールすればOK.
$ sudo port -f install git-core +svn
…と思っていたら,最後の最後でこんなエラーが発生.
---> Activating git-core @1.6.1_1+doc+svn Error: Target org.macports.activate returned: Image error: Another version of this port (git-core @1.6.0.4_0+doc) is already active. Error: Status 1 encountered during processing.
既にインストールされているgit-coreをdeactivateすることで解決できた.
$ sudo port deactivate git-core ---> Deactivating git-core $ sudo port install git-core +svn ---> Activating git-core @1.6.1_1+doc+svn ---> Cleaning git-core