作ってみた

いきなりだが、コードを貼付ける。
ダウンロードはこちらから行って下さい。

PortSystem 1.0

name                    tx
version                 0.12
revision                1
description             Library for a compact trie data structure.
long_description        Tx is a library for a compact trie data structure. \
  Tx requires 1/4 - 1/10 of the memory usage compared to the previous implementations, \
  and can therefore handle quite a large number of keys (e.g. 1 billion) efficiently. \
  A trie data structure supports exact matching and common prefix matching, \
  which are used for natural language processing etc. \
  Tx uses Level-Order Unary Degree Sequence (LOUDS) for trie representation.
categories              devel
platforms               darwin
homepage                http://www-tsujii.is.s.u-tokyo.ac.jp/~hillbig/tx.htm
master_sites    http://www-tsujii.is.s.u-tokyo.ac.jp/~hillbig/software/
checksums               md5 9e381d2c6c6f0fed7371e9a2f5f64d98

これをPortfileというファイル名で保存した後

$ sudo mkdir -p /opt/local/var/localports/devel/tx
$ sudo cp Portfile /opt/local/local/var/localports/devel/tx/
$ cd /opt/local/var/localports
$ sudo portindex
$ sudo port -v selfupdate

と実行すればMacportsにtxが組み込まれる。

$ port list tx
tx                             @0.12           devel/tx

ちゃんとでてきますね。