---
name: zh-big5width
version: 1.0
origin: chinese/big5width
comment: Unicode width dirty fix for Big5 font (zh_TW.UTF-8 locale)
arch: freebsd:9:x86:64
www: http://www.csie.ntu.edu.tw/~r92030/project/big5width/
maintainer: rafan@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 78204
desc: |
  Unicode define some character width as ambiguous. Software determines
  the width of characters accroding the context. However, sometimes it is
  hard or impossible to know the context. Thus, this port dirty fixes some
  console software, let them recognize all characters in Big5 encoding
  range as double width. Now you will be happy with UTF8 terminal and
  Big5 fonts :)

  This port fixes the zh_TW.UTF-8 locale for wcwidth(3) and wcswidth(3).

  WWW: http://www.csie.ntu.edu.tw/~r92030/project/big5width/
categories: [chinese]
files:
  /usr/local/share/locale/zh_TW.UTF-8/LC_CTYPE: 98fa95bb15912dfbf814ed3e1282811c41f148b0f530add71c77a9c59f46ea03
directories:
  /usr/local/share/locale/zh_TW.UTF-8/: n
  /usr/local/share/locale/: y
scripts:
  post-install: |
    ln -fs /usr/local/share/locale/zh_TW.UTF-8/LC_CTYPE /usr/share/locale/zh_TW.UTF-8/LC_CTYPE
  pre-deinstall: |
    ln -fs ../UTF-8/LC_CTYPE /usr/share/locale/zh_TW.UTF-8/LC_CTYPE
message: |
  ==
  Because FreeBSD's installworld target cleans all locale
  stuffs up, you'll need to reinstall the port after every
  installworld operations.
  ==
