summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorwennmach <wennmach>2004-01-09 13:40:53 +0000
committerwennmach <wennmach>2004-01-09 13:40:53 +0000
commit98d35016cfccf9a95f4826ead2ce65a7536c7842 (patch)
tree03026dd7be14a812378de43d2ed34da77b60f8ce /time
parent466b498bb89d3bd6531f1c1b0b68ddda0604b2cc (diff)
downloadpkgsrc-98d35016cfccf9a95f4826ead2ce65a7536c7842.tar.gz
Import of jday-1.3 -- utilities and library for conversion between
calendar and Julian dates. Submitted in PR pkg/24027 by David Simas, with some changes by myself.
Diffstat (limited to 'time')
-rw-r--r--time/jday/DESCR11
-rw-r--r--time/jday/Makefile30
-rw-r--r--time/jday/PLIST15
-rw-r--r--time/jday/distinfo4
4 files changed, 60 insertions, 0 deletions
diff --git a/time/jday/DESCR b/time/jday/DESCR
new file mode 100644
index 00000000000..2592b07d5a7
--- /dev/null
+++ b/time/jday/DESCR
@@ -0,0 +1,11 @@
+Utilities to convert between calendar dates and Julian dates:
+
+ jday - calendar date to Julian date
+ j2d - Julian date to calendar date
+ dbd - calculate days between dates
+
+Quite useful in timing situations where you need elapsed time between
+dates.
+
+This package also includes a library 'libjday.a' for incorporating
+caledar-Julian date conversions in applications.
diff --git a/time/jday/Makefile b/time/jday/Makefile
new file mode 100644
index 00000000000..dca1a77af10
--- /dev/null
+++ b/time/jday/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/09 13:40:53 wennmach Exp $
+#
+
+DISTNAME= jday-1.3
+CATEGORIES= time
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=jday/}
+
+MAINTAINER= David Simas <davids@idiom.com>
+HOMEPAGE= http://jday.sourceforge.net/
+COMMENT= Julian date calculator
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+
+do-test:
+ @(cd ${WRKSRC} && ./RunTest)
+ @(cd ${WRKSRC} && ./Testdbd)
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/jday
+ ${INSTALL_DATA} ${WRKSRC}/CalDate.inc ${PREFIX}/share/jday
+ ${INSTALL_DATA} ${WRKSRC}/CalDate.pm ${PREFIX}/share/jday
+ ${INSTALL_DATA} ${WRKSRC}/J2D.pl ${PREFIX}/share/jday
+ ${INSTALL_DATA} ${WRKSRC}/Jday.php ${PREFIX}/share/jday
+ ${INSTALL_DATA} ${WRKSRC}/Jday.pl ${PREFIX}/share/jday
+ ${INSTALL_DATA} ${WRKSRC}/dbd.awk ${PREFIX}/share/jday
+ ${INSTALL_DATA} ${WRKSRC}/jday.awk ${PREFIX}/share/jday
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/time/jday/PLIST b/time/jday/PLIST
new file mode 100644
index 00000000000..77ffae736fa
--- /dev/null
+++ b/time/jday/PLIST
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/09 13:40:53 wennmach Exp $
+bin/dbd
+bin/j2d
+bin/jday
+include/jday.h
+lib/libjday.a
+man/man1/jday.1
+share/jday/CalDate.inc
+share/jday/CalDate.pm
+share/jday/J2D.pl
+share/jday/Jday.php
+share/jday/Jday.pl
+share/jday/dbd.awk
+share/jday/jday.awk
+@dirrm share/jday
diff --git a/time/jday/distinfo b/time/jday/distinfo
new file mode 100644
index 00000000000..c836c90484e
--- /dev/null
+++ b/time/jday/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/01/09 13:40:53 wennmach Exp $
+
+SHA1 (jday-1.3.tar.gz) = 21b2992944a811f743528a01b9fd6d9dc50dbc07
+Size (jday-1.3.tar.gz) = 211601 bytes