diff options
-rw-r--r-- | textproc/lout/Makefile | 26 | ||||
-rw-r--r-- | textproc/lout/files/md5 | 3 | ||||
-rw-r--r-- | textproc/lout/patches/patch-aa | 45 | ||||
-rw-r--r-- | textproc/lout/patches/patch-ab | 61 | ||||
-rw-r--r-- | textproc/lout/pkg/COMMENT | 1 | ||||
-rw-r--r-- | textproc/lout/pkg/DESCR | 18 | ||||
-rw-r--r-- | textproc/lout/pkg/PLIST.pre | 6 |
7 files changed, 160 insertions, 0 deletions
diff --git a/textproc/lout/Makefile b/textproc/lout/Makefile new file mode 100644 index 00000000000..6b215d85678 --- /dev/null +++ b/textproc/lout/Makefile @@ -0,0 +1,26 @@ +# $NetBSD: Makefile,v 1.1.1.1 1998/11/09 18:05:10 tsarna Exp $ +# + +DISTNAME= lout-3.12 +CATEGORIES= textproc +MASTER_SITES= ftp://ftp.cs.usyd.edu.au/jeff/lout/ + +MAINTAINER= tsarna@netbsd.org +HOMEPAGE= http://snark.niif.spb.su/~uwe/lout/lout.html + +PLIST_SRC= ${WRKDIR}/.PLIST_SRC +INSTALL_TARGET= allinstall + +do-configure: + ${MV} ${WRKSRC}/makefile ${WRKSRC}/makefile.in + ${SED} -e "s,@PREFIX@,${PREFIX}," <${WRKSRC}/makefile.in >${WRKSRC}/Makefile + +post-install: + ${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC} + (cd ${PREFIX}; find share/doc/lout -type f -print >>${PLIST_SRC}) + (cd ${PREFIX}; find share/lout -type f -print >>${PLIST_SRC}) + ${ECHO} "@unexec ${RM} -rf %D/share/doc/lout" >>${PLIST_SRC} + (cd ${PREFIX}; find -d share/lout -type d -print | \ + ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC}) + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/lout/files/md5 b/textproc/lout/files/md5 new file mode 100644 index 00000000000..6593cfd9b6f --- /dev/null +++ b/textproc/lout/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1998/11/09 18:05:10 tsarna Exp $ + +MD5 (lout-3.12.tar.gz) = f61fa10eef640550acc548ce225a077d diff --git a/textproc/lout/patches/patch-aa b/textproc/lout/patches/patch-aa new file mode 100644 index 00000000000..42e3408f7ef --- /dev/null +++ b/textproc/lout/patches/patch-aa @@ -0,0 +1,45 @@ +$NetBSD: patch-aa,v 1.1.1.1 1998/11/09 18:05:10 tsarna Exp $ + +--- makefile.orig Mon Nov 2 11:31:56 1998 ++++ makefile Mon Nov 2 11:41:40 1998 +@@ -251,14 +251,14 @@ + DBFIX = 0 + + USESTAT = 1 +-SAFEDFT = 0 ++SAFEDFT = 1 + + COLLATE = 1 + +-BINDIR = /usr/staff/jeff/bin +-LIBDIR = /usr/staff/jeff/lout.lib +-DOCDIR = /usr/staff/jeff/lout.doc +-MANDIR = /usr/staff/jeff/lout.man ++BINDIR = @PREFIX@/bin ++LIBDIR = @PREFIX@/share/lout ++DOCDIR = @PREFIX@/share/doc/lout ++MANDIR = @PREFIX@/man/man1 + + LIBFONT = font + LIBMAPS = maps +@@ -274,8 +274,8 @@ + LOC_FR = fr + LOC_DE = de + +-PDF_COMPRESSION = 0 +-ZLIB = ++PDF_COMPRESSION = 1 ++ZLIB = -lz + ZLIBPATH = + + CC = gcc +@@ -312,6 +312,9 @@ + z25.o z26.o z27.o z28.o z29.o z30.o z31.o z32.o \ + z33.o z34.o z35.o z36.o z37.o z38.o z39.o z40.o \ + z41.o z42.o z43.o z44.o z45.o z46.o z47.o z48.o ++ ++all: lout c2lout ++allinstall: install installman installdoc + + lout: $(OBJS) + $(CC) -o lout $(OBJS) $(ZLIB) -lm diff --git a/textproc/lout/patches/patch-ab b/textproc/lout/patches/patch-ab new file mode 100644 index 00000000000..8b76decbf4c --- /dev/null +++ b/textproc/lout/patches/patch-ab @@ -0,0 +1,61 @@ +$NetBSD: patch-ab,v 1.1.1.1 1998/11/09 18:05:10 tsarna Exp $ + +Fixes bogus PDF output. Will be fixed in next release. + +--- z48.c.orig Tue Apr 7 00:41:11 1998 ++++ z48.c Mon Nov 9 11:17:06 1998 +@@ -3038,17 +3038,14 @@ + g_page_h_origin = g_page_v_origin = 0; + g_page_line_width = in_line_width; + +- g_graphics_vars[k_in] = IN; +- g_graphics_vars[k_cm] = CM; +- g_graphics_vars[k_pt] = PT; +- g_graphics_vars[k_em] = EM; + g_graphics_vars[k_xsize] = 0; /* undefined */ + g_graphics_vars[k_ysize] = 0; /* undefined */ + g_graphics_vars[k_xmark] = 0; /* undefined */ + g_graphics_vars[k_ymark] = 0; /* undefined */ +- g_graphics_vars[k_loutf] = 0; /* undefined */ +- g_graphics_vars[k_loutv] = 0; /* undefined */ +- g_graphics_vars[k_louts] = 0; /* undefined */ ++ ++ g_units[k_loutf] = 0; /* undefined */ ++ g_units[k_loutv] = 0; /* undefined */ ++ g_units[k_louts] = 0; /* undefined */ + + g_ET_pending = FALSE; + g_TJ_pending = FALSE; +@@ -3636,17 +3633,25 @@ + /* + write out trailer + */ ++/* uwe: comments can appear in the body only. + if (g_PDF_debug) + fprintf(in_fp, "%%\n%% trailer:\n%%\n"); ++ */ ++ fputs("trailer\n<<\n", in_fp); ++ ++ fprintf(in_fp, "/Size %u\n", g_next_objnum); ++ ++ fputs("/Root ", in_fp); ++ PDFObject_WriteRef(in_fp, catalog_obj_num); ++ fputc('\n', in_fp); + +- fputs("trailer\n" +- "<< ", in_fp); +- fprintf(in_fp, "/Size %u ", g_next_objnum); +- fputs("/Root ", in_fp); PDFObject_WriteRef(in_fp, catalog_obj_num); +- fputs(" /Info ", in_fp); PDFObject_WriteRef(in_fp, info_obj_num); ++ fputs("/Info ", in_fp); ++ PDFObject_WriteRef(in_fp, info_obj_num); ++ fputc('\n', in_fp); + +- fprintf(in_fp, " >>\n" +- "startxref %u\n", xref_start); ++ fprintf(in_fp, ">>\n" ++ "startxref\n" ++ "%u\n", xref_start); + fputs("%%EOF\n", in_fp); + /* + memory deallocation (no need to dispose of the qsave_marking_stack because it's always diff --git a/textproc/lout/pkg/COMMENT b/textproc/lout/pkg/COMMENT new file mode 100644 index 00000000000..ce0f3b55660 --- /dev/null +++ b/textproc/lout/pkg/COMMENT @@ -0,0 +1 @@ +Basser Lout, A TeX/troff-like formatter with PostScript/PDF output diff --git a/textproc/lout/pkg/DESCR b/textproc/lout/pkg/DESCR new file mode 100644 index 00000000000..3291a6849d8 --- /dev/null +++ b/textproc/lout/pkg/DESCR @@ -0,0 +1,18 @@ +THE LOUT DOCUMENT FORMATTING SYSTEM + +Lout is a document formatting system similar in style to LaTeX. It +offers a very full range of features, including PostScript, PDF, and +plain text output, optimal paragraph and page breaking, automatic +hyphenation, PostScript EPS file inclusion and generation, equation +formatting, tables, diagrams, rotation and scaling, sorted indexes, +bibliographic databases, running headers and odd-even pages, automatic +cross referencing, multilingual documents including hyphenation (most +European languages are supported, including Russian), formatting of +C/C++ programs, and more. Lout may be extended by writing definitions +which are much simpler than the equivalent troff of TeX macros. + +Lout is written in highly portable ANSI C and runs on most platforms. +It is distributed under the GNU public license. + +Lout was designed and implemented by Jeffrey H. Kingston (jeff@cs.usyd.edu.au) +of the Basser Department of Computer Science at the University of Sydney. diff --git a/textproc/lout/pkg/PLIST.pre b/textproc/lout/pkg/PLIST.pre new file mode 100644 index 00000000000..f08550ea5fc --- /dev/null +++ b/textproc/lout/pkg/PLIST.pre @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST.pre,v 1.1.1.1 1998/11/09 18:05:10 tsarna Exp $ +bin/lout +bin/c2lout +man/man1/lout.1 +man/man1/c2lout.1 + |