- Update to version 0.23
PR: 56039 Submitted by: Ports Fury
This commit is contained in:
@@ -7,8 +7,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= open-cobol
|
||||
PORTVERSION= 0.20
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 0.23
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
@@ -27,4 +26,6 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
CONFIGURE_ARGS= --with-readline
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
INFO= open-cobol
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -1 +1 @@
|
||||
MD5 (open-cobol-0.20.tar.gz) = ce698bbac587bba95fb43e38e239db5e
|
||||
MD5 (open-cobol-0.23.tar.gz) = a253ca8965dd071c517d3860e9730137
|
||||
|
||||
20
lang/open-cobol-devel/files/patch-libcob::fileio.c
Normal file
20
lang/open-cobol-devel/files/patch-libcob::fileio.c
Normal file
@@ -0,0 +1,20 @@
|
||||
--- libcob/fileio.c.orig Wed Jun 11 15:40:20 2003
|
||||
+++ libcob/fileio.c Wed Aug 27 09:57:31 2003
|
||||
@@ -202,13 +202,10 @@
|
||||
else
|
||||
{
|
||||
/* discard input until the next newline */
|
||||
- int c = getc (f->file);
|
||||
- while (c != '\r' && c != '\n' && c != EOF)
|
||||
- c = getc (f->file);
|
||||
- if (c == '\r')
|
||||
- c = getc (f->file);
|
||||
- if (c != '\n' && c != EOF)
|
||||
- ungetc (c, f->file);
|
||||
+ char buff[BUFSIZ];
|
||||
+ while (fgets (buff, BUFSIZ, f->file) !=NULL)
|
||||
+ if (strchr (buff, '\n') != NULL)
|
||||
+ break;
|
||||
}
|
||||
|
||||
memcpy (f->record->data, buff, f->record->size);
|
||||
@@ -1,4 +1,3 @@
|
||||
@comment $FreeBSD$
|
||||
bin/cob-config
|
||||
bin/cobc
|
||||
etc/libcob.conf
|
||||
@@ -12,9 +11,6 @@ include/libcob/numeric.h
|
||||
include/libcob/screenio.h
|
||||
include/libcob/strings.h
|
||||
include/libcob/termio.h
|
||||
@unexec install-info --delete %D/info/open-cobol.info %D/info/dir
|
||||
info/open-cobol.info
|
||||
@exec install-info %D/info/open-cobol.info %D/info/dir
|
||||
lib/libcob.a
|
||||
lib/libcob.so
|
||||
lib/libcob.so.1
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= open-cobol
|
||||
PORTVERSION= 0.20
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 0.23
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
@@ -27,4 +26,6 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
CONFIGURE_ARGS= --with-readline
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
INFO= open-cobol
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -1 +1 @@
|
||||
MD5 (open-cobol-0.20.tar.gz) = ce698bbac587bba95fb43e38e239db5e
|
||||
MD5 (open-cobol-0.23.tar.gz) = a253ca8965dd071c517d3860e9730137
|
||||
|
||||
20
lang/open-cobol/files/patch-libcob::fileio.c
Normal file
20
lang/open-cobol/files/patch-libcob::fileio.c
Normal file
@@ -0,0 +1,20 @@
|
||||
--- libcob/fileio.c.orig Wed Jun 11 15:40:20 2003
|
||||
+++ libcob/fileio.c Wed Aug 27 09:57:31 2003
|
||||
@@ -202,13 +202,10 @@
|
||||
else
|
||||
{
|
||||
/* discard input until the next newline */
|
||||
- int c = getc (f->file);
|
||||
- while (c != '\r' && c != '\n' && c != EOF)
|
||||
- c = getc (f->file);
|
||||
- if (c == '\r')
|
||||
- c = getc (f->file);
|
||||
- if (c != '\n' && c != EOF)
|
||||
- ungetc (c, f->file);
|
||||
+ char buff[BUFSIZ];
|
||||
+ while (fgets (buff, BUFSIZ, f->file) !=NULL)
|
||||
+ if (strchr (buff, '\n') != NULL)
|
||||
+ break;
|
||||
}
|
||||
|
||||
memcpy (f->record->data, buff, f->record->size);
|
||||
@@ -1,4 +1,3 @@
|
||||
@comment $FreeBSD$
|
||||
bin/cob-config
|
||||
bin/cobc
|
||||
etc/libcob.conf
|
||||
@@ -12,9 +11,6 @@ include/libcob/numeric.h
|
||||
include/libcob/screenio.h
|
||||
include/libcob/strings.h
|
||||
include/libcob/termio.h
|
||||
@unexec install-info --delete %D/info/open-cobol.info %D/info/dir
|
||||
info/open-cobol.info
|
||||
@exec install-info %D/info/open-cobol.info %D/info/dir
|
||||
lib/libcob.a
|
||||
lib/libcob.so
|
||||
lib/libcob.so.1
|
||||
|
||||
Reference in New Issue
Block a user