pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/time add time/ddate
details: https://anonhg.NetBSD.org/pkgsrc/rev/80868bcecdb3
branches: trunk
changeset: 771159:80868bcecdb3
user: nia <nia%pkgsrc.org@localhost>
date: Tue Dec 14 10:34:07 2021 +0000
description:
add time/ddate
ddate prints the date in Discordian date format. It can be used to
convert Gregorian calendar dates to Discordian calendar dates.
diffstat:
time/Makefile | 3 ++-
time/ddate/DESCR | 2 ++
time/ddate/Makefile | 25 +++++++++++++++++++++++++
time/ddate/PLIST | 3 +++
time/ddate/distinfo | 5 +++++
time/ddate/files/Makefile | 12 ++++++++++++
6 files changed, 49 insertions(+), 1 deletions(-)
diffs (84 lines):
diff -r 1540a06b0a40 -r 80868bcecdb3 time/Makefile
--- a/time/Makefile Tue Dec 14 10:33:57 2021 +0000
+++ b/time/Makefile Tue Dec 14 10:34:07 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.223 2021/09/08 14:57:41 mef Exp $
+# $NetBSD: Makefile,v 1.224 2021/12/14 10:34:07 nia Exp $
#
COMMENT= Clocks, calendars, daily planners and other time related applications
@@ -18,6 +18,7 @@
SUBDIR+= catclock
SUBDIR+= dateutils
SUBDIR+= dclock
+SUBDIR+= ddate
SUBDIR+= deforaos-todo
SUBDIR+= devtodo
SUBDIR+= emiclock
diff -r 1540a06b0a40 -r 80868bcecdb3 time/ddate/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/time/ddate/DESCR Tue Dec 14 10:34:07 2021 +0000
@@ -0,0 +1,2 @@
+ddate prints the date in Discordian date format. It can be used to
+convert Gregorian calendar dates to Discordian calendar dates.
diff -r 1540a06b0a40 -r 80868bcecdb3 time/ddate/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/time/ddate/Makefile Tue Dec 14 10:34:07 2021 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2021/12/14 10:34:07 nia Exp $
+
+DISTNAME= ddate-0.2.2
+CATEGORIES= time
+MASTER_SITES= ${MASTER_SITE_GITHUB:=bo0ts/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/bo0ts/ddate
+COMMENT= Discordian calendar date(1) command
+LICENSE= public-domain
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= ${PKGMANDIR}/man1
+
+pre-configure:
+ ${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ddate \
+ ${DESTDIR}${PREFIX}/bin/ddate
+ ${INSTALL_MAN} ${WRKSRC}/ddate.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ddate.1
+
+.include "../../mk/bsd.pkg.mk"
diff -r 1540a06b0a40 -r 80868bcecdb3 time/ddate/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/time/ddate/PLIST Tue Dec 14 10:34:07 2021 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2021/12/14 10:34:07 nia Exp $
+bin/ddate
+man/man1/ddate.1
diff -r 1540a06b0a40 -r 80868bcecdb3 time/ddate/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/time/ddate/distinfo Tue Dec 14 10:34:07 2021 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2021/12/14 10:34:07 nia Exp $
+
+BLAKE2s (ddate-0.2.2.tar.gz) = aadca773dc4eedf6581f7935e951557af2c7c86a265af7f04ccf257a36abb0a1
+SHA512 (ddate-0.2.2.tar.gz) = 5d148e030bee392eb93c5ae519061af0736f2f75eaae916e3efaf927d9f4de8cc72afc4a5121b6fbc0264b73e9f580330a38b97bb78837d447d0b4c1fc29ec06
+Size (ddate-0.2.2.tar.gz) = 8049 bytes
diff -r 1540a06b0a40 -r 80868bcecdb3 time/ddate/files/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/time/ddate/files/Makefile Tue Dec 14 10:34:07 2021 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: Makefile,v 1.1 2021/12/14 10:34:07 nia Exp $
+# The provided CMake file doesn't handle man page installation the
+# proper way, and it's simple enough that we might as well rewrite it
+# and avoid the CMake dependency entirely.
+
+all: ddate
+
+ddate: ddate.o
+ $(CC) $(LDFLAGS) -o ddate ddate.o
+
+ddate.o: ddate.c
+ $(CC) $(CFLAGS) -c ddate.c
Home |
Main Index |
Thread Index |
Old Index