View | Details | Raw Unified | Return to bug 209379
Collapse All | Expand All

(-)./Makefile (-11 / +24 lines)
Lines 3-16 Link Here
3
3
4
PORTNAME=	regutil
4
PORTNAME=	regutil
5
PORTVERSION=	1.26
5
PORTVERSION=	1.26
6
PORTREVISION=	1
6
CATEGORIES=	lang
7
CATEGORIES=	lang
7
MASTER_SITES=	http://home.interlog.com/~ptjm/ http://www.tavi.co.uk/distfiles/
8
MASTER_SITES=	http://home.interlog.com/~ptjm/ \
9
		http://www.ancientgeek.org.uk/distfiles/
8
PKGNAMEPREFIX=	rexx-
10
PKGNAMEPREFIX=	rexx-
9
DISTNAME=	regutil126
11
DISTNAME=	${PORTNAME}${PORTVERSION:S/.//}
10
12
11
MAINTAINER=	bob@eager.cx
13
MAINTAINER=	bob@eager.cx
12
COMMENT=	Implementation of IBM's RexxUtil function library for Regina
14
COMMENT=	Implementation of IBM's RexxUtil function library for Regina
13
15
16
LICENSE=	MPL
17
14
BUILD_DEPENDS=	${LOCALBASE}/include/rexxsaa.h:lang/rexx-regina
18
BUILD_DEPENDS=	${LOCALBASE}/include/rexxsaa.h:lang/rexx-regina
15
19
16
USES=		ncurses zip
20
USES=		ncurses zip
Lines 20-38 Link Here
20
MAKEFILE=	Makefile.bsd
24
MAKEFILE=	Makefile.bsd
21
MAKE_ARGS+=	PLIBS="${LDFLAGS:M-L*} -lncurses"
25
MAKE_ARGS+=	PLIBS="${LDFLAGS:M-L*} -lncurses"
22
26
23
SUB_FILES=	regutil.1 pkg-message
27
SUB_FILES=	regutil.1
28
29
PLIST_FILES=	lib/librexxutil.so \
30
		man/man1/regutil.1.gz
24
31
25
PKGMESSAGE=	${WRKDIR}/pkg-message
32
PORTDOCS=	regutil.pdf
33
PORTEXAMPLES=	*.rex
26
34
27
.include <bsd.port.pre.mk>
35
OPTIONS_DEFINE=	DOCS EXAMPLES
36
37
#include <bsd.options.mk>
28
38
29
do-install:
39
do-install:
30
		${INSTALL_LIB} ${WRKSRC}/librexxutil.so ${STAGEDIR}${PREFIX}/lib
40
		${INSTALL_LIB} ${WRKSRC}/librexxutil.so ${STAGEDIR}${PREFIX}/lib/
31
		${INSTALL_MAN} ${WRKDIR}/regutil.1 ${STAGEDIR}${PREFIX}/man/man1/regutil.1.gz
41
		${INSTALL_MAN} ${WRKDIR}/regutil.1 ${STAGEDIR}${PREFIX}/man/man1/
32
		${INSTALL_MAN} ${WRKDIR}/regutil.1 ${STAGEDIR}${PREFIX}/man/man1/rexxutil.1.gz
33
42
34
post-install:
43
do-install-DOCS-on:
35
		${MKDIR} ${STAGEDIR}${DOCSDIR}
44
		${MKDIR} ${STAGEDIR}${DOCSDIR}
36
		${INSTALL_MAN} ${WRKSRC}/regutil.pdf ${STAGEDIR}${DOCSDIR}
45
		${INSTALL_MAN} ${WRKSRC}/regutil.pdf ${STAGEDIR}${DOCSDIR}/
46
47
do-install-EXAMPLES-on:
48
		${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
49
		${INSTALL_MAN} ${WRKSRC}/*.rex ${STAGEDIR}${EXAMPLESDIR}
37
50
38
.include <bsd.port.post.mk>
51
.include <bsd.port.mk>
(-)./files/patch-Makefile.inc (-5 / +7 lines)
Lines 1-11 Link Here
1
--- Makefile.inc.orig	2010-08-30 23:27:33.000000000 +0100
1
--- Makefile.inc.orig	2003-03-04 20:14:28 UTC
2
+++ Makefile.inc	2010-08-30 23:27:53.000000000 +0100
2
+++ Makefile.inc
3
@@ -26,7 +26,7 @@
3
@@ -26,8 +26,8 @@
4
 DEBUG=-g $(PDEBUG)
4
 DEBUG=-g $(PDEBUG)
5
 OPT=
5
 OPT=
6
 
6
 
7
-REXX_INCLUDE=$(HOME)/regina
7
-REXX_INCLUDE=$(HOME)/regina
8
+REXX_INCLUDE=$(PREFIX)/include
8
-CFLAGS=$(DEBUG) $(OPT) $(PCFLAGS) $(PCDEFS) -I $(REXX_INCLUDE)
9
 CFLAGS=$(DEBUG) $(OPT) $(PCFLAGS) $(PCDEFS) -I $(REXX_INCLUDE)
9
+REXX_INCLUDE=/usr/local/include
10
+CFLAGS+=$(DEBUG) $(OPT) $(PCFLAGS) $(PCDEFS) -I $(REXX_INCLUDE)
10
 LDFLAGS=$(PLDFLAGS)
11
 LDFLAGS=$(PLDFLAGS)
11
 LIBS=$(PLIBS)
12
 LIBS=$(PLIBS)
13
 LIBFILE=librexxutil
(-)./files/patch-inifile.c (+31 lines)
Line 0 Link Here
1
--- inifile.c.orig	2003-02-20 00:04:42 UTC
2
+++ inifile.c
3
@@ -194,7 +194,7 @@ static int read_ini_raw(inif_t fit)
4
    fseek(fit->fp, 0, SEEK_SET);
5
 
6
    while ((oldoff = ftell(fit->fp)), 
7
-          fgets(buf, sizeof(buf), fit->fp) != NULL) {
8
+          fgets((char *) buf, sizeof(buf), fit->fp) != NULL) {
9
 
10
       /* skip leading whitespace */
11
       for (i = 0; !pt[buf[i]]; i++)
12
@@ -204,8 +204,8 @@ static int read_ini_raw(inif_t fit)
13
        * line */
14
       switch (pt[buf[i]]) {
15
          /* errors */
16
-         case CV_RBRACK: n = "closing bracket"; goto oops;
17
-         case CV_EQUALS: n = "equals sign"; goto oops;
18
+         case CV_RBRACK: n = (unsigned char *) "closing bracket"; goto oops;
19
+         case CV_EQUALS: n = (unsigned char *) "equals sign"; goto oops;
20
 
21
          oops:
22
             fprintf(stderr, "oops: line starts with %s: %s\n", n, buf);
23
@@ -284,7 +284,7 @@ static int read_ini_raw(inif_t fit)
24
           *            write anything before the first section */
25
          case CV_EOS:
26
          case CV_COMMENT:
27
-            i = strlen(buf);
28
+            i = strlen((char *) buf);
29
             if (lvt) {
30
                lvt->comment = realloc(lvt->comment, cl + i + 1);
31
                memcpy(lvt->comment+cl, buf, i+1);
(-)./files/patch-regfilesys.c (+65 lines)
Line 0 Link Here
1
--- regfilesys.c.orig	2003-11-03 20:24:14 UTC
2
+++ regfilesys.c
3
@@ -114,7 +114,8 @@ int unmapfile(char *buf, int size);
4
 /* SysFileSearch(target,file,stem, [options]) */
5
 rxfunc(sysfilesearch)
6
 {
7
-    unsigned char *buf, * dptr, *bol, *eol, *eof, *filename, *options,
8
+    char *filename, *options;
9
+    unsigned char *buf, * dptr, *bol, *eol, *eof,
10
                   *lbuf = NULL;
11
     PRXSTRING stem;
12
     RXSTRING target;
13
@@ -141,7 +142,7 @@ rxfunc(sysfilesearch)
14
 
15
     /* map the file into memory. Note that if the OS doesn't support memory-
16
      * mapped I/O, this allocates a buffer and reads the file into it. */
17
-    if (!(buf = mapfile(filename, &len))) {
18
+    if (!(buf = (unsigned char *) mapfile((char *) filename, &len))) {
19
 	rc = 3;
20
     }
21
     else {
22
@@ -195,7 +196,7 @@ rxfunc(sysfilesearch)
23
                     i = eol - bol;
24
                     if (i && bol[i-1] == '\r')
25
                        i--;
26
-		    if (cha_adddummy(array, bol, i))
27
+		    if (cha_adddummy(array, (char *) bol, i))
28
 			rc = 2;
29
 		}
30
 		else {
31
@@ -203,12 +204,12 @@ rxfunc(sysfilesearch)
32
 		    if (!lbuf)
33
 			rc = 2;
34
 		    else {
35
-			i = sprintf(lbuf, "%d:", lines);
36
+			i = sprintf((char *) lbuf, "%d:", lines);
37
                         memcpy(lbuf+i, bol, eol-bol);
38
                         i += eol - bol;
39
                         if (lbuf[i-1] == '\r')
40
                            i--;
41
-			if (cha_addstr(array, lbuf, i))
42
+			if (cha_addstr(array, (char *) lbuf, i))
43
 			    rc = 2;
44
 		    }
45
 		}
46
@@ -222,7 +223,7 @@ rxfunc(sysfilesearch)
47
         if (lbuf)
48
            free(lbuf);
49
 
50
-        unmapfile(buf, len);
51
+        unmapfile((char *) buf, len);
52
     }
53
 
54
     result->strlength = sprintf(result->strptr, "%d", rc);
55
@@ -730,8 +731,8 @@ rxfunc(sysfiletree)
56
 	rc = 2;
57
 
58
     else {
59
-	/* break the list into directory & pattern, so the input can be of
60
-	 * the form /usr/home/ptjm/*.c */
61
+//	break the list into directory & pattern, so the input can be of
62
+//	the form /usr/home/ptjm/*.c
63
 
64
 	dir = pattern;
65
 	pattern = strrchr(dir, '/');
(-)./files/patch-regini.c (+11 lines)
Line 0 Link Here
1
--- regini.c.orig	2004-07-19 00:09:52 UTC
2
+++ regini.c
3
@@ -1002,7 +1002,7 @@ rxfunc(sysgeterrortext)
4
       result->strlength = 0;
5
    }
6
 #else
7
-   if (rcs = strerror(rc)) {
8
+   if ((rcs = strerror(rc))) {
9
       result->strlength = strlen(rcs);
10
       memcpy(result->strptr, rcs, result->strlength);
11
    }
(-)./files/patch-regstem.c (+11 lines)
Line 0 Link Here
1
--- regstem.c.orig	2004-06-15 19:15:06 UTC
2
+++ regstem.c
3
@@ -53,7 +53,7 @@ static int rxstrcasecmp(const PRXSTRING 
4
 {
5
    register int len = min(l->strlength, r->strlength),
6
                 d = l->strlength - r->strlength,
7
-                c = casecmp(l->strptr, r->strptr, len);
8
+                c = casecmp((unsigned char *) l->strptr, (unsigned char *) r->strptr, len);
9
    
10
    return (len && c) ? c : d;
11
 }
(-)./files/patch-regunicode.c (+28 lines)
Line 0 Link Here
1
--- regunicode.c.orig	2003-04-01 20:08:34 UTC
2
+++ regunicode.c
3
@@ -542,10 +542,10 @@ rxfunc(systounicode)
4
    /* for the same reason, perform utf-7 and utf-8 conversions here, rather
5
     * than using iconv() */
6
    else if (cp == CP_UTF7) {
7
-      outs.strlength = u7tou((unsigned short *)outs.strptr,  argv[0].strptr, argv[0].strlength);
8
+      outs.strlength = u7tou((unsigned short *)outs.strptr,  (unsigned char *) argv[0].strptr, argv[0].strlength);
9
    }
10
    else if (cp == CP_UTF8) {
11
-      outs.strlength = u8tou((unsigned short *) outs.strptr, argv[0].strptr, argv[0].strlength);
12
+      outs.strlength = u8tou((unsigned short *) outs.strptr, (unsigned char *) argv[0].strptr, argv[0].strlength);
13
    }
14
 
15
    /* if requesting a specific code page, we need iconv, or we return an
16
@@ -719,10 +719,10 @@ rxfunc(sysfromunicode)
17
    /* for the same reason, perform utf-7 and utf-8 conversions here, rather
18
     * than using iconv() */
19
    else if (cp == CP_UTF7) {
20
-      outs.strlength = utou7(outs.strptr,  (unsigned short *)argv[0].strptr, argv[0].strlength/2);
21
+      outs.strlength = utou7((unsigned char *) outs.strptr,  (unsigned short *)argv[0].strptr, argv[0].strlength/2);
22
    }
23
    else if (cp == CP_UTF8) {
24
-      outs.strlength = utou8(outs.strptr, (unsigned short *)argv[0].strptr, argv[0].strlength/2);
25
+      outs.strlength = utou8((unsigned char *) outs.strptr, (unsigned short *)argv[0].strptr, argv[0].strlength/2);
26
    }
27
 
28
    /* if requesting a specific code page, we need iconv, or we return an
(-)./files/patch-regutil.c (+11 lines)
Line 0 Link Here
1
--- regutil.c.orig	2004-01-16 14:57:12 UTC
2
+++ regutil.c
3
@@ -52,7 +52,7 @@ static void gettimeofday(struct timeval 
4
 
5
 struct {
6
     char * name;
7
-    APIRET (APIENTRY*funcptr)(PUCHAR fname, ULONG argc, PRXSTRING argv, PSZ pSomething, PRXSTRING result);
8
+    APIRET (APIENTRY*funcptr)(PCSZ fname, ULONG argc, PRXSTRING argv, PCSZ pSomething, PRXSTRING result);
9
 } funclist[] = {
10
     {"SYSADDREXXMACRO", sysaddrexxmacro},
11
     {"SYSCLEARREXXMACROSPACE", sysclearrexxmacrospace},
(-)./files/patch-rxproto.h (+11 lines)
Line 0 Link Here
1
--- rxproto.h.orig	2003-05-23 11:05:50 UTC
2
+++ rxproto.h
3
@@ -53,7 +53,7 @@
4
  * to something else, and a pointer to the result string.
5
  * It returns 0 for success, and some other value for failure */
6
 
7
-#define rxfunc(x) APIRET APIENTRY x(PUCHAR fname, ULONG argc, PRXSTRING argv, PSZ pSomething, PRXSTRING result)
8
+#define rxfunc(x) APIRET APIENTRY x(PCSZ fname, ULONG argc, PRXSTRING argv, PCSZ pSomething, PRXSTRING result)
9
 
10
 /* return codes. 22 is rc for invalid call */
11
 #define NOMEMORY 5
(-)./files/patch-rxsupport.c (+11 lines)
Line 0 Link Here
1
--- rxsupport.c.orig	2003-09-10 21:09:44 UTC
2
+++ rxsupport.c
3
@@ -612,7 +612,7 @@ int cha_adddummy(chararray *ca, const ch
4
     }
5
 
6
     ca->array[ca->count].strlength = len;
7
-    ca->array[ca->count++].strptr = (unsigned char *)str;
8
+    ca->array[ca->count++].strptr = (char *)str;
9
 
10
     return 0;
11
 }
(-)./files/pkg-message.in (-5 lines)
Lines 1-5 Link Here
1
================================================================================
2
3
Documentation can be found in %%DOCSDIR%%/regutil.pdf
4
5
================================================================================
(-)./files/regutil.1.in (-1 / +5 lines)
Lines 1-4 Link Here
1
.Dd September 3, 2010
1
.Dd May 8, 2016
2
.Dt REGUTIL 1 CON
2
.Dt REGUTIL 1 CON
3
.Os
3
.Os
4
.Sh NAME
4
.Sh NAME
Lines 11-20 Link Here
11
.Em RexxUtil
11
.Em RexxUtil
12
library provided
12
library provided
13
on IBM systems (e.g. OS/2).
13
on IBM systems (e.g. OS/2).
14
As it stands,
15
.Nm
16
will not work with another REXX interpreter.
14
.Pp
17
.Pp
15
Details of usage are in the full manual, which is normally found at:
18
Details of usage are in the full manual, which is normally found at:
16
.br
19
.br
17
.Pa %%DOCSDIR%%/regutil.pdf
20
.Pa %%DOCSDIR%%/regutil.pdf
21
(if installed).
18
.Sh SEE ALSO
22
.Sh SEE ALSO
19
The original author's web site at
23
The original author's web site at
20
.Em http://pages.interlog.com/~pjtm/
24
.Em http://pages.interlog.com/~pjtm/
(-)./pkg-plist (-4 lines)
Lines 1-4 Link Here
1
lib/librexxutil.so
2
man/man1/regutil.1.gz
3
man/man1/rexxutil.1.gz
4
%%PORTDOCS%%%%DOCSDIR%%/regutil.pdf

Return to bug 209379