pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/time/dateutils Updated time/dateutils to 0.4.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b2333f25fb26
branches:  trunk
changeset: 352794:b2333f25fb26
user:      mef <mef%pkgsrc.org@localhost>
date:      Mon Sep 19 05:33:15 2016 +0000

description:
Updated time/dateutils to 0.4.0
-------------------------------
v0.4.0
Summary: v0.4.0 of dateutils
This is a bugfix release.

Bugfixes:
  - document %g/%G format specifiers
  - bug/42, accept NUL characters in input
  - bug/45, correctly display Gregorian and ISO week dates in one line
  - bug/46, adhere to ISO group's official formatting of week dates
  - bug/47, allow rounding of Epoch based timestamps
  - bug/48, avoid crash for void input to strptime(3)

Features:
  - datetest supports --isvalid to conditionalise on date/time parsing
  - all tools support --from-locale to parse localised input
  - tools with output formatting support --locale to format output according to
    locale

v0.3.5
Summary: v0.3.5 of dateutils
This is a bugfix release.

Bugfixes:
  - bug/40, distinguish between numerals-only dates and durations
  - tests will succeed independent of current date

See info page examples and/or README.

v0.3.4
Summary: v0.3.4 of dateutils
This is a bugfix release.

Bugfixes:
  - bug/39, MacOSX endianness detection
  - bug/38, ddiff day-only durations on date/times
  - dadd +2m bug is fixed, regression dtadd.049.clit/dtadd.050.clit

v0.3.3
Summary: v0.3.3 of dateutils
This is a feature release.

Features:
  - to clarify purpose and avoid name clashes prefix binaries with date- This
    results in: dateadd dateconv datediff dategrep dateround dateseq datesort
    datetest and datezone
  - provide compatibilty through configure switch -with-old-names
  - provide single digit years through %_y
  - allow rounding of ISO-week dates (ywd) to week numbers

Bugfixes:
  - dashes behind a date do not count as tz indicator
  - UTC/TAI/GPS special coordinated zones work on systems without leap second
    support

v0.3.2
Summary: v0.3.2 of dateutils
This is a bugfix release.

Bugfixes:
  - out of range minutes will be discarded
  - bug 30 (malicious input crashes dconv) has been fixed

Features:
  - military midnight stamps are supported (T24:00:00)
  - 8601 ordinal dates (year + doy) are recognised directly (-f yd)
  - strptime(1) can behave in a locale-dependent way

-------------------------------------------------------------------------
(pkgsrc-changes)
 - recover the two patches for 0.3.1

diffstat:

 time/dateutils/Makefile                         |    7 +-
 time/dateutils/PLIST                            |   22 +-
 time/dateutils/distinfo                         |   12 +-
 time/dateutils/patches/patch-configure          |  389 ++++++++++++++++++++++++
 time/dateutils/patches/patch-m4_sxe-compiler.m4 |   15 +
 5 files changed, 435 insertions(+), 10 deletions(-)

diffs (truncated from 491 to 300 lines):

diff -r 7e9d24b88d92 -r b2333f25fb26 time/dateutils/Makefile
--- a/time/dateutils/Makefile   Mon Sep 19 04:59:47 2016 +0000
+++ b/time/dateutils/Makefile   Mon Sep 19 05:33:15 2016 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.7 2016/09/19 04:47:16 mef Exp $
+# $NetBSD: Makefile,v 1.8 2016/09/19 05:33:15 mef Exp $
 
-DISTNAME=      dateutils-0.3.1
-PKGREVISION=   2
+DISTNAME=      dateutils-0.4.0
 CATEGORIES=    time
-MASTER_SITES=  https://github.com/hroptatyr/dateutils/releases/download/v0.3.1/
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=hroptatyr/}
 MASTER_SITES+= https://bitbucket.org/hroptatyr/dateutils/downloads/
 EXTRACT_SUFX=  .tar.xz
 
diff -r 7e9d24b88d92 -r b2333f25fb26 time/dateutils/PLIST
--- a/time/dateutils/PLIST      Mon Sep 19 04:59:47 2016 +0000
+++ b/time/dateutils/PLIST      Mon Sep 19 05:33:15 2016 +0000
@@ -1,5 +1,14 @@
-@comment $NetBSD: PLIST,v 1.3 2014/12/16 01:51:35 mef Exp $
+@comment $NetBSD: PLIST,v 1.4 2016/09/19 05:33:15 mef Exp $
 bin/dadd
+bin/dateadd
+bin/dateconv
+bin/datediff
+bin/dategrep
+bin/dateround
+bin/dateseq
+bin/datesort
+bin/datetest
+bin/datezone
 bin/dconv
 bin/ddiff
 bin/dgrep
@@ -31,7 +40,16 @@
 info/dateutils.info
 lib/libdut.a
 man/man1/dadd.1
+man/man1/dateadd.1
+man/man1/dateconv.1
+man/man1/datediff.1
+man/man1/dategrep.1
+man/man1/dateround.1
+man/man1/dateseq.1
+man/man1/datesort.1
+man/man1/datetest.1
 man/man1/dateutils.1
+man/man1/datezone.1
 man/man1/dconv.1
 man/man1/ddiff.1
 man/man1/dgrep.1
@@ -43,5 +61,7 @@
 man/man1/strptime.1
 share/dateutils/iata.tzmcc
 share/dateutils/icao.tzmcc
+share/dateutils/locale
 share/dateutils/mic.tzmcc
+share/doc/dateutils/LICENSE
 share/doc/dateutils/README.md
diff -r 7e9d24b88d92 -r b2333f25fb26 time/dateutils/distinfo
--- a/time/dateutils/distinfo   Mon Sep 19 04:59:47 2016 +0000
+++ b/time/dateutils/distinfo   Mon Sep 19 05:33:15 2016 +0000
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.7 2016/09/19 04:47:16 mef Exp $
+$NetBSD: distinfo,v 1.8 2016/09/19 05:33:15 mef Exp $
 
-SHA1 (dateutils-0.3.1.tar.xz) = 07884be555998aa649733401e65f073ada89ac08
-RMD160 (dateutils-0.3.1.tar.xz) = a45ed9fb1c5d5107883fb3cfdf3f43d238e0497c
-SHA512 (dateutils-0.3.1.tar.xz) = cbf691b0ef8c815159d262796bb5e7292547794610efb99772a51c8bd20e8f23e36be28c6c8a0ffa04445bf7b13bc8fe58bc44a1ba356e1b224b631d561422d9
-Size (dateutils-0.3.1.tar.xz) = 586848 bytes
+SHA1 (dateutils-0.4.0.tar.xz) = 7f3ec03b68464f37ea2eb661b569b3352ed66740
+RMD160 (dateutils-0.4.0.tar.xz) = b1efb3742d47ae4d3f2cddb0df88480a40e0d82b
+SHA512 (dateutils-0.4.0.tar.xz) = 06aeed8cc2e8bd22584d74fccd6a9739fbed191a01d5dfb5bab48d5b059dce01d48f8b5f4b6e927e26c1ac2143d7aeed1f20f0415d1275d172f2584ef9d776a9
+Size (dateutils-0.4.0.tar.xz) = 608364 bytes
 SHA1 (patch-Makefile.am) = 936ad7f986ff5cb8bec5f85c96a17657fca2774f
 SHA1 (patch-Makefile.in) = ff5aaffb2046f17189b9074090c68295df5fb57a
+SHA1 (patch-configure) = abb72e6c1ff9e9aca1bd20ee57b779667c8ecc29
+SHA1 (patch-m4_sxe-compiler.m4) = 8df17f891ba18ff54555e302388f0fe184fa33bc
diff -r 7e9d24b88d92 -r b2333f25fb26 time/dateutils/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/dateutils/patches/patch-configure    Mon Sep 19 05:33:15 2016 +0000
@@ -0,0 +1,389 @@
+$NetBSD: patch-configure,v 1.3 2016/09/19 05:33:15 mef Exp $
+
+Don't create broken or non-portable binaries. This code isn't even
+performance critical.
+
+--- configure~ 2016-05-20 17:26:30.000000000 +0900
++++ configure  2016-09-19 14:20:56.000000000 +0900
+@@ -7735,381 +7735,6 @@ $as_echo_n "checking for preferred warni
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${warnflags}" >&5
+ $as_echo "${warnflags}" >&6; }
+ 
+-
+-
+-
+-      case " ${CFLAGS} ${EXTRA_CFLAGS} " in
+-      (*" -O"[0-9]" "*)
+-              ;;
+-      (*" -Os "*)
+-              ;;
+-      (*" -Og "*)
+-              ;;
+-      (*" -Ofast "*)
+-              ;;
+-      (*" -O "*)
+-              ;;
+-      (*)
+-                      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -O3" >&5
+-$as_echo_n "checking whether C compiler accepts -O3... " >&6; }
+-
+-      ## store werror status, then turn -Werror on
+-      save_ac_c_werror_flag="${ac_c_werror_flag}"
+-
+-ac_c_werror_flag=yes
+-
+-      if ${sxe_cv_c_flag__O3+:} false; then :
+-  $as_echo_n "(cached) " >&6
+-else
+-              sxe_save_FLAGS="${CFLAGS}"
+-              CFLAGS="-O3"
+-              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h.  */
+-
+-int
+-main ()
+-{
+-
+-  ;
+-  return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_compile "$LINENO"; then :
+-  eval sxe_cv_c_flag__O3="yes"
+-else
+-  eval sxe_cv_c_flag__O3="no"
+-fi
+-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+-              CFLAGS="${sxe_save_FLAGS}"
+-
+-fi
+-
+-      eval sxe_check_flag=$sxe_cv_c_flag__O3
+-      ac_c_werror_flag="${save_ac_c_werror_flag}"
+-
+-      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5
+-$as_echo "${sxe_check_flag}" >&6; }
+-      if test "${sxe_check_flag}" = "yes"; then
+-              :
+-
+-                      optiflags="${optiflags} -O3"
+-      else
+-              :
+-
+-      fi
+-
+-              ;;
+-      esac
+-
+-              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ipo" >&5
+-$as_echo_n "checking whether C compiler accepts -ipo... " >&6; }
+-
+-      ## store werror status, then turn -Werror on
+-      save_ac_c_werror_flag="${ac_c_werror_flag}"
+-
+-ac_c_werror_flag=yes
+-
+-      if ${sxe_cv_c_flag__ipo+:} false; then :
+-  $as_echo_n "(cached) " >&6
+-else
+-              sxe_save_FLAGS="${CFLAGS}"
+-              CFLAGS="-ipo"
+-              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h.  */
+-
+-int
+-main ()
+-{
+-
+-  ;
+-  return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_compile "$LINENO"; then :
+-  eval sxe_cv_c_flag__ipo="yes"
+-else
+-  eval sxe_cv_c_flag__ipo="no"
+-fi
+-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+-              CFLAGS="${sxe_save_FLAGS}"
+-
+-fi
+-
+-      eval sxe_check_flag=$sxe_cv_c_flag__ipo
+-      ac_c_werror_flag="${save_ac_c_werror_flag}"
+-
+-      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5
+-$as_echo "${sxe_check_flag}" >&6; }
+-      if test "${sxe_check_flag}" = "yes"; then
+-              :
+-
+-              optiflags="${optiflags} -ipo"
+-
+-              if test -n "$ac_tool_prefix"; then
+-  for ac_prog in xiar ar
+-  do
+-    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+-$as_echo_n "checking for $ac_word... " >&6; }
+-if ${ac_cv_prog_AR+:} false; then :
+-  $as_echo_n "(cached) " >&6
+-else
+-  if test -n "$AR"; then
+-  ac_cv_prog_AR="$AR" # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+-  IFS=$as_save_IFS
+-  test -z "$as_dir" && as_dir=.
+-    for ac_exec_ext in '' $ac_executable_extensions; do
+-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+-    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
+-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+-    break 2
+-  fi
+-done
+-  done
+-IFS=$as_save_IFS
+-
+-fi
+-fi
+-AR=$ac_cv_prog_AR
+-if test -n "$AR"; then
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
+-$as_echo "$AR" >&6; }
+-else
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-$as_echo "no" >&6; }
+-fi
+-
+-
+-    test -n "$AR" && break
+-  done
+-fi
+-if test -z "$AR"; then
+-  ac_ct_AR=$AR
+-  for ac_prog in xiar ar
+-do
+-  # Extract the first word of "$ac_prog", so it can be a program name with args.
+-set dummy $ac_prog; ac_word=$2
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+-$as_echo_n "checking for $ac_word... " >&6; }
+-if ${ac_cv_prog_ac_ct_AR+:} false; then :
+-  $as_echo_n "(cached) " >&6
+-else
+-  if test -n "$ac_ct_AR"; then
+-  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+-  IFS=$as_save_IFS
+-  test -z "$as_dir" && as_dir=.
+-    for ac_exec_ext in '' $ac_executable_extensions; do
+-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+-    ac_cv_prog_ac_ct_AR="$ac_prog"
+-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+-    break 2
+-  fi
+-done
+-  done
+-IFS=$as_save_IFS
+-
+-fi
+-fi
+-ac_ct_AR=$ac_cv_prog_ac_ct_AR
+-if test -n "$ac_ct_AR"; then
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
+-$as_echo "$ac_ct_AR" >&6; }
+-else
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-$as_echo "no" >&6; }
+-fi
+-
+-
+-  test -n "$ac_ct_AR" && break
+-done
+-
+-  if test "x$ac_ct_AR" = x; then
+-    AR="false"
+-  else
+-    case $cross_compiling:$ac_tool_warned in
+-yes:)
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+-ac_tool_warned=yes ;;
+-esac



Home | Main Index | Thread Index | Old Index