MacPortsを利用してインストールしたrubyのインストールオプションを知りたくなったので、調べました。
###port installed rubyで確認
下記の場合、thread_hooksがvariantsとして指定されインストールされている:
shell>>
% port installed ruby
The following ports are currently installed:
ruby @1.8.7-p72_2+thread_hooks (active)
<<--
###MacPortsのrubyで指定可能なインストールオプション:variants
portでインストールされるrubyには下記のvariantsがあります:
shell>>
% port variants ruby
ruby has the variants:
universal
darwin
darwin_7
tk: enable tk support
mactk: enable MacTk (Tk.framework without X11) support
thread_hooks: apply Apple's thread_hooks patch
no_doc: do not install rdoc documents
<<--
また後でvariantsを追加してインストール場合は、別のrubyとみなされるようなので、deactivateかuninstallする必要があるようです:
* As「ruby +mactk」and「ruby +mactk +thread_hooks」are recognized as another, if you add to「thread_hooks」after installing「ruby +mactk」, you need to uninstall or be deactivate「ruby +mactk」.