---
name: flex
version: 2.5.37
origin: textproc/flex
comment: Fast lexical analyzer generator
arch: freebsd:9:x86:64
www: http://flex.sourceforge.net/
maintainer: johans@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 1817630
desc: |
  Flex is a tool for generating scanners. A scanner, sometimes called a
  tokenizer, is a program which recognizes lexical patterns in text. The
  flex program reads user-specified input files, or its standard input
  if no file names are given, for a description of a scanner to generate.
  The description is in the form of pairs of regular expressions and C
  code, called rules. Flex generates a C source file named, "lex.yy.c",
  which defines the function yylex(). The file "lex.yy.c" can be compiled
  and linked to produce an executable. When the executable is run, it
  analyzes its input for occurrences of text matching the regular
  expressions for each rule. Whenever it finds a match, it executes the
  corresponding C code.

  WWW: http://flex.sourceforge.net/
deps:
  gettext: {origin: devel/gettext, version: 0.18.1.1_1}
  libiconv: {origin: converters/libiconv, version: 1.14_1}
categories: [textproc]
files:
  /usr/local/bin/flex: e5ef42e3c807de2d0b414672fea043ad6bc426c99113acd98fc68b4055aad43f
  /usr/local/bin/flex++: '-'
  /usr/local/include/flex/FlexLexer.h: d58d6de75b6c29da05c96f22d22b6cd8a107bd42f19675c6ba2601066ccee313
  /usr/local/info/flex.info: a3d8c7b929048ac125c660a11b5661d51b76caf95affc82e5fe3c2c11490561e
  /usr/local/lib/libfl.a: 7d9752fa1654ee0c2cd0c5bf2ac0687ddeeaa8bb9f8bdf16732bf06afd77d20f
  /usr/local/lib/libfl_pic.a: c8e0007f080720f726c942b542cbb1783fed67327c66d31df6dc039ff6cdd8e7
  /usr/local/man/man1/flex.1.gz: bb4dedcaef7c7021c155530d059d7e8bb9f465de8545f5b81a817b17c444e574
  /usr/local/share/doc/flex/AUTHORS: 06ef76f80c20dee05013c90d51437c393e8f3c57b008a0c0c87c98faea2f548b
  /usr/local/share/doc/flex/COPYING: 97fd685958d93be7f8dab939bb8161dbd6afb0718c63bfc337c24321aea44273
  /usr/local/share/doc/flex/NEWS: 2ce185a1712c78ba15e4a61d36d08579c515ee6b4bd618e4533d34b5fa8f4e99
  /usr/local/share/doc/flex/ONEWS: 408309c4ee604fde8b9ac588857fc7f908f77c015992f63b8b56e8ecad92debe
  /usr/local/share/doc/flex/README: 7d59499eb2fb6ce67e7b6cd06250bc609f02877d7049be8ec842b4547e7c6856
  /usr/local/share/doc/flex/README.cvs: b80a29e33282a90f6a74ac2de4bf2ed7698967d6df4f5e370f60c8820e411218
  /usr/local/share/doc/flex/TODO: becd9fd5f01234c4d29b290c914b04738ae8f061d2f46b1e5ae65133234fd443
  /usr/local/share/doc/flex/flex.pdf: 76441e36b635f66fadf7bc97b591106bbeca76fb934a3d2bf72fa4b3eb315222
  /usr/local/share/locale/ca/LC_MESSAGES/flex.mo: b493c320727bbc827c3f6c155f273f861cfdba60bef31c296c16d35a9b59d9cd
  /usr/local/share/locale/da/LC_MESSAGES/flex.mo: f41a22e33c4b09e3ed55723b9a42fbe0d39be984351134f34f9bbc40c40c6603
  /usr/local/share/locale/de/LC_MESSAGES/flex.mo: 09dfdc797bc4c0d2b09ffd8571d3274cd2cf5080732961f8f6053427ac02fe94
  /usr/local/share/locale/es/LC_MESSAGES/flex.mo: 3b9c55b431e4a4874115fd7b544d2d10bb0539bde113c0abed7c6664504100c1
  /usr/local/share/locale/fi/LC_MESSAGES/flex.mo: f910e78f1546e8a418dcabfb59798e2b957dc4ccad8d9a8ea7cfa6b9d7119b81
  /usr/local/share/locale/fr/LC_MESSAGES/flex.mo: 26a8fcd2e72660dfbd062305420042b3268b57bd75ff2dcc1632a8cbe062f8a0
  /usr/local/share/locale/ga/LC_MESSAGES/flex.mo: a8648292a17243d22abb929afd1d1dd1bc8e4c1451fbc35bb96c05875a683f2e
  /usr/local/share/locale/ko/LC_MESSAGES/flex.mo: 1f1864c57ee235391ebed12082093abedc688fdf3a0f308235e828f4a579ea3d
  /usr/local/share/locale/nl/LC_MESSAGES/flex.mo: bce1ea610044399903cc2338c3af4653c89735f8546870e8c34f87788eb148ef
  /usr/local/share/locale/pl/LC_MESSAGES/flex.mo: bdf54cdb8306f45019870a57ae4a32e2c94e047a71f7d5088289c273eed94aad
  /usr/local/share/locale/pt_BR/LC_MESSAGES/flex.mo: a678ab45cbf21d147e25d02aa85642b2fe19ddf674638918d980fe9561c01938
  /usr/local/share/locale/ro/LC_MESSAGES/flex.mo: ae48e065e78563b948e6f8adb3e6f0b88e482ff7772c82cd1f83881a3a088648
  /usr/local/share/locale/ru/LC_MESSAGES/flex.mo: 9870b5e6f07ef213d97e372cd2bca9f2d6c47ce6aea24e19704e91fcc2cc5dd5
  /usr/local/share/locale/sv/LC_MESSAGES/flex.mo: 67e0899daa7a11604834b051112e7bd5f6e45a6da12c879995531c92783e3919
  /usr/local/share/locale/tr/LC_MESSAGES/flex.mo: 2409a5247ec7246100aa10a7b6151db7ae711d4afc4e3766df8c49c424039354
  /usr/local/share/locale/vi/LC_MESSAGES/flex.mo: c99df837d55bddd71916f552a9272cab8f11a46f79938153722b7e6c380d64c8
  /usr/local/share/locale/zh_CN/LC_MESSAGES/flex.mo: 9c955cb74d6e6e12d99132eb69ab96741e43f834d2d6b36cb3706cd3673dd2e9
directories:
  /usr/local/share/doc/flex/: n
  /usr/local/include/flex/: n
scripts:
  post-install: |
    file=/usr/local/info/flex.info
    install-info --quiet /usr/local/info/flex.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/flex.info
    install-info --quiet --delete /usr/local/info/flex.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
