summaryrefslogtreecommitdiff
path: root/devel/libtai
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2007-03-15 05:27:12 +0000
committerschmonz <schmonz@pkgsrc.org>2007-03-15 05:27:12 +0000
commitcc3ae2309a41054e888f673bee03f16b6b1ba235 (patch)
tree8198b591ff6aaaed939e29bbe1336a5e58e59ea6 /devel/libtai
parent96d4ab6a6300cc6b4e19f91fd7399e6ac7559ea4 (diff)
downloadpkgsrc-cc3ae2309a41054e888f673bee03f16b6b1ba235.tar.gz
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 (limited to 'devel/libtai')
-rw-r--r--devel/libtai/DESCR14
-rw-r--r--devel/libtai/Makefile44
-rw-r--r--devel/libtai/PLIST38
-rw-r--r--devel/libtai/distinfo5
4 files changed, 101 insertions, 0 deletions
diff --git a/devel/libtai/DESCR b/devel/libtai/DESCR
new file mode 100644
index 00000000000..b7139b0e7d4
--- /dev/null
+++ b/devel/libtai/DESCR
@@ -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 --git a/devel/libtai/Makefile b/devel/libtai/Makefile
new file mode 100644
index 00000000000..c8eed144353
--- /dev/null
+++ b/devel/libtai/Makefile
@@ -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
+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 --git a/devel/libtai/PLIST b/devel/libtai/PLIST
new file mode 100644
index 00000000000..5671dbeb7ae
--- /dev/null
+++ b/devel/libtai/PLIST
@@ -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 --git a/devel/libtai/distinfo b/devel/libtai/distinfo
new file mode 100644
index 00000000000..292a5bc23f3
--- /dev/null
+++ b/devel/libtai/distinfo
@@ -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