pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libtai Initial import of libtai 0.60, a public-d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5ecacf14834a
branches:  trunk
changeset: 526567:5ecacf14834a
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Mar 15 05:27:12 2007 +0000

description:
Initial import of libtai 0.60, a public-domain library for storing
and manipulating dates and times.

libtai supports two time scales: (1) TAI64, covering a few hundred
billion years with 1-second precision; (2) TAI64NA, covering the
same period with 1-attosecond precision. Both scales are defined
in terms of TAI, the current international real time standard.

libtai provides an internal format for TAI64, struct tai, designed
for fast time manipulations. The tai_pack() and tai_unpack() routines
convert between struct tai and a portable 8-byte TAI64 storage
format. libtai provides similar internal and external formats for
TAI64NA.

This version of libtai requires a UNIX system with gettimeofday().
It will be easy to port to other operating systems with compilers
supporting 64-bit arithmetic.

diffstat:

 devel/libtai/DESCR    |  14 ++++++++++++++
 devel/libtai/Makefile |  44 ++++++++++++++++++++++++++++++++++++++++++++
 devel/libtai/PLIST    |  38 ++++++++++++++++++++++++++++++++++++++
 devel/libtai/distinfo |   5 +++++
 4 files changed, 101 insertions(+), 0 deletions(-)

diffs (117 lines):

diff -r 0b6f6f962a79 -r 5ecacf14834a devel/libtai/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libtai/DESCR        Thu Mar 15 05:27:12 2007 +0000
@@ -0,0 +1,14 @@
+libtai supports two time scales: (1) TAI64, covering a few hundred
+billion years with 1-second precision; (2) TAI64NA, covering the
+same period with 1-attosecond precision. Both scales are defined
+in terms of TAI, the current international real time standard.
+
+libtai provides an internal format for TAI64, struct tai, designed
+for fast time manipulations. The tai_pack() and tai_unpack() routines
+convert between struct tai and a portable 8-byte TAI64 storage
+format. libtai provides similar internal and external formats for
+TAI64NA.
+
+This version of libtai requires a UNIX system with gettimeofday().
+It will be easy to port to other operating systems with compilers
+supporting 64-bit arithmetic.
diff -r 0b6f6f962a79 -r 5ecacf14834a devel/libtai/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libtai/Makefile     Thu Mar 15 05:27:12 2007 +0000
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/03/15 05:27:12 schmonz Exp $
+#
+
+DISTNAME=      libtai-0.60
+CATEGORIES=    devel
+MASTER_SITES=  ${HOMEPAGE}
+
+MAINTAINER=    schmonz%NetBSD.org@localhost
+HOMEPAGE=      http://cr.yp.to/libtai/
+COMMENT=       Library for storing and manipulating dates and times
+
+DJB_RESTRICTED=        NO
+
+USE_TOOLS+=    nroff
+
+EGDIR=         share/doc/examples/${PKGBASE}
+CONF_FILES+=   ${EGDIR}/leapsecs.dat ${PKG_SYSCONFDIR}/leapsecs.dat
+
+INSTALLATION_DIRS=     bin include lib ${EGDIR}
+INSTALLATION_DIRS+=    ${PKGMANDIR}/man3 ${PKGMANDIR}/cat3
+
+do-install:
+       cd ${WRKSRC};                                                   \
+       for f in *.3; do                                                \
+               ${INSTALL_MAN} $${f} ${PREFIX}/${PKGMANDIR}/man3;       \
+       done;                                                           \
+       for f in *.0; do                                                \
+               ${INSTALL_MAN} $${f} ${PREFIX}/${PKGMANDIR}/cat3;       \
+       done;                                                           \
+       for f in easter nowutc leapsecs yearcal; do                     \
+               ${INSTALL_PROGRAM} $${f} ${PREFIX}/bin;                 \
+       done;                                                           \
+       for f in *.h; do                                                \
+               ${INSTALL_DATA} $${f} ${PREFIX}/include;                \
+       done;                                                           \
+       for f in libtai.a; do                                           \
+               ${INSTALL_LIB} $${f} ${PREFIX}/lib;                     \
+       done;                                                           \
+       for f in leapsecs.dat leapsecs.txt; do                          \
+               ${INSTALL_DATA} $${f} ${PREFIX}/${EGDIR};               \
+       done;                                                           \
+
+.include "../../mk/djbware.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 0b6f6f962a79 -r 5ecacf14834a devel/libtai/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libtai/PLIST        Thu Mar 15 05:27:12 2007 +0000
@@ -0,0 +1,38 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/03/15 05:27:12 schmonz Exp $
+bin/easter
+bin/leapsecs
+bin/nowutc
+bin/yearcal
+include/caldate.h
+include/caltime.h
+include/leapsecs.h
+include/tai.h
+include/taia.h
+include/uint64.h
+lib/libtai.a
+man/cat3/caldate.0
+man/cat3/caldate_mjd.0
+man/cat3/caltime.0
+man/cat3/caltime_tai.0
+man/cat3/leapsecs.0
+man/cat3/tai.0
+man/cat3/tai_now.0
+man/cat3/tai_pack.0
+man/cat3/taia.0
+man/cat3/taia_now.0
+man/cat3/taia_pack.0
+man/man3/caldate.3
+man/man3/caldate_mjd.3
+man/man3/caltime.3
+man/man3/caltime_tai.3
+man/man3/leapsecs.3
+man/man3/tai.3
+man/man3/tai_now.3
+man/man3/tai_pack.3
+man/man3/taia.3
+man/man3/taia_now.3
+man/man3/taia_pack.3
+share/doc/examples/libtai/leapsecs.dat
+share/doc/examples/libtai/leapsecs.txt
+@dirrm share/doc/examples/libtai
+@dirrm share/doc/examples
diff -r 0b6f6f962a79 -r 5ecacf14834a devel/libtai/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libtai/distinfo     Thu Mar 15 05:27:12 2007 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/03/15 05:27:12 schmonz Exp $
+
+SHA1 (libtai-0.60.tar.gz) = f4682fb2a98dd7d434aa0cecd9254a58a0bfd9fb
+RMD160 (libtai-0.60.tar.gz) = 706111781e5e5bd7ae888e3cdc169d1d8d29de6f
+Size (libtai-0.60.tar.gz) = 17300 bytes



Home | Main Index | Thread Index | Old Index