add time/ddate

ddate prints the date in Discordian date format. It can be used to
convert Gregorian calendar dates to Discordian calendar dates.
This commit is contained in:
nia 2021-12-14 10:34:07 +00:00
parent af59666d93
commit 1d68d3eab6
6 changed files with 49 additions and 1 deletions

View File

@ -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+= cardboard-schedule
SUBDIR+= catclock
SUBDIR+= dateutils
SUBDIR+= dclock
SUBDIR+= ddate
SUBDIR+= deforaos-todo
SUBDIR+= devtodo
SUBDIR+= emiclock

2
time/ddate/DESCR Normal file
View File

@ -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.

25
time/ddate/Makefile Normal file
View File

@ -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
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"

3
time/ddate/PLIST Normal file
View File

@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1 2021/12/14 10:34:07 nia Exp $
bin/ddate
man/man1/ddate.1

5
time/ddate/distinfo Normal file
View File

@ -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

12
time/ddate/files/Makefile Normal file
View File

@ -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