Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2014 15:41:35 GMT
From:      Jesse <jessefrgsmith@yahoo.ca>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/187663: New port: sysutils/dateutils
Message-ID:  <201403171541.s2HFfZUk001062@cgiserv.freebsd.org>
Resent-Message-ID: <201403171550.s2HFo1hO000759@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187663
>Category:       ports
>Synopsis:       New port: sysutils/dateutils
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 17 15:50:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Jesse
>Release:        FreeBSD 10.0 amd64
>Organization:
RM
>Environment:
>Description:
The attached is a new port for the Dateutils suite of tools. Dateutils provides command line utilities for working with, converting and comparing date/calendar information. The upstream project can be found at http://www.fresse.org/dateutils/
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	dateutils/
#	dateutils/distinfo
#	dateutils/pkg-descr
#	dateutils/files
#	dateutils/files/patch-src__prchunk.c
#	dateutils/files/patch-lib__tzraw.c
#	dateutils/Makefile
#	dateutils/pkg-plist
#
echo c - dateutils/
mkdir -p dateutils/ > /dev/null 2>&1
echo x - dateutils/distinfo
sed 's/^X//' >dateutils/distinfo << '52903fa18ea3fef16174e2e99d32a0d1'
XSHA256 (dateutils-0.2.7.tar.xz) = f7d0c502d79dec4a604ebc30e7c44988d7095bd303137d1fa652720350337042
XSIZE (dateutils-0.2.7.tar.xz) = 490456
52903fa18ea3fef16174e2e99d32a0d1
echo x - dateutils/pkg-descr
sed 's/^X//' >dateutils/pkg-descr << 'fd5cf148075230fb797963be82609600'
XDateutils are a bunch of tools that revolve around fiddling with dates and times on the command line. Commands included in the suite offer ways of converting dates between valendars, computing durations between dates and finding dates in input streams.
X
XWWW: http://www.fresse.org/dateutils/
fd5cf148075230fb797963be82609600
echo c - dateutils/files
mkdir -p dateutils/files > /dev/null 2>&1
echo x - dateutils/files/patch-src__prchunk.c
sed 's/^X//' >dateutils/files/patch-src__prchunk.c << 'ab16f9e1ccb977c601aef544ebbb2ef0'
X--- ./src/prchunk.c.orig	2014-03-17 12:03:56.037832619 -0300
X+++ ./src/prchunk.c	2014-03-17 12:05:00.244886432 -0300
X@@ -61,9 +61,13 @@
X #define MAX_NLINES	(16384)
X #define MAX_LLEN	(1024)
X 
X-#if !defined MAP_ANONYMOUS && defined MAP_ANON
X-# define MAP_ANONYMOUS	(MAP_ANON)
X-#endif	/* MAP_ANON->MAP_ANONYMOUS */
X+#ifndef MAP_ANONYMOUS
X+#define MAP_ANONYMOUS 0x1000
X+#endif
X+
X+#ifndef MAP_ANON
X+#define MAP_ANON 0x1000
X+#endif
X 
X #if defined __INTEL_COMPILER
X # pragma warning(disable: 981)
ab16f9e1ccb977c601aef544ebbb2ef0
echo x - dateutils/files/patch-lib__tzraw.c
sed 's/^X//' >dateutils/files/patch-lib__tzraw.c << '5e3049aba2f37b48c580b5519f4a1e91'
X--- ./lib/tzraw.c.orig	2014-03-17 11:58:34.267941549 -0300
X+++ ./lib/tzraw.c	2014-03-17 11:59:54.020897009 -0300
X@@ -34,6 +34,8 @@
X  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
X  *
X  ***/
X+
X+
X /* implementation part of tzraw.h */
X #if !defined INCLUDED_tzraw_c_
X #define INCLUDED_tzraw_c_
X@@ -70,9 +72,14 @@
X /* me own header, innit */
X #include "tzraw.h"
X 
X-#if !defined MAP_ANONYMOUS && defined MAP_ANON
X-# define MAP_ANONYMOUS	(MAP_ANON)
X-#endif	/* MAP_ANON->MAP_ANONYMOUS */
X+#ifndef MAP_ANONYMOUS
X+#define MAP_ANONYMOUS 0x1000
X+#endif
X+
X+#ifndef MAP_ANON
X+#define MAP_ANON 0x1000
X+#endif
X+
X 
X #if defined TZDIR
X static const char tzdir[] = TZDIR;
5e3049aba2f37b48c580b5519f4a1e91
echo x - dateutils/Makefile
sed 's/^X//' >dateutils/Makefile << '46b04d86d3875c17d16c26966a28dcfc'
X# $FreeBSD: 
X
XPORTNAME=	dateutils
XPORTVERSION=	0.2.7
XCATEGORIES=	sysutils
XMASTER_SITES=	https://bitbucket.org/hroptatyr/dateutils/downloads/
X
XMAINTAINER=	jessefrgsmith@yahoo.ca
XCOMMENT=	A collection of command line utilities for working with dates.
X
XLICENSE=	BSD
XEXTRACT_SUFX=.tar.xz
XUSES_TAR=xz
XGNU_CONFIGURE=yes
XMAKE_JOBS_UNSAFE=yes
XUSES_GCC=yes
XNO_STAGE=yes
X.include <bsd.port.pre.mk>
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/src/dadd ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/src/dconv ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/src/ddiff ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/src/dgrep ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/src/dround ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/src/dseq ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/src/dtest ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/src/strptime ${PREFIX}/bin
X
X.include <bsd.port.post.mk>
46b04d86d3875c17d16c26966a28dcfc
echo x - dateutils/pkg-plist
sed 's/^X//' >dateutils/pkg-plist << '06aa4d882d7c8dc0d1e339283f29123d'
Xbin/dadd
Xbin/dconv
Xbin/ddiff
Xbin/dgrep
Xbin/dround
Xbin/dseq
Xbin/dtest
Xbin/strptime
X
06aa4d882d7c8dc0d1e339283f29123d
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403171541.s2HFfZUk001062>