pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/time



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue Dec 14 10:34:07 UTC 2021

Modified Files:
        pkgsrc/time: Makefile
Added Files:
        pkgsrc/time/ddate: DESCR Makefile PLIST distinfo
        pkgsrc/time/ddate/files: Makefile

Log Message:
add time/ddate

ddate prints the date in Discordian date format. It can be used to
convert Gregorian calendar dates to Discordian calendar dates.


To generate a diff of this commit:
cvs rdiff -u -r1.223 -r1.224 pkgsrc/time/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/time/ddate/DESCR pkgsrc/time/ddate/Makefile \
    pkgsrc/time/ddate/PLIST pkgsrc/time/ddate/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/time/ddate/files/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/time/Makefile
diff -u pkgsrc/time/Makefile:1.223 pkgsrc/time/Makefile:1.224
--- pkgsrc/time/Makefile:1.223  Wed Sep  8 14:57:41 2021
+++ pkgsrc/time/Makefile        Tue Dec 14 10:34:07 2021
@@ -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

Added files:

Index: pkgsrc/time/ddate/DESCR
diff -u /dev/null pkgsrc/time/ddate/DESCR:1.1
--- /dev/null   Tue Dec 14 10:34:07 2021
+++ pkgsrc/time/ddate/DESCR     Tue Dec 14 10:34:07 2021
@@ -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.
Index: pkgsrc/time/ddate/Makefile
diff -u /dev/null pkgsrc/time/ddate/Makefile:1.1
--- /dev/null   Tue Dec 14 10:34:07 2021
+++ pkgsrc/time/ddate/Makefile  Tue Dec 14 10:34:07 2021
@@ -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"
Index: pkgsrc/time/ddate/PLIST
diff -u /dev/null pkgsrc/time/ddate/PLIST:1.1
--- /dev/null   Tue Dec 14 10:34:07 2021
+++ pkgsrc/time/ddate/PLIST     Tue Dec 14 10:34:07 2021
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2021/12/14 10:34:07 nia Exp $
+bin/ddate
+man/man1/ddate.1
Index: pkgsrc/time/ddate/distinfo
diff -u /dev/null pkgsrc/time/ddate/distinfo:1.1
--- /dev/null   Tue Dec 14 10:34:07 2021
+++ pkgsrc/time/ddate/distinfo  Tue Dec 14 10:34:07 2021
@@ -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

Index: pkgsrc/time/ddate/files/Makefile
diff -u /dev/null pkgsrc/time/ddate/files/Makefile:1.1
--- /dev/null   Tue Dec 14 10:34:07 2021
+++ pkgsrc/time/ddate/files/Makefile    Tue Dec 14 10:34:07 2021
@@ -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