Skip to content

Commit

Permalink
vietnamese/vnpstext: Fix buils with llvm15
Browse files Browse the repository at this point in the history
- Add LICENSE NONE
- Refresh patches
  • Loading branch information
5u623l20 committed Jun 9, 2023
1 parent 89f1d74 commit 874770e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions vietnamese/vnpstext/Makefile
@@ -1,5 +1,6 @@
PORTNAME= vnpstext
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= vietnamese print
MASTER_SITES= ftp://ftp.monash.edu.au/pub/vietnam/unix/
DISTNAME= ${PORTNAME}
Expand All @@ -8,6 +9,8 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= ports@FreeBSD.org
COMMENT= Converts 8-bit VISCII Vietnamese text into PostScript

LICENSE= NONE

CFLAGS+= -I../../include

do-install:
Expand Down
4 changes: 2 additions & 2 deletions vietnamese/vnpstext/files/patch-Makefile
@@ -1,5 +1,5 @@
--- Makefile.orig Thu May 14 21:59:59 1992
+++ Makefile Sat Dec 7 23:15:47 1996
--- Makefile.orig 1992-05-15 04:59:59 UTC
+++ Makefile
@@ -4,7 +4,8 @@

.SUFFIXES: .src .ps .pro
Expand Down
8 changes: 4 additions & 4 deletions vietnamese/vnpstext/files/patch-vnpstext.1V
@@ -1,6 +1,6 @@
--- vnpstext.1V.orig Thu May 14 21:43:57 1992
+++ vnpstext.1V Sun Dec 8 02:13:22 1996
@@ -41,7 +41,7 @@
--- vnpstext.1V.orig 1992-05-15 04:43:57 UTC
+++ vnpstext.1V
@@ -41,7 +41,7 @@ sizes in normal and bold faces, respectively.
.PP
The location of the prolog file can either be
the current directory, or in
Expand All @@ -9,7 +9,7 @@
The latter setting may be overridden by
the environment variable
.I PSLIBDIR.
@@ -113,7 +113,7 @@
@@ -113,7 +113,7 @@ The line length is limited to 1024 characters.
Lines are not wrapped. If a line is too long to
fit across a page width, it is truncated (by the printer).
.SH FILES
Expand Down
12 changes: 6 additions & 6 deletions vietnamese/vnpstext/files/patch-vnpstext.c
@@ -1,6 +1,6 @@
--- ./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 @@
--- vnpstext.c.orig 1992-09-02 21:01:59 UTC
+++ vnpstext.c
@@ -86,7 +86,8 @@ main(ac, av)
dofile(input)
FILE *input;
{
Expand All @@ -10,7 +10,7 @@
register u_char *s;
register int pageno = 1;
register short col = 0;
@@ -95,7 +96,8 @@
@@ -95,7 +96,8 @@ dofile(input)

printf("StartDoc\n");

Expand All @@ -20,12 +20,12 @@
if (!*line) printf("B\n");
else {

@@ -180,7 +182,7 @@
@@ -180,7 +182,7 @@ doprolog(file)
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;
+ return 0;
}

/* filename specified, use it */

0 comments on commit 874770e

Please sign in to comment.