Browse Source

libtai: Added libtai 0.60 - A library for storing and manipulating dates and times

user/amery/next/luajit
Christian Wiese 13 years ago committed by Christian Wiese
parent
commit
2deb69fe84
  1. 78
      develop/libtai/libtai-0.60-0001-include-stdlib.h.patch
  2. 28
      develop/libtai/libtai-0.60-0002-errno.patch
  3. 25
      develop/libtai/libtai.cache
  4. 36
      develop/libtai/libtai.conf
  5. 35
      develop/libtai/libtai.desc

78
develop/libtai/libtai-0.60-0001-include-stdlib.h.patch

@ -0,0 +1,78 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../libtai/libtai-0.60-0001-include-stdlib.h.patch
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
diff --git a/check.c b/check.c
index 9c7503c..b0d1484 100644
--- a/check.c
+++ b/check.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h> /* exit */
#include <time.h>
#include "tai.h"
#include "leapsecs.h"
diff --git a/easter.c b/easter.c
index 29355f4..d28f9e6 100644
--- a/easter.c
+++ b/easter.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h> /* exit */
#include "caldate.h"
char *dayname[7] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" } ;
diff --git a/leapsecs.c b/leapsecs.c
index e5db267..d450c56 100644
--- a/leapsecs.c
+++ b/leapsecs.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h> /* exit */
#include "tai.h"
#include "leapsecs.h"
#include "caldate.h"
diff --git a/leapsecs_read.c b/leapsecs_read.c
index 62c8712..3919f35 100644
--- a/leapsecs_read.c
+++ b/leapsecs_read.c
@@ -1,6 +1,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <stdlib.h> /* free, malloc */
#include <errno.h>
extern int errno;
#include "tai.h"
diff --git a/nowutc.c b/nowutc.c
index c327d75..9d13223 100644
--- a/nowutc.c
+++ b/nowutc.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h> /* exit */
#include "leapsecs.h"
#include "tai.h"
#include "taia.h"
diff --git a/yearcal.c b/yearcal.c
index 545e81e..a454039 100644
--- a/yearcal.c
+++ b/yearcal.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h> /* exit */
#include "caldate.h"
char *montab[] = {

28
develop/libtai/libtai-0.60-0002-errno.patch

@ -0,0 +1,28 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../libtai/libtai-0.60-0002-errno.patch
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
diff --git a/leapsecs_read.c b/leapsecs_read.c
index 3919f35..96a4d64 100644
--- a/leapsecs_read.c
+++ b/leapsecs_read.c
@@ -3,7 +3,6 @@
#include <fcntl.h>
#include <stdlib.h> /* free, malloc */
#include <errno.h>
-extern int errno;
#include "tai.h"
#include "leapsecs.h"

25
develop/libtai/libtai.cache

@ -0,0 +1,25 @@
[TIMESTAMP] 1323258360 Wed Dec 7 12:46:00 2011
[BUILDTIME] 0 (5)
[SIZE] 0.09 MB, 29 files
[DEP] bash
[DEP] binutils
[DEP] bzip2
[DEP] coreutils
[DEP] diffutils
[DEP] fhs
[DEP] findutils
[DEP] gawk
[DEP] gcc
[DEP] glibc
[DEP] grep
[DEP] groff
[DEP] linux-header
[DEP] make
[DEP] patch
[DEP] runit
[DEP] sed
[DEP] sysfiles
[DEP] tar
[DEP] util-linux-ng

36
develop/libtai/libtai.conf

@ -0,0 +1,36 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../libtai/libtai.conf
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
# install headers in a dedicated directory
includedir="/$prefix/include/libtai"
# no make install target
makeinstopt=
pkg_libtai_install() {
local headers="caldate.h caltime.h leapsecs.h tai.h taia.h uint64.h"
local manpages="tai.3 tai_now.3 tai_pack.3 taia.3 taia_now.3 \
taia_pack.3 caldate.3 caldate_mjd.3 caltime.3 \
caltime_tai.3 leapsecs.3"
local executables="easter yearcal nowutc"
#for x in $headers; do
# cp -vp $x $root$includedir
#done
install -m 644 $headers $root$includedir
install -m 644 $manpages $root$mandir/cat3
install -m 755 $executables $root$bindir
install -m 755 libtai.a $root$libdir
}
hook_add postmake 9 'pkg_libtai_install'

35
develop/libtai/libtai.desc

@ -0,0 +1,35 @@
[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN ---
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY]
[COPY] Filename: package/.../libtai/libtai.desc
[COPY] Copyright (C) 2011 The OpenSDE Project
[COPY]
[COPY] More information can be found in the files COPYING and README.
[COPY]
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; version 2 of the License. A copy of the
[COPY] GNU General Public License can be found in the file COPYING.
[COPY] --- SDE-COPYRIGHT-NOTE-END ---
[I] A library for storing and manipulating dates and times
[T] libtai supports two time scales:
[T] 1. TAI64, covering a few hundred billion years with 1-second precision
[T] 2. TAI64NA, covering the same period with 1-attosecond precision
[T] Both scales are defined in terms of TAI, the current international real
[T] time standard.
[U] http://cr.yp.to/libtai.html
[A] Daniel J. Bernstein <djb@cr.yp.tp>
[M] Christian Wiese <chris@opensde.org>
[C] extra/library
[L] PublicDomain
[S] Stable
[V] 0.60
[P] X -----5---9 800.000
[D] 446546096 libtai-0.60.tar.gz http://cr.yp.to/libtai/
Loading…
Cancel
Save