pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
ics2txt: Import ics2txt-1.1 as wip/ics2txt
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Wed Jun 7 20:07:30 2023 +0200
Changeset: 334324889b08ab62ab360d79ade94d6141b75046
Added Files:
ics2txt/DESCR
ics2txt/Makefile
ics2txt/PLIST
ics2txt/distinfo
ics2txt/patches/patch-tsv2agenda.c
Log Message:
ics2txt: Import ics2txt-1.1 as wip/ics2txt
Convert icalendar .ics file to plain text.
Set of tools to work with the popular iCalendar format and converting
to even simpler TSV and text forms.
* ics2tsv: converts the iCalendar data to an easier-to-parse TSV format.
* ics2tree: lints exhaustively all iCalendar content for inspection.
* tsv2ics: convert back the TSV format to iCalendar.
* tsv2agenda: displays converted TSV data to readable output.
An ical.c/ical.h library walks through the icalendar structure and is
used by the various ics2* parsing tools above.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=334324889b08ab62ab360d79ade94d6141b75046
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
ics2txt/DESCR | 12 +++++++++++
ics2txt/Makefile | 44 ++++++++++++++++++++++++++++++++++++++
ics2txt/PLIST | 8 +++++++
ics2txt/distinfo | 6 ++++++
ics2txt/patches/patch-tsv2agenda.c | 14 ++++++++++++
5 files changed, 84 insertions(+)
diffs:
diff --git a/ics2txt/DESCR b/ics2txt/DESCR
new file mode 100644
index 0000000000..b0e85dfbf4
--- /dev/null
+++ b/ics2txt/DESCR
@@ -0,0 +1,12 @@
+Convert icalendar .ics file to plain text.
+
+Set of tools to work with the popular iCalendar format and converting
+to even simpler TSV and text forms.
+
+* ics2tsv: converts the iCalendar data to an easier-to-parse TSV format.
+* ics2tree: lints exhaustively all iCalendar content for inspection.
+* tsv2ics: convert back the TSV format to iCalendar.
+* tsv2agenda: displays converted TSV data to readable output.
+
+An ical.c/ical.h library walks through the icalendar structure and is
+used by the various ics2* parsing tools above.
diff --git a/ics2txt/Makefile b/ics2txt/Makefile
new file mode 100644
index 0000000000..15fe3f084d
--- /dev/null
+++ b/ics2txt/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1 2021/02/27 21:09:40 leot Exp $
+
+DISTNAME= ics2txt-v1.1
+PKGNAME= ${DISTNAME:S/-v/-/}
+CATEGORIES= time
+MASTER_SITES= ftp://bitreich.org/releases/ics2txt/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= gopher://bitreich.org/1/scm/ics2txt
+COMMENT= Convert icalendar .ics file to plain text
+# FIXME: unknown license!
+#LICENSE= isc
+
+MAKE_FLAGS+= PREFIX=${PREFIX}
+MAKE_FLAGS+= MANPREFIX=${PREFIX}/${PKGMANDIR}
+
+CFLAGS+= -D_XOPEN_SOURCE=600
+
+SUBST_CLASSES+= makefile
+SUBST_STAGE.makefile= pre-configure
+SUBST_MESSAGE.makefile= Honor CFLAGS
+SUBST_FILES.makefile= Makefile
+SUBST_SED.makefile+= -e '/CFLAGS/s/=/+=/'
+
+USE_LANGUAGES= c99
+
+INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
+
+pre-install:
+ ${MV} ${WRKSRC}/tsv2ics.awk ${WRKSRC}/tsv2ics
+
+do-install:
+.for _p_ in ics2tree ics2tsv tsv2agenda
+ ${INSTALL_PROGRAM} ${WRKSRC}/${_p_} ${DESTDIR}${PREFIX}/bin
+.endfor
+.for _s_ in tsv2ics
+ ${INSTALL_SCRIPT} ${WRKSRC}/${_s_} ${DESTDIR}${PREFIX}/bin
+.endfor
+.for _m_ in ics2tsv.1 tsv2ics.1 tsv2agenda.1
+ ${INSTALL_MAN} ${WRKSRC}/${_m_} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/ics2txt/PLIST b/ics2txt/PLIST
new file mode 100644
index 0000000000..1a576cb2ba
--- /dev/null
+++ b/ics2txt/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD$
+bin/ics2tree
+bin/ics2tsv
+bin/tsv2agenda
+bin/tsv2ics
+man/man1/ics2tsv.1
+man/man1/tsv2agenda.1
+man/man1/tsv2ics.1
diff --git a/ics2txt/distinfo b/ics2txt/distinfo
new file mode 100644
index 0000000000..4d29cb7e9c
--- /dev/null
+++ b/ics2txt/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.2 2021/10/07 14:35:14 nia Exp $
+
+BLAKE2s (ics2txt-v1.1.tgz) = b30c61db51e5f41e938980d88d5df646a81103e284293697a74477a29285d489
+SHA512 (ics2txt-v1.1.tgz) = a59a1e4f6218bd9e0adc7f197d3994487c9cbb6d6b0c6f38c6282196bcad2a1666c702cc21a6d93a4872c063bf4705825e4744f21b7284116d5058ada6377a59
+Size (ics2txt-v1.1.tgz) = 12390 bytes
+SHA1 (patch-tsv2agenda.c) = ab08b8442492ba890f69906cd00a2ed5dd5fbdc6
diff --git a/ics2txt/patches/patch-tsv2agenda.c b/ics2txt/patches/patch-tsv2agenda.c
new file mode 100644
index 0000000000..b90efa0ec6
--- /dev/null
+++ b/ics2txt/patches/patch-tsv2agenda.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Include <strings.h> for strcasecmp(3).
+
+--- tsv2agenda.c.orig 2021-06-25 18:18:33.000000000 +0000
++++ tsv2agenda.c
+@@ -5,6 +5,7 @@
+ #include <stdlib.h>
+ #include <stdint.h>
+ #include <string.h>
++#include <strings.h>
+ #include <unistd.h>
+ #include <time.h>
+ #include "util.h"
Home |
Main Index |
Thread Index |
Old Index