head 1.3; access; symbols pkgsrc-2023Q4:1.3.0.92 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.90 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.88 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.86 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.84 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.82 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.80 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.78 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.3.0.76 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.3.0.74 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.3.0.72 pkgsrc-2021Q2-base:1.3 pkgsrc-2021Q1:1.3.0.70 pkgsrc-2021Q1-base:1.3 pkgsrc-2020Q4:1.3.0.68 pkgsrc-2020Q4-base:1.3 pkgsrc-2020Q3:1.3.0.66 pkgsrc-2020Q3-base:1.3 pkgsrc-2020Q2:1.3.0.62 pkgsrc-2020Q2-base:1.3 pkgsrc-2020Q1:1.3.0.42 pkgsrc-2020Q1-base:1.3 pkgsrc-2019Q4:1.3.0.64 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.3.0.60 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.58 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.56 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.54 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.52 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.3.0.50 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.3.0.48 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.3.0.46 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.3.0.44 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.3.0.40 pkgsrc-2017Q2-base:1.3 pkgsrc-2017Q1:1.3.0.38 pkgsrc-2017Q1-base:1.3 pkgsrc-2016Q4:1.3.0.36 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.3.0.34 pkgsrc-2016Q3-base:1.3 pkgsrc-2016Q2:1.3.0.32 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.3.0.30 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.28 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.26 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.24 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.22 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.20 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.18 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.16 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.14 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.12 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.10 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.8 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.6 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.4 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.2 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.2.0.2 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.1.1.1.0.48 pkgsrc-2012Q1-base:1.1.1.1 pkgsrc-2011Q4:1.1.1.1.0.46 pkgsrc-2011Q4-base:1.1.1.1 pkgsrc-2011Q3:1.1.1.1.0.44 pkgsrc-2011Q3-base:1.1.1.1 pkgsrc-2011Q2:1.1.1.1.0.42 pkgsrc-2011Q2-base:1.1.1.1 pkgsrc-2011Q1:1.1.1.1.0.40 pkgsrc-2011Q1-base:1.1.1.1 pkgsrc-2010Q4:1.1.1.1.0.38 pkgsrc-2010Q4-base:1.1.1.1 pkgsrc-2010Q3:1.1.1.1.0.36 pkgsrc-2010Q3-base:1.1.1.1 pkgsrc-2010Q2:1.1.1.1.0.34 pkgsrc-2010Q2-base:1.1.1.1 pkgsrc-2010Q1:1.1.1.1.0.32 pkgsrc-2010Q1-base:1.1.1.1 pkgsrc-2009Q4:1.1.1.1.0.30 pkgsrc-2009Q4-base:1.1.1.1 pkgsrc-2009Q3:1.1.1.1.0.28 pkgsrc-2009Q3-base:1.1.1.1 pkgsrc-2009Q2:1.1.1.1.0.26 pkgsrc-2009Q2-base:1.1.1.1 pkgsrc-2009Q1:1.1.1.1.0.24 pkgsrc-2009Q1-base:1.1.1.1 pkgsrc-2008Q4:1.1.1.1.0.22 pkgsrc-2008Q4-base:1.1.1.1 pkgsrc-2008Q3:1.1.1.1.0.20 pkgsrc-2008Q3-base:1.1.1.1 cube-native-xorg:1.1.1.1.0.18 cube-native-xorg-base:1.1.1.1 pkgsrc-2008Q2:1.1.1.1.0.16 pkgsrc-2008Q2-base:1.1.1.1 cwrapper:1.1.1.1.0.14 pkgsrc-2008Q1:1.1.1.1.0.12 pkgsrc-2008Q1-base:1.1.1.1 pkgsrc-2007Q4:1.1.1.1.0.10 pkgsrc-2007Q4-base:1.1.1.1 pkgsrc-2007Q3:1.1.1.1.0.8 pkgsrc-2007Q3-base:1.1.1.1 pkgsrc-2007Q2:1.1.1.1.0.6 pkgsrc-2007Q2-base:1.1.1.1 pkgsrc-2007Q1:1.1.1.1.0.4 pkgsrc-2007Q1-base:1.1.1.1 pkgsrc-2006Q4:1.1.1.1.0.2 pkgsrc-2006Q4-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.3 date 2012.09.13.23.27.05; author asau; state Exp; branches; next 1.2; 1.2 date 2012.05.29.18.33.34; author cheusov; state Exp; branches; next 1.1; 1.1 date 2006.11.19.04.56.17; author obache; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2006.11.19.04.56.17; author obache; state Exp; branches; next ; desc @@ 1.3 log @Update GNU units to version 2.00 User visible changes. Version 2.00 - 6 June 2012 General changes: * Unit lists provide conversion to sums of units (e.g. feet and inches). * Added --round (-r) and --show-factor (-S) options for use with unit lists. * Added unit lists aliases (e.g. time, usvol). * A python script, units_cur, can update currency data. * Units now flushes its output so you can talk to it with a pipe. * Units now works in UTF-8 if the system supports it. * Added --locale (-l) option to set the locale. * English units such as the gallon are defined in all locales, with US definitions by default except in the en_BG locale. You can force the desired definition (Great Britain or US) by setting the environment variable UNITS_ENGLISH to GB or US. * Revised and extended the documentation, with more examples. * Added locale mapping to address Windows locale names. * Updated and revised units database, including UTF-8 definitions and the 2010 CODATA. * Fixed parsing bug for "1..2" or "1.2.3". These now give an error. * Unit names can end with a number in the form of a subscript that starts with a '_', as in 'X_3'. Changes for units definition files: * Changed location and names of unit database, splitting off currency Files are /usr/local/share/units/{definitions,currency}.units and the personal units file is $HOME/.units instead of $HOME/units.dat. (Under windows personal unit file is unitdef.units.) * Personal units filename can be changed with MYUNITSFILE environment variable. * Prefixes can be defined in any order: it is no longer necessary to define longer ones before shorter ones. * New definitions replace previous ones. Personal units file is read after the system file rather than before. * Changed syntax for function definitions. Instead of [in-unit,out-unit] you must now write units=[in-unit,out-unit]. Use 'units -c' to find places in your personal data files that need to be updated. * Add optional domain and range to function definitions with syntax domain=[min,max] and range=[min,max]. Either min or max can be omitted to signal infinity. * Unit list aliases can be defined with !unitlist command. * Added !var and !varnot and !endvar to include definitions based on environment variable settings. * Added !set to set environment variables (if they aren't already set). * Added !message to display a message * Data files are in UTF-8, with !utf8 and !endutf8 commands to mark definitions that require UTF-8 support. * Improved error handling when reading units.dat. Version 1.88 - 15 Feb 2010 * Updated units.dat * Fixed bug involving readline version 4.2 Version 1.87 - 25 Sep 2007 * Units reads ~/.units.dat if it exists before reading the standard units database. * Added support for ** as an exponent operator. * Type 'search text' to list units that contain 'text' in their name. * Precedence of '*' changed to match precedence of '/'. (Multiplication by juxtaposition retains a higher precedence than '/'.) The --oldstar option selects the old precedence and --newstar forces the new precedence. @ text @@@comment $NetBSD$ bin/gunits bin/gunits_cur gnu/bin/units info/units.info man/man1/gunits.1 share/units/currency.units share/units/definitions.units share/units/locale.map @ 1.2 log @ Remove GNU_PROGRAM_PREFIX variable (discussed in pkgsrc-users@@). All utilities are installed with a prefix 'g'. Symlinks with original names are created in ${PREFIX}/gnu/bin. Add LICENSE. ++pkgrevision @ text @d1 1 a1 1 @@comment $NetBSD: PLIST,v 1.1.1.1 2006/11/19 04:56:17 obache Exp $ d3 1 d7 3 a9 1 share/units.dat @ 1.1 log @Initial revision @ text @d1 3 a3 2 @@comment $NetBSD$ bin/${GNU_PROGRAM_PREFIX}units d5 1 a5 1 man/man1/${GNU_PROGRAM_PREFIX}units.1 @ 1.1.1.1 log @Import GNU units 1.86. Based on PR 30397 by Cameron Patrick, I modify to adapt to recent pkgsrc tree and update from 1.85 to 1.86. GNU Units can convert quantities expressed in one unit to an equivalent in a difference scale. Compared to traditional BSD implementations, it offers more units, non-linear conversions (e.g. between degrees Celsius and Fahrenheit), a more lenient input parser, and tab completion. It can also be used to perform calculations taking physical units into account, and provide the definitions of units (e.g. "joule = N m = 1 kg m^2 / s^2"). @ text @@