diff options
author | mef <mef@pkgsrc.org> | 2014-12-15 08:45:47 +0000 |
---|---|---|
committer | mef <mef@pkgsrc.org> | 2014-12-15 08:45:47 +0000 |
commit | 6eabbeeceb06697165483c0da0056dfc06e51828 (patch) | |
tree | 46a9ef6ca15624cb497278d116427a1a5d8566e1 /time | |
parent | e2c23b7e3a9628d30a63650bf9ce3eec02f79a6b (diff) | |
download | pkgsrc-6eabbeeceb06697165483c0da0056dfc06e51828.tar.gz |
(pkgsrc)
- MASTER_SITES moved
- DIST_SUBDIR is now used.
- pre-configure:, post-build: added for Makefile
- Some tweak added (post-build: etc) to get similar PLIST (as of 0.2.6)
(upstream)
Update 0.2.6 to 0.3.1
From: http://www.fresse.org/dateutils/changelog.html
v0.3.1
------------------------
This is a bugfix release.
Bugfixes:
- octave/matlab code is distributed fully
- negative durations with refined units are minus-signed only once
- ddiff is entirely anticommutative now
- tests don¢Âª®t fail if zones don¢Âª®t exist on the build system
- dseq with empty ranges will no longer produce output (just as seq(1))
- arbitrary integers are not interpreted as time anymore
- when converting from zone info properly clear zone difference for %Z
- dseq(1) will automatically resort to +1mo and +1y iterators for wildcarded ymd dates
- dadd(1)¢Âª®ing ywd dates with output as ymd works properly now
Features:
- ddiff can output nanosecond diffs
- automatic fix-up of dates is documented now
- parser errors and fix ups are reported through return code 2
- dseq with no -f|--format stays in the calendric system of
the start value instead of converting all output to ymd
v0.3.0
------------------------
This is a feature release.
Features:
- dgrep supports time zones both for the expression and the input
- timezones can be specified by alternative codes and tzmap files
- new tool dzone to inspect date/times in multiple timezones in bulk
- new tool dsort to sort input chronologically
- gengetopt and help2man maintainer dependencies removed
- lilian/julian inputs via -i ldn and -i jdn
- ymcw dates now follow ISO 8601 in using 07 to denote Sunday
Bugfixes:
- ddiff takes differences between a unix epoch stamp and a date/time
- zone converter assigns correct sign to zone difference when using %Z
- weekdays are properly calculated from epoch stamps (issue 24)
v0.2.7
--------------------------
This is a feature release.
Features:
- dgrep supports -v|--invert-match like grep
- output specifier %G is supported for compatibility with POSIX
- ddiff calculates year-day differences
- ddiff calculates ISO-week date differences
- ddiff output can be zero and space padded through 0 and SPC modifier
- zoneinfo database on AIX >= 6.1 is taken into account
Bug fixes:
- ddiff can calculate full year differences, issue 21 fixed
- dseq now accepts %W, %V output formats, issue 22 fixed
- builds with clang >= 3.3 work again, clang bug 18028
Diffstat (limited to 'time')
-rw-r--r-- | time/dateutils/Makefile | 50 | ||||
-rw-r--r-- | time/dateutils/PLIST | 12 | ||||
-rw-r--r-- | time/dateutils/distinfo | 9 | ||||
-rw-r--r-- | time/dateutils/patches/patch-Makefile.am | 16 |
4 files changed, 75 insertions, 12 deletions
diff --git a/time/dateutils/Makefile b/time/dateutils/Makefile index 5c6187e08b1..d22766bdb96 100644 --- a/time/dateutils/Makefile +++ b/time/dateutils/Makefile @@ -1,20 +1,58 @@ -# $NetBSD: Makefile,v 1.2 2013/10/31 08:32:55 wiz Exp $ +# $NetBSD: Makefile,v 1.3 2014/12/15 08:45:47 mef Exp $ -DISTNAME= dateutils-0.2.6 +DISTNAME= v0.3.1 +PKGNAME= ${DISTNAME:S/^v/dateutils-/} CATEGORIES= time -MASTER_SITES= http://cdn.bitbucket.org/hroptatyr/dateutils/downloads/ -EXTRACT_SUFX= .tar.xz +MASTER_SITES= http://github.com/hroptatyr/dateutils/archive/ +DIST_SUBDIR= dateutils MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://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 +USE_TOOLS+= pkg-config automake autoreconf gmake makeinfo bison flex +USE_LIBTOOL= yes -PKGCONFIG_OVERRIDE+= libdut.pc.in INFO_FILES= yes TEST_TARGET= check +INCLUDEDIR= include/${PKGBASE} +AUTO_MKDIRS= YES +pre-configure: + (cd ${WRKSRC}; autoreconf -i ) + +post-build: + (cd ${WRKSRC}/lib; ${GMAKE}) + +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 + +.include "../../devel/gperf/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/time/dateutils/PLIST b/time/dateutils/PLIST index 9661690f1cf..d4afb5421dc 100644 --- a/time/dateutils/PLIST +++ b/time/dateutils/PLIST @@ -1,11 +1,13 @@ -@comment $NetBSD: PLIST,v 1.1 2013/10/21 15:05:05 wiz Exp $ +@comment $NetBSD: PLIST,v 1.2 2014/12/15 08:45:47 mef Exp $ bin/dadd bin/dconv bin/ddiff bin/dgrep bin/dround bin/dseq +bin/dsort bin/dtest +bin/dzone bin/strptime include/dateutils/boops.h include/dateutils/date-core-strpf.h @@ -14,17 +16,20 @@ 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 -lib/pkgconfig/libdut.pc man/man1/dadd.1 man/man1/dateutils.1 man/man1/dconv.1 @@ -32,6 +37,9 @@ man/man1/ddiff.1 man/man1/dgrep.1 man/man1/dround.1 man/man1/dseq.1 +man/man1/dsort.1 man/man1/dtest.1 +man/man1/dzone.1 man/man1/strptime.1 share/doc/dateutils/README.md +@pkgdir share/dateutils diff --git a/time/dateutils/distinfo b/time/dateutils/distinfo index 0addc2cb243..286cee53bfa 100644 --- a/time/dateutils/distinfo +++ b/time/dateutils/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.2 2013/10/31 08:32:55 wiz Exp $ +$NetBSD: distinfo,v 1.3 2014/12/15 08:45:47 mef Exp $ -SHA1 (dateutils-0.2.6.tar.xz) = 55709a7a259bf73fb9ff7bb62de7a31a894870ed -RMD160 (dateutils-0.2.6.tar.xz) = 3b505637bba64a0cc8fbd63935dd63e397b1e1cc -Size (dateutils-0.2.6.tar.xz) = 485740 bytes +SHA1 (dateutils/v0.3.1.tar.gz) = 166b94597a112aff0c1bd227c4e2d8f8f5b46f25 +RMD160 (dateutils/v0.3.1.tar.gz) = 4f495a63c619d662fd2894862b9555348386cc0c +Size (dateutils/v0.3.1.tar.gz) = 247307 bytes +SHA1 (patch-Makefile.am) = 936ad7f986ff5cb8bec5f85c96a17657fca2774f diff --git a/time/dateutils/patches/patch-Makefile.am b/time/dateutils/patches/patch-Makefile.am new file mode 100644 index 00000000000..a6032612b61 --- /dev/null +++ b/time/dateutils/patches/patch-Makefile.am @@ -0,0 +1,16 @@ +$NetBSD: patch-Makefile.am,v 1.1 2014/12/15 08:45:47 mef Exp $ + +Previous version (at least 0.27) installs libdut.a, while 0.31 +does not. Add that one. + +--- lib/Makefile.am~ 2014-10-07 23:57:32.000000000 +0900 ++++ lib/Makefile.am 2014-12-15 16:13:40.000000000 +0900 +@@ -9,7 +9,7 @@ + noinst_HEADERS = + noinst_LIBRARIES = + pkgdata_DATA = +-lib_LIBRARIES = ++lib_LIBRARIES = libdut.a + BUILT_SOURCES = + CLEANFILES = + DISTCLEANFILES = |