From 6d8202f80e34c0757e7ed6917e3218ff1a91552f Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sun, 20 Oct 2002 23:10:16 +0000 Subject: makeztxt is a simple command line program that takes a plain ASCII text file and compresses it into a zTXT database. makeztxt will remove newline characters at the end of lines that contain text so that the paragraphs flow better on the Palm screen. Submitted by: Roman Shterenzon --- palm/makeztxt/Makefile | 23 ++++++++++++++++ palm/makeztxt/distinfo | 1 + palm/makeztxt/files/patch-Makefile | 31 ++++++++++++++++++++++ palm/makeztxt/files/patch-libztxt::ztxt.h | 10 +++++++ .../files/patch-libztxt::ztxt_generate_db.c | 10 +++++++ palm/makeztxt/files/patch-libztxt::ztxt_init.c | 10 +++++++ .../files/patch-libztxt::ztxt_list_bookmarks.c | 10 +++++++ palm/makeztxt/files/patch-libztxt::ztxt_process.c | 10 +++++++ palm/makeztxt/files/patch-libztxt::ztxt_set.c | 10 +++++++ palm/makeztxt/pkg-comment | 1 + palm/makeztxt/pkg-descr | 6 +++++ palm/makeztxt/pkg-plist | 1 + 12 files changed, 123 insertions(+) create mode 100644 palm/makeztxt/Makefile create mode 100644 palm/makeztxt/distinfo create mode 100644 palm/makeztxt/files/patch-Makefile create mode 100644 palm/makeztxt/files/patch-libztxt::ztxt.h create mode 100644 palm/makeztxt/files/patch-libztxt::ztxt_generate_db.c create mode 100644 palm/makeztxt/files/patch-libztxt::ztxt_init.c create mode 100644 palm/makeztxt/files/patch-libztxt::ztxt_list_bookmarks.c create mode 100644 palm/makeztxt/files/patch-libztxt::ztxt_process.c create mode 100644 palm/makeztxt/files/patch-libztxt::ztxt_set.c create mode 100644 palm/makeztxt/pkg-comment create mode 100644 palm/makeztxt/pkg-descr create mode 100644 palm/makeztxt/pkg-plist (limited to 'palm/makeztxt') diff --git a/palm/makeztxt/Makefile b/palm/makeztxt/Makefile new file mode 100644 index 000000000000..a14af394d587 --- /dev/null +++ b/palm/makeztxt/Makefile @@ -0,0 +1,23 @@ +# New ports collection makefile for: makeztxt +# Date created: Oct 19, 2002 +# Whom: Roman Shterenzon +# +# $FreeBSD$ +# + +PORTNAME= makeztxt +PORTVERSION= 1.43 +CATEGORIES= palm +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= gutenpalm +DISTNAME= ${PORTNAME}-${PORTVERSION}-src + +MAINTAINER= roman@xpert.com + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +USE_GMAKE= yes + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/makeztxt ${LOCALBASE}/bin/ + +.include diff --git a/palm/makeztxt/distinfo b/palm/makeztxt/distinfo new file mode 100644 index 000000000000..a3b40f4bb4bd --- /dev/null +++ b/palm/makeztxt/distinfo @@ -0,0 +1 @@ +MD5 (makeztxt-1.43-src.tar.gz) = 9af951a5b6d7e5633c02cd4b13bb606a diff --git a/palm/makeztxt/files/patch-Makefile b/palm/makeztxt/files/patch-Makefile new file mode 100644 index 000000000000..f3282e6da984 --- /dev/null +++ b/palm/makeztxt/files/patch-Makefile @@ -0,0 +1,31 @@ +--- Makefile.orig Sat Oct 19 15:38:34 2002 ++++ Makefile Sat Oct 19 15:40:04 2002 +@@ -9,8 +9,8 @@ + LIBS = -lztxt + INCLUDE = -I../common -I. + +-CC = gcc +-CFLAGS = -Wall -O2 -pipe $(INCLUDE) ++CC ?= cc ++CFLAGS += -Wall $(INCLUDE) + # GNU make is mandatory + #MAKE = make + +@@ -29,7 +29,7 @@ + # more featureful and faster (on large strings) than POSIX regex. + # But... maybe you don't have GNU regex. + # In particular, if compiling with Cygwin, you need this. +-#USEPOSIX = 1 ++USEPOSIX = 1 + + # DOS, in all its infinite wisdom, decided long ago to differentiate between + # text files and binary files. Text files get their \n converted to \r\n and +@@ -44,7 +44,7 @@ + + # If you're on a system that does not have getopt.h or does not have the + # getopt_long() function, comment this out. Regular getopt() will be used. +-LONG_OPTS = 1 ++#LONG_OPTS = 1 + + + ##################################### diff --git a/palm/makeztxt/files/patch-libztxt::ztxt.h b/palm/makeztxt/files/patch-libztxt::ztxt.h new file mode 100644 index 000000000000..ece5f2bf4a7f --- /dev/null +++ b/palm/makeztxt/files/patch-libztxt::ztxt.h @@ -0,0 +1,10 @@ +--- libztxt/ztxt.h.old Sat Mar 2 07:03:18 2002 ++++ libztxt/ztxt.h Sun Sep 29 15:46:52 2002 +@@ -31,6 +31,7 @@ + #define _ZTXT_H_ 1 + + ++#include + #include + #include "databaseHdrs.h" + #include diff --git a/palm/makeztxt/files/patch-libztxt::ztxt_generate_db.c b/palm/makeztxt/files/patch-libztxt::ztxt_generate_db.c new file mode 100644 index 000000000000..bb3f3843ffe7 --- /dev/null +++ b/palm/makeztxt/files/patch-libztxt::ztxt_generate_db.c @@ -0,0 +1,10 @@ +--- libztxt/ztxt_generate_db.c.old Sat Mar 2 07:03:18 2002 ++++ libztxt/ztxt_generate_db.c Sun Sep 29 15:51:55 2002 +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include + #include + #include "ztxt.h" diff --git a/palm/makeztxt/files/patch-libztxt::ztxt_init.c b/palm/makeztxt/files/patch-libztxt::ztxt_init.c new file mode 100644 index 000000000000..25463ba72d1f --- /dev/null +++ b/palm/makeztxt/files/patch-libztxt::ztxt_init.c @@ -0,0 +1,10 @@ +--- libztxt/ztxt_init.c.old Sat Mar 2 07:03:18 2002 ++++ libztxt/ztxt_init.c Sun Sep 29 15:52:33 2002 +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include + #include "ztxt.h" + diff --git a/palm/makeztxt/files/patch-libztxt::ztxt_list_bookmarks.c b/palm/makeztxt/files/patch-libztxt::ztxt_list_bookmarks.c new file mode 100644 index 000000000000..01a83d076112 --- /dev/null +++ b/palm/makeztxt/files/patch-libztxt::ztxt_list_bookmarks.c @@ -0,0 +1,10 @@ +--- libztxt/ztxt_list_bookmarks.c.old Sat Mar 2 07:03:18 2002 ++++ libztxt/ztxt_list_bookmarks.c Sun Sep 29 15:52:10 2002 +@@ -29,6 +29,7 @@ + + #include + #include ++#include + #include + + #include "ztxt.h" diff --git a/palm/makeztxt/files/patch-libztxt::ztxt_process.c b/palm/makeztxt/files/patch-libztxt::ztxt_process.c new file mode 100644 index 000000000000..b874e67826d7 --- /dev/null +++ b/palm/makeztxt/files/patch-libztxt::ztxt_process.c @@ -0,0 +1,10 @@ +--- libztxt/ztxt_process.c.old Sat Mar 2 07:03:18 2002 ++++ libztxt/ztxt_process.c Sun Sep 29 15:52:49 2002 +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include + #include + #include "ztxt.h" diff --git a/palm/makeztxt/files/patch-libztxt::ztxt_set.c b/palm/makeztxt/files/patch-libztxt::ztxt_set.c new file mode 100644 index 000000000000..3985cc0fb2c6 --- /dev/null +++ b/palm/makeztxt/files/patch-libztxt::ztxt_set.c @@ -0,0 +1,10 @@ +--- libztxt/ztxt_set.c.old Sat Mar 2 07:03:18 2002 ++++ libztxt/ztxt_set.c Sun Sep 29 15:52:21 2002 +@@ -28,6 +28,7 @@ + */ + + #include ++#include + #include + #include "ztxt.h" + diff --git a/palm/makeztxt/pkg-comment b/palm/makeztxt/pkg-comment new file mode 100644 index 000000000000..0a9726511158 --- /dev/null +++ b/palm/makeztxt/pkg-comment @@ -0,0 +1 @@ +Command line utility to create GutenPalm's zTXT format databases diff --git a/palm/makeztxt/pkg-descr b/palm/makeztxt/pkg-descr new file mode 100644 index 000000000000..044934b0a577 --- /dev/null +++ b/palm/makeztxt/pkg-descr @@ -0,0 +1,6 @@ +makeztxt is a simple command line program that takes a plain ASCII text file +and compresses it into a zTXT database. makeztxt will remove newline +characters at the end of lines that contain text so that the paragraphs flow +better on the Palm screen. + +WWW: http://gutenpalm.sourceforge.net/ diff --git a/palm/makeztxt/pkg-plist b/palm/makeztxt/pkg-plist new file mode 100644 index 000000000000..6f0eb3796cdc --- /dev/null +++ b/palm/makeztxt/pkg-plist @@ -0,0 +1 @@ +bin/makeztxt -- cgit v1.2.3