---
name: units
version: 2.01
origin: math/units
comment: Unit conversion and calculation
arch: freebsd:9:x86:64
www: http://www.gnu.org/software/units/
maintainer: jharris@widomaker.com
prefix: /usr/local
licenselogic: single
licenses: [GPLv3]
flatsize: 500570
desc: "The Free Software Foundation's \"units\" unit conversion and calculation utility.\n\nGNU
  units converts quantities expressed in various scales to their equivalents\nin other
  scales. Units can only handle multiplicative scale changes. For\nexample, it cannot
  convert Celsius to Fahrenheit but it can convert\ntemperature differences between
  those temperature scales. \n\nThe units are defined externally in an extensive,
  well annotated data file\nthat defines over 2000 units. You can also provide your
  own data file. \n\nWWW: http://www.gnu.org/software/units/\n\nNote that this port
  will install the utility with a 'g' prefix,\ne.g. gunits, but the texinfo documentation
  will refer to it without\nthe 'g' prefix.\n"
categories: [math]
files:
  /usr/local/bin/gunits: 129bccd976ed410e1c19a00e75aa685fef722c0d7a6f18911fb5c7e5d961be4b
  /usr/local/bin/gunits_cur: d9b73653f64502c1bd18db821ae15c26202de74be0c73ff7778d59a08263169c
  /usr/local/info/units.info: 2b5c957b10b0b2bccea08763c2037ce028f494e908ea78a9bb29ed8592ee6443
  /usr/local/man/man1/gunits.1.gz: b1c549323a09ad5e3655b30bc5ca7eb56348f6edaf1300e4a03a52bb2b60686b
  /usr/local/share/licenses/units-2.01/GPLv3: 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903
  /usr/local/share/licenses/units-2.01/LICENSE: feb018c22cc4001bbeccc04db5569c5aeaec18f1ebbee51a52d56c251418e243
  /usr/local/share/licenses/units-2.01/catalog.mk: 7c63bed2bc76fac635e227c03f730f197151ffa4c608f3f885e8489c063b67e2
  /usr/local/share/units/currency.units: 4779620c5188ce2e5d07a84040cdf6d195b4d2b0e75f40c782aa3b3510172ded
  /usr/local/share/units/definitions.units: e6b43ea1ca9b0937e6ccc4b4d43ac2e8136bbf8553fe51f707ca02f0ebb4a3a6
  /usr/local/share/units/locale.map: 6a0d26d19cca84250e487dc5db720b03fca73811d859412a64579fb03e797a7c
directories:
  /usr/local/share/units/: n
  /usr/local/share/licenses/units-2.01/: n
  /usr/local/share/licenses/: y
scripts:
  post-install: |
    cd /usr/local
    file=/usr/local/info/units.info
    install-info --quiet /usr/local/info/units.info ${file%25/*}/dir
  pre-deinstall: |
    cd /usr/local
    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: |
    cd /usr/local
    file=/usr/local/info/units.info
    install-info --quiet --delete /usr/local/info/units.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
