Skip to content

Commit

Permalink
dateutils: updated to 0.4.10
Browse files Browse the repository at this point in the history
v0.4.10
do not resort to daisy sequences when incomplete dates are present
upon end-of-buffer finalise the last line
let --empty-mode|-E and --sed-mode|-S play nicely together
adapt CLI behaviour of strptime(1) to the other tools

v0.4.9
allow to specify epochs in nanoseconds, %s%N
fix nanosecond arithmetic
make cross-compilations easier
mention default timezone

v0.4.8
be symmetric about differences, A - B := -(B - A) for A < B
fix security issue when reading TZMAP_DIR from environment
fix printing of negative 0 (-0)
fix issue with tzdata transitions in files with leap second
adjustments that are now cut off at expiration time

v0.4.7
strptime mimics return code behaviour of dateconv
use unsigned arithmetic for leap second conversion
fix up ymds before adding days or business days
drain prchunk if filled with many small lines
  • Loading branch information
adam committed Jun 26, 2023
1 parent 89b3e7b commit 987362c
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13,995 deletions.
53 changes: 11 additions & 42 deletions time/dateutils/Makefile
Original file line number Diff line number Diff line change
@@ -1,57 +1,26 @@
# $NetBSD: Makefile,v 1.13 2020/01/26 17:32:19 rillig Exp $
# $NetBSD: Makefile,v 1.14 2023/06/26 15:29:56 adam Exp $

DISTNAME= dateutils-0.4.3
PKGREVISION= 1
DISTNAME= dateutils-0.4.10
CATEGORIES= time
#MASTER_SITES= ${MASTER_SITE_GITHUB:=hroptatyr/}
MASTER_SITES+= https://bitbucket.org/hroptatyr/dateutils/downloads/
MASTER_SITES= ${MASTER_SITE_GITHUB:=hroptatyr/}
GITHUB_RELEASE= v${PKGVERSION_NOREV}
EXTRACT_SUFX= .tar.xz

MAINTAINER= [email protected]
HOMEPAGE= https://www.fresse.org/dateutils/
COMMENT= Command line tools for working with dates
LICENSE= modified-bsd

WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config automake autoconf gmake makeinfo bison flex
USE_LIBTOOL= yes
MAKE_JOBS_SAFE= no

INFO_FILES= yes
TEST_TARGET= check
INCLUDEDIR= include/${PKGBASE}
AUTO_MKDIRS= YES
USE_TOOLS+= autoconf bison flex gmake makeinfo pkg-config
GNU_CONFIGURE= yes
INFO_FILES= yes
TEST_TARGET= check

# For patch-m4_sxe-compiler.m4
pre-configure:
(cd ${WRKSRC}; autoreconf -i)

post-install:
(cd ${WRKSRC}/lib; \
env DESTDIR=${DESTDIR} ${GMAKE} install-libLIBRARIES)
# To have the similar PLIST of previous version, installing headers.
.for i in \
boops.h \
date-core-strpf.h \
date-core.h \
dt-core-strpf.h \
dt-core-tz-glue.h \
dt-core.h \
generics.h \
gmtime.h \
leaps.h \
leapseconds.def \
leapseconds.h \
nifty.h \
strops.h \
time-core-strpf.h \
time-core.h \
token.h \
tzmap.h \
tzraw.h \
version.h
(cd ${WRKSRC}/lib; ${INSTALL_DATA} ${i} ${DESTDIR}${PREFIX}/${INCLUDEDIR})
.endfor
cd ${WRKSRC} && autoreconf -i

.include "../../devel/gperf/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
22 changes: 1 addition & 21 deletions time/dateutils/PLIST
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.4 2016/09/19 05:33:15 mef Exp $
@comment $NetBSD: PLIST,v 1.5 2023/06/26 15:29:56 adam Exp $
bin/dadd
bin/dateadd
bin/dateconv
Expand All @@ -18,27 +18,7 @@ bin/dsort
bin/dtest
bin/dzone
bin/strptime
include/dateutils/boops.h
include/dateutils/date-core-strpf.h
include/dateutils/date-core.h
include/dateutils/dt-core-strpf.h
include/dateutils/dt-core-tz-glue.h
include/dateutils/dt-core.h
include/dateutils/generics.h
include/dateutils/gmtime.h
include/dateutils/leaps.h
include/dateutils/leapseconds.def
include/dateutils/leapseconds.h
include/dateutils/nifty.h
include/dateutils/strops.h
include/dateutils/time-core-strpf.h
include/dateutils/time-core.h
include/dateutils/token.h
include/dateutils/tzmap.h
include/dateutils/tzraw.h
include/dateutils/version.h
info/dateutils.info
lib/libdut.a
man/man1/dadd.1
man/man1/dateadd.1
man/man1/dateconv.1
Expand Down
12 changes: 4 additions & 8 deletions time/dateutils/distinfo
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
$NetBSD: distinfo,v 1.13 2021/10/26 11:24:18 nia Exp $
$NetBSD: distinfo,v 1.14 2023/06/26 15:29:56 adam Exp $

BLAKE2s (dateutils-0.4.3.tar.xz) = 4c6c464578ffef70497dcd90073fa197c1f1a14ac889fe7c5d4963528cc09340
SHA512 (dateutils-0.4.3.tar.xz) = 0210ad1f47aec77b8b87a520da9155430b52068e53733ef7bb26dfa10e8651f2190171537d4317adf888733e9377f961d5ed070efacd8ca18139225fa8c185ca
Size (dateutils-0.4.3.tar.xz) = 631216 bytes
SHA1 (patch-Makefile.am) = 936ad7f986ff5cb8bec5f85c96a17657fca2774f
SHA1 (patch-Makefile.in) = ff5aaffb2046f17189b9074090c68295df5fb57a
SHA1 (patch-build-aux_yuck.c) = cd0be0ed0d0165f253165bff3609d8bcfaf1e67c
SHA1 (patch-configure) = 09afa4f5237d8bc20a0585e97d616f0830f80d7c
BLAKE2s (dateutils-0.4.10.tar.xz) = 88da7c184dda111f19e6102d80ef353df0a638f26b9971deb19f4fa17b9dd192
SHA512 (dateutils-0.4.10.tar.xz) = 04a9fff177596bb9bc47d3b221865bbeafeafbc708385610845a1cdcb2a7fa379e8d9363cce578836ae121dab7ee64e19f61d82e8f222250e52d23c5f43cf521
Size (dateutils-0.4.10.tar.xz) = 652548 bytes
SHA1 (patch-m4_sxe-compiler.m4) = 43900ecee585b60b5283c82da89ad141f6f3cd91
16 changes: 0 additions & 16 deletions time/dateutils/patches/patch-Makefile.am

This file was deleted.

16 changes: 0 additions & 16 deletions time/dateutils/patches/patch-Makefile.in

This file was deleted.

15 changes: 0 additions & 15 deletions time/dateutils/patches/patch-build-aux_yuck.c

This file was deleted.

Loading

0 comments on commit 987362c

Please sign in to comment.