Date: Tue, 29 Jul 2014 15:22:16 +0000 (UTC) From: Adam Weinberger <adamw@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r363339 - in head/vietnamese: vnpstext/files vnroff/files Message-ID: <201407291522.s6TFMGT7041845@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adamw Date: Tue Jul 29 15:22:16 2014 New Revision: 363339 URL: http://svnweb.freebsd.org/changeset/ports/363339 QAT: https://qat.redports.org/buildarchive/r363339/ Log: Rename vietnamese/ patch-xy patches to reflect the files they modify. Added: head/vietnamese/vnpstext/files/patch-Makefile - copied unchanged from r363316, head/vietnamese/vnpstext/files/patch-01 head/vietnamese/vnpstext/files/patch-lib__vntype__Makefile - copied unchanged from r363316, head/vietnamese/vnpstext/files/patch-02 head/vietnamese/vnpstext/files/patch-vnpstext.1V - copied unchanged from r363316, head/vietnamese/vnpstext/files/patch-04 head/vietnamese/vnpstext/files/patch-vnpstext.c - copied unchanged from r363316, head/vietnamese/vnpstext/files/patch-03 head/vietnamese/vnroff/files/patch-vnroff.1 - copied unchanged from r363316, head/vietnamese/vnroff/files/patch-02 head/vietnamese/vnroff/files/patch-vnroff.c - copied unchanged from r363316, head/vietnamese/vnroff/files/patch-01 Deleted: head/vietnamese/vnpstext/files/patch-01 head/vietnamese/vnpstext/files/patch-02 head/vietnamese/vnpstext/files/patch-03 head/vietnamese/vnpstext/files/patch-04 head/vietnamese/vnroff/files/patch-01 head/vietnamese/vnroff/files/patch-02 Copied: head/vietnamese/vnpstext/files/patch-Makefile (from r363316, head/vietnamese/vnpstext/files/patch-01) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/vietnamese/vnpstext/files/patch-Makefile Tue Jul 29 15:22:16 2014 (r363339, copy of r363316, head/vietnamese/vnpstext/files/patch-01) @@ -0,0 +1,12 @@ +--- Makefile.orig Thu May 14 21:59:59 1992 ++++ Makefile Sat Dec 7 23:15:47 1996 +@@ -4,7 +4,8 @@ + + .SUFFIXES: .src .ps .pro + +-DEFAULT_PSLIBDIR = "\"/usr/local/lib/ps\"" ++#DEFAULT_PSLIBDIR = "\"/usr/local/lib/ps\"" ++DEFAULT_PSLIBDIR = "\"$(DESTDIR)$(PREFIX)/share/vn-fonts\"" + + SHELL = /bin/sh + VNLIBDIR= ../lib Copied: head/vietnamese/vnpstext/files/patch-lib__vntype__Makefile (from r363316, head/vietnamese/vnpstext/files/patch-02) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/vietnamese/vnpstext/files/patch-lib__vntype__Makefile Tue Jul 29 15:22:16 2014 (r363339, copy of r363316, head/vietnamese/vnpstext/files/patch-02) @@ -0,0 +1,11 @@ +--- ../lib/vntype/Makefile.orig Sat Jun 6 00:05:40 1992 ++++ ../lib/vntype/Makefile Sat Dec 7 23:17:27 1996 +@@ -15,7 +15,7 @@ + #FLAGS = -DNOANSI_C + CFLAGS = $(FLAGS) $(INC) + CC = cc +-CPP = /lib/cpp ++CPP = cpp + + .c.o: + $(CC) $(CFLAGS) -c $*.c Copied: head/vietnamese/vnpstext/files/patch-vnpstext.1V (from r363316, head/vietnamese/vnpstext/files/patch-04) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/vietnamese/vnpstext/files/patch-vnpstext.1V Tue Jul 29 15:22:16 2014 (r363339, copy of r363316, head/vietnamese/vnpstext/files/patch-04) @@ -0,0 +1,20 @@ +--- vnpstext.1V.orig Thu May 14 21:43:57 1992 ++++ vnpstext.1V Sun Dec 8 02:13:22 1996 +@@ -41,7 +41,7 @@ + .PP + The location of the prolog file can either be + the current directory, or in +-.I /usr/local/lib/ps. ++.I /usr/local/share/vn-fonts. + The latter setting may be overridden by + the environment variable + .I PSLIBDIR. +@@ -113,7 +113,7 @@ + Lines are not wrapped. If a line is too long to + fit across a page width, it is truncated (by the printer). + .SH FILES +-.IP \fI/usr/local/lib/ps:\fP 20m ++.IP \fI/usr/local/share/vn-fonts:\fP 20m + default prolog search directory + .IP \fIinitcour.ps:\fP 20m + Vietnamese Courier font file to download to the printer. Copied: head/vietnamese/vnpstext/files/patch-vnpstext.c (from r363316, head/vietnamese/vnpstext/files/patch-03) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/vietnamese/vnpstext/files/patch-vnpstext.c Tue Jul 29 15:22:16 2014 (r363339, copy of r363316, head/vietnamese/vnpstext/files/patch-03) @@ -0,0 +1,31 @@ +--- ./vnpstext.c.orig 1992-09-02 23:01:59.000000000 +0200 ++++ ./vnpstext.c 2013-05-27 16:27:32.390245389 +0200 +@@ -86,7 +86,8 @@ + dofile(input) + FILE *input; + { +- u_char line[1024]; ++#define LINESIZE 1024 ++ u_char line[LINESIZE]; + register u_char *s; + register int pageno = 1; + register short col = 0; +@@ -95,7 +96,8 @@ + + printf("StartDoc\n"); + +- while (gets(line)) { ++ while (fgets(line, LINESIZE, stdin)) { ++ if (line[ strlen(line) - 1 ] == '\n') line[ strlen(line) - 1 ] = '\0'; + if (!*line) printf("B\n"); + else { + +@@ -180,7 +182,7 @@ + printf("/S{Lcheck count{gsave show grestore}repeat 0 ld rmoveto}def\n"); + printf("/L{Lcheck ld mul 0 exch rmoveto}def\n"); + printf("/B{Lcheck 0 ld rmoveto}def\n"); +- return; ++ return NULL; + } + + /* filename specified, use it */ Copied: head/vietnamese/vnroff/files/patch-vnroff.1 (from r363316, head/vietnamese/vnroff/files/patch-02) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/vietnamese/vnroff/files/patch-vnroff.1 Tue Jul 29 15:22:16 2014 (r363339, copy of r363316, head/vietnamese/vnroff/files/patch-02) @@ -0,0 +1,75 @@ +--- vnroff.1.orig Tue Nov 27 17:28:57 2001 ++++ vnroff.1 Tue Nov 27 17:29:35 2001 +@@ -1,21 +1,21 @@ + .TH vnroff 1 + .SH NAME +-vnroff \- Vietnamese pre-processor for troff ++vnroff \- Vietnamese pre-processor for groff + .SH SYNTAX + .B vnroff +-filename | troff [\fItroff-options\fR] ++filename | groff [\fIgroff-options\fR] + .SH DESCRIPTION +-.NXB "troff command" ++.NXB "groff command" + This program processes a text file with special Vietnamese character +-sequences giving an output suitable for +-.I troff(1) ++sequences (VIQR syntax) giving an output suitable for ++.I groff(1) + processing. + The output should work for all point sizes supported by +-.I troff(1) ++.I groff(1) + .sp + The default diacritical marks are defined as: + .br +- Dau_Sac \\ ++ Dau_Sac \' + Dau_Huyen ` + Dau_Hoi ? + Dau_Nga ~ +@@ -23,7 +23,7 @@ + Dau_Mu ^ + Dau_Trang ( + Dau_Rau + +- Escape_Symbol # ++ Escape_Symbol \\ + .sp + .SH SPELLING RULES + Only one diacritical mark: +@@ -34,16 +34,31 @@ + .br + vowel followed by Dau_Mu, Dau_Trang, Dau_Rau then other symbols. + .sp +-DD and dd: self-explanatory, you have to type DD or dd, ++DD and dd: self-explanatory, + .br +- Dd or dD will not work. You can change the code to ignore this. ++ the resulting case is the same as the first character of the sequence. + .sp + The Escape_Symbol is provided to avoid the confusion between the + diacritical marks and end-of-sentence symbols. + .br + i.e: the question Anh ddi dda^u? + .br +- should be typed Anh ddi dda^u#? ++ should be typed Anh ddi dda^u\\? ++.SH SEE ALSO ++groff(1), ++troff(1) ++.SH STANDARDS ++Vietnamese Standard Code for Information Interchange (VISCII version 1.1, 1992) ++<Viet-Std@Haydn.Stanford.EDU> http://www.vietstd.org/. ++.PP ++RFC 1456 Vietnamese Standardization Working Group, ++"Conventions for Encoding the Vietnamese Language ++.br ++VISCII: VIetnamese Standard Code for Information Interchange ++.br ++VIQR: VIetnamese Quoted-Readable Specification Revision 1.1", ++.br ++May 1993. + .SH AUTHORS + Written in Pascal by Hu+~u (University of California at Berkeley). + Converted to C & modified by Tra^`n H. Nha^n (Concurrent Computer). Copied: head/vietnamese/vnroff/files/patch-vnroff.c (from r363316, head/vietnamese/vnroff/files/patch-01) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/vietnamese/vnroff/files/patch-vnroff.c Tue Jul 29 15:22:16 2014 (r363339, copy of r363316, head/vietnamese/vnroff/files/patch-01) @@ -0,0 +1,52 @@ +--- vnroff.c.orig Sat May 20 11:32:08 2000 ++++ vnroff.c Sat May 20 11:52:54 2000 +@@ -19,7 +19,7 @@ + * #define Dau_Mu '^' * + * #define Dau_Trang '(' * + * #define Dau_Rau '+' * +- * #define Escape_Symbol '#' * ++ * #define Escape_Symbol '\\' * + * * + * Change them to any symbol you are comfortable with. * + * * +@@ -29,8 +29,8 @@ + * 2 diacritical marks: vowel followed by Dau_Mu, Dau_Trang, Dau_Rau * + * then other symbols, i.e: a^' o+~ a(` ... * + * * +- * DD and dd: self-explanatory, you have to type DD or dd, Dd or dD * +- * will not work. You can change the code to ignore this. * ++ * DD and dd: self-explanatory, the resulting case is the same as the * ++ * first character of [Dd][Dd]. * + * * + * The Escape_Symbol is provided to avoid the confusion between the * + * diacritical marks and end-of-sentence symbols (. ; ? ! ...) * +@@ -54,7 +54,7 @@ + #define Dau_Mu '^' + #define Dau_Trang '(' + #define Dau_Rau '+' +-#define Escape_Symbol '#' ++#define Escape_Symbol '\\' + + #define NON 0 /* ^ as in a^ */ + #define RAU 1 /* + as in u+, o+ */ +@@ -308,7 +308,7 @@ + int ch,nextch,loai; + + if (argc < 2) { +- printf("Usage: vpp filename\n"); ++ printf("Usage: vnroff filename\n"); + exit(0); + } + if ((infile = fopen(argv[1],"r")) == NULL) { +@@ -344,9 +344,9 @@ + else + putchar(ch); + } +- else if (ch == 'D' || ch == 'd') { /* take care DD, dd */ ++ else if (toupper(ch) == 'D') { /* take care DD, dd */ + putchar(ch); +- if (nextchar() == ch) { ++ if (toupper(nextchar()) == toupper(ch)) { + getc(infile); + if (ch == 'd') + Move(0.30,0.35,'-');
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407291522.s6TFMGT7041845>