Sat Aug 8 21:55:54 2020 UTC ()
math/udunits: update to udunits2 v2.2.26.
The UDUNITS-2 package differs from the previous UDUNITS package in the
following ways:
Support for non-ASCII characters. The original UDUNITS package only
supports the ASCII character set. The UDUNITS-2 package supports
the following character sets: ASCII, ISO 8859-1 (Latin 1), and the
UTF-8 encoding of ISO 10646 (Unicode). This means that unit string
specifications like "µ°F·Ω⁻¹" are now supported (your viewer
must support UTF-8 to display this string correctly).
Support for logarithmic units. The unit string specification
"0.1 lg(re 1 mW)" specifies a deciBel unit with a one milliwatt
reference level. Meteorologists should note that the unit "dBZ"
(i.e., "0.1 lg(re um^3)") is now supported.
Persistent value converters. It is now possible to obtain a converter
data-object, which can be used to convert numeric values in one
unit to numeric values in another, compatible unit. The values can
be float, double, or one-dimensional arrays of floats or doubles.
Improved API. Due to the above changes, it was not possible to keep
the application programming interface of the original UDUNITS
package. Beginning with version 2.1.0, however, the package
contains a thin UDUNITS API to the UDUNITS-2 library, so code
written to the original API can simply be recompiled and relinked
against the new package. Because the original UDUNITS API uses the
"utUnit" data-structure and the UDUNITS-2 API uses pointers to
"ut_unit" data-structures, a small memory-leak is possible in code
that creates many units. This leak can be avoided by calling the
new method utFree(utUnit*) when the unit is no longer needed.
XML unit database. The unit database is encoded using human-readable
XML rather than a custom format. The XML parser included in the
package supports an <import> element to allow easy and convenient
customization.
One thing that has not changed is that all unit string specifications
understood by the original UDUNITS package are also understood by the
new UDUNITS-2 package.
(brook)
diff -r0 -r1.1 pkgsrc/licenses/ucar-license
diff -r1.1 -r1.2 pkgsrc/math/udunits/DESCR
diff -r1.40 -r1.41 pkgsrc/math/udunits/Makefile
diff -r1.5 -r1.6 pkgsrc/math/udunits/PLIST
diff -r1.6 -r1.7 pkgsrc/math/udunits/buildlink3.mk
diff -r1.15 -r1.16 pkgsrc/math/udunits/distinfo
diff -r1.5 -r0 pkgsrc/math/udunits/patches/patch-aa
diff -r1.1 -r0 pkgsrc/math/udunits/patches/patch-ab
diff -r1.1 -r0 pkgsrc/math/udunits/patches/patch-ad
diff -r1.4 -r0 pkgsrc/math/udunits/patches/patch-ac
Copyright 2014 University Corporation for Atmospheric Research and contributors.
All rights reserved.
This software was developed by the Unidata Program Center of the
University Corporation for Atmospheric Research (UCAR)
<http://www.unidata.ucar.edu>.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1) Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2) Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3) Neither the names of the development group, the copyright holders, nor the
names of contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
4) This license shall terminate automatically and you may no longer exercise
any of the rights granted to you by this license as of the date you
commence an action, including a cross-claim or counterclaim, against
the copyright holders or any contributor alleging that this software
infringes a patent. This termination provision shall not apply for an
action alleging patent infringement by combinations of this software with
other software or hardware.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
--- pkgsrc/math/udunits/DESCR 2001/11/01 00:34:25 1.1
+++ pkgsrc/math/udunits/DESCR 2020/08/08 21:55:54 1.2
| @@ -1,8 +1,13 @@ | | | @@ -1,8 +1,13 @@ |
1 | The Unidata units library, udunits, supports conversion of unit | | 1 | A C library for units of physical quantities and a unit-definition and |
2 | specifications between formatted and binary forms, arithmetic | | 2 | value-conversion utility. |
3 | manipulation of unit specifications, and conversion of values between | | | |
4 | compatible scales of measurement. | | | |
5 | | | 3 | |
6 | The udunits package consists of the library, a unit conversion | | 4 | This package provides support for units of physical quantities. Its main |
7 | program, and a Perl module which provides an interface to the udunits | | 5 | components are: |
8 | library. | | 6 | 1) A C library, "libudunits2", for: |
| | | 7 | a) Obtaining a binary representation of a unit; |
| | | 8 | b) Manipulating units arithmetically; and |
| | | 9 | c) Obtaining a converter of numeric values between compatible units; |
| | | 10 | 2) A utility, "udunits2", for |
| | | 11 | a) Obtaining the definition of a unit; and |
| | | 12 | b) Converting a numeric value between compatible units; and |
| | | 13 | 3) An extensive database of units. |
--- pkgsrc/math/udunits/Makefile 2019/08/11 13:21:52 1.40
+++ pkgsrc/math/udunits/Makefile 2020/08/08 21:55:54 1.41
| @@ -1,37 +1,18 @@ | | | @@ -1,37 +1,18 @@ |
1 | # $NetBSD: Makefile,v 1.40 2019/08/11 13:21:52 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.41 2020/08/08 21:55:54 brook Exp $ |
2 | | | 2 | |
3 | DISTNAME= udunits-1.12.1 | | 3 | DISTNAME= udunits-2.2.26 |
4 | PKGREVISION= 12 | | | |
5 | CATEGORIES= math devel | | 4 | CATEGORIES= math devel |
6 | MASTER_SITES= ftp://ftp.unidata.ucar.edu/pub/udunits/ | | 5 | MASTER_SITES= ftp://ftp.unidata.ucar.edu/pub/udunits/ |
7 | EXTRACT_SUFX= .tar.Z | | | |
8 | | | 6 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 7 | MAINTAINER= bacon@NetBSD.org |
10 | HOMEPAGE= https://www.unidata.ucar.edu/software/udunits/ | | 8 | HOMEPAGE= https://www.unidata.ucar.edu/software/udunits/ |
11 | COMMENT= Library and program for manipulating units of physical quantities | | 9 | COMMENT= Library and program for manipulating units of physical quantities |
| | | 10 | LICENSE= ucar-license |
12 | | | 11 | |
13 | MAKE_JOBS_SAFE= no | | 12 | USE_LIBTOOL= yes |
14 | | | | |
15 | USE_TOOLS+= perl soelim | | | |
16 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}/src | | | |
17 | | | | |
18 | GNU_CONFIGURE= yes | | 13 | GNU_CONFIGURE= yes |
19 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | | 14 | INFO_FILES= yes |
20 | | | 15 | USE_LANGUAGES+= c |
21 | CPPFLAGS+= -Df2cFortran -Dunix | | | |
22 | PERL5_CONFIGURE= no | | | |
23 | PERL5_PACKLIST= auto/UDUNITS/.packlist | | | |
24 | | | | |
25 | EGDIR= ${PREFIX}/share/examples/udunits | | | |
26 | CONF_FILES= ${EGDIR}/udunits.dat ${PKG_SYSCONFDIR}/udunits.dat | | | |
27 | | | | |
28 | INSTALL_MAKE_FLAGS+= MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR} \ | | | |
29 | BINDIR=${DESTDIR}${PREFIX}/bin \ | | | |
30 | INCDIR=${DESTDIR}${PREFIX}/include \ | | | |
31 | LIBDIR=${DESTDIR}${PREFIX}/lib | | | |
32 | | | | |
33 | post-install: | | | |
34 | ${RM} -rf ${WRKSRC}/perl/blib/lib | | | |
35 | | | 16 | |
36 | .include "../../lang/perl5/module.mk" | | 17 | .include "../../textproc/expat/buildlink3.mk" |
37 | .include "../../mk/bsd.pkg.mk" | | 18 | .include "../../mk/bsd.pkg.mk" |
--- pkgsrc/math/udunits/PLIST 2009/06/14 18:05:50 1.5
+++ pkgsrc/math/udunits/PLIST 2020/08/08 21:55:54 1.6
| @@ -1,12 +1,24 @@ | | | @@ -1,12 +1,24 @@ |
1 | @comment $NetBSD: PLIST,v 1.5 2009/06/14 18:05:50 joerg Exp $ | | 1 | @comment $NetBSD: PLIST,v 1.6 2020/08/08 21:55:54 brook Exp $ |
2 | bin/udunits | | 2 | bin/udunits2 |
| | | 3 | include/converter.h |
3 | include/udunits.h | | 4 | include/udunits.h |
4 | include/udunits.inc | | 5 | include/udunits2.h |
5 | lib/libudport.a | | 6 | info/udunits2.info |
6 | lib/libudunits.a | | 7 | info/udunits2lib.info |
7 | man/man1/udunits.1 | | 8 | info/udunits2prog.info |
8 | man/man1/udunitsperl.1 | | 9 | lib/libudunits2.la |
9 | man/man3/udunits.3 | | 10 | share/doc/udunits/CHANGE_LOG |
10 | man/man3/udunits.3f | | 11 | share/doc/udunits/COPYRIGHT |
11 | man/man3f/udunits.3f | | 12 | share/doc/udunits/README |
12 | share/examples/udunits/udunits.dat | | 13 | share/doc/udunits/udunits2-accepted.xml |
| | | 14 | share/doc/udunits/udunits2-base.xml |
| | | 15 | share/doc/udunits/udunits2-common.xml |
| | | 16 | share/doc/udunits/udunits2-derived.xml |
| | | 17 | share/doc/udunits/udunits2-prefixes.xml |
| | | 18 | share/doc/udunits/udunits2.xml |
| | | 19 | share/udunits/udunits2-accepted.xml |
| | | 20 | share/udunits/udunits2-base.xml |
| | | 21 | share/udunits/udunits2-common.xml |
| | | 22 | share/udunits/udunits2-derived.xml |
| | | 23 | share/udunits/udunits2-prefixes.xml |
| | | 24 | share/udunits/udunits2.xml |
--- pkgsrc/math/udunits/buildlink3.mk 2009/03/20 19:24:59 1.6
+++ pkgsrc/math/udunits/buildlink3.mk 2020/08/08 21:55:54 1.7
| @@ -1,14 +1,12 @@ | | | @@ -1,14 +1,12 @@ |
1 | # $NetBSD: buildlink3.mk,v 1.6 2009/03/20 19:24:59 joerg Exp $ | | 1 | # $NetBSD: buildlink3.mk,v 1.7 2020/08/08 21:55:54 brook Exp $ |
2 | | | 2 | |
3 | BUILDLINK_TREE+= udunits | | 3 | BUILDLINK_TREE+= udunits |
4 | | | 4 | |
5 | .if !defined(UDUNITS_BUILDLINK3_MK) | | 5 | .if !defined(UDUNITS_BUILDLINK3_MK) |
6 | UDUNITS_BUILDLINK3_MK:= | | 6 | UDUNITS_BUILDLINK3_MK:= |
7 | | | 7 | |
8 | BUILDLINK_API_DEPENDS.udunits+= udunits>=1.11.7 | | 8 | BUILDLINK_API_DEPENDS.udunits+= udunits>=2.2.26 |
9 | BUILDLINK_PKGSRCDIR.udunits?= ../../math/udunits | | 9 | BUILDLINK_PKGSRCDIR.udunits?= ../../math/udunits |
10 | BUILDLINK_DEPMETHOD.udunits?= build | | 10 | .endif # UDUNITS_BUILDLINK3_MK |
11 | BUILDLINK_FILES.udunits= include/udunits.inc | | | |
12 | .endif # UDUNITS_BUILDLINK3_MK | | | |
13 | | | 11 | |
14 | BUILDLINK_TREE+= -udunits | | 12 | BUILDLINK_TREE+= -udunits |
--- pkgsrc/math/udunits/distinfo 2015/11/03 23:33:45 1.15
+++ pkgsrc/math/udunits/distinfo 2020/08/08 21:55:54 1.16
| @@ -1,10 +1,6 @@ | | | @@ -1,10 +1,6 @@ |
1 | $NetBSD: distinfo,v 1.15 2015/11/03 23:33:45 agc Exp $ | | 1 | $NetBSD: distinfo,v 1.16 2020/08/08 21:55:54 brook Exp $ |
2 | | | 2 | |
3 | SHA1 (udunits-1.12.1.tar.Z) = ee37ca61eb1dcf34165b7573cc1645824bd6968d | | 3 | SHA1 (udunits-2.2.26.tar.gz) = 714332946db3d71faca228436eb9f024b0f269f4 |
4 | RMD160 (udunits-1.12.1.tar.Z) = fb2f0442673ca47d302782c84ce37b8da1e16535 | | 4 | RMD160 (udunits-2.2.26.tar.gz) = 275c5f5f2a4df94eb357659b6d9160de74bfc8f7 |
5 | SHA512 (udunits-1.12.1.tar.Z) = 816e0f43f785029c4e7829712807c62401650801942cdbd4e60ccb5076784c7be8fa37b75ca02877f4f86e2d0e0849ced8a77f2347e7bb6ad57e16346f2e5c09 | | 5 | SHA512 (udunits-2.2.26.tar.gz) = 9e5320454646458ac40ba0855b6b8e12f7edbdb4b9a6c687a4c38ad07400e2e0c0f7968069885f83eb73da64886e1c6dd1e462ebc23205df849c3a460cedb640 |
6 | Size (udunits-1.12.1.tar.Z) = 365873 bytes | | 6 | Size (udunits-2.2.26.tar.gz) = 1227596 bytes |
7 | SHA1 (patch-aa) = 6d98bef47df79538f3ef1fe99c405f854f2e2bda | | | |
8 | SHA1 (patch-ab) = 9a98e048499d38f8dedba6fb1a169e178dbd77ba | | | |
9 | SHA1 (patch-ac) = 370c742a13fc8642b2a1c5260ac84a1d1345c047 | | | |
10 | SHA1 (patch-ad) = d48978bd66d9ef691cd9c70b057a7e5d8a802fb6 | | | |