---
name: ja-grep
version: 2.4.2
origin: japanese/grep
comment: GNU grep + multi-byte extension
arch: freebsd:9:x86:64
www: UNKNOWN
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 352063
desc: |
  This package is multi-byte extented GNU GREP.  It accepts text which
  includes multi-byte character code.  Supported multi-byte codes are
  2 byte EUC code and/or Shift-JIS code.

  Grep searches the named input files (or standard input if no files are
  named, or the file name - is given) for lines containing a match to
  the given pattern. By default, grep prints the matching lines.

  Multi-byte code by Media Lab., Inc. (linux@mlb.co.jp)
  and t^2(Takahiro Tanimoto, NBC02362@niftyserve.or.jp).
categories: [textproc, japanese]
files:
  /usr/local/bin/jegrep: e11e1b27898b179a25beb673ac70e6426b4c41f95f21c6e9d604e3aaafc9f9d2
  /usr/local/bin/jfgrep: 9574a71b67a9cca143aed4cbd4bdb2717ce9f1dbe6f8c380582ee8eb6c944395
  /usr/local/bin/jgrep: e37896207d2dc8e6070a93188b8914d273e6e17088f85028c6a6e46b7df3b7e7
  /usr/local/info/grep.info: 9ab969624c7bb405e4b9bda003886492e1f4f84bf4dc35b0afabe3d5cac17924
  /usr/local/man/man1/jegrep.1.gz: '-'
  /usr/local/man/man1/jfgrep.1.gz: '-'
  /usr/local/man/man1/jgrep.1.gz: 31890352fbb4cbfe6fd9b02b6994c87108a5ca8a79d5e949f2a3fb76792d3572
  /usr/local/share/doc/ja-grep/README.MB: f236eca86548ebe0eff9bcd59c32d5d0d38e481cde35ce87005fe3149c6d2d0f
  /usr/local/share/doc/ja-grep/README.mlb: b7f033dfe2da5c1510b1965dde38d746039c9bf676bae3e6adfe43b589985222
directories:
  /usr/local/share/doc/ja-grep/: n
scripts:
  post-install: |
    file=/usr/local/info/grep.info
    install-info --quiet /usr/local/info/grep.info ${file%25/*}/dir
  pre-deinstall: |
    if [ -f /usr/local/info/dir ]; then if sed -e '1,/Menu:/d' /usr/local/info/dir | grep -q '^[*] '; then true; else rm /usr/local/info/dir; fi; fi
  post-deinstall: |
    file=/usr/local/info/grep.info
    install-info --quiet --delete /usr/local/info/grep.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
