aboutsummaryrefslogtreecommitdiff
path: root/lang/open-cobol
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-08-27 18:42:30 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-08-27 18:42:30 +0000
commit813bfdc2fbdd9465de3c5217222f869aba00d373 (patch)
tree6e621efc026ef45ad65a4b8b501c89ad918fabae /lang/open-cobol
parent516044ed76eb7bf39c0d53f2acfa19452253d67e (diff)
downloadports-813bfdc2fbdd9465de3c5217222f869aba00d373.tar.gz
ports-813bfdc2fbdd9465de3c5217222f869aba00d373.zip
Notes
Diffstat (limited to 'lang/open-cobol')
-rw-r--r--lang/open-cobol/Makefile5
-rw-r--r--lang/open-cobol/distinfo2
-rw-r--r--lang/open-cobol/files/patch-libcob::fileio.c20
-rw-r--r--lang/open-cobol/pkg-plist4
4 files changed, 24 insertions, 7 deletions
diff --git a/lang/open-cobol/Makefile b/lang/open-cobol/Makefile
index b1a7607df55b..689994b4b82d 100644
--- a/lang/open-cobol/Makefile
+++ b/lang/open-cobol/Makefile
@@ -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>
diff --git a/lang/open-cobol/distinfo b/lang/open-cobol/distinfo
index 3694c8845044..0c44b11ad959 100644
--- a/lang/open-cobol/distinfo
+++ b/lang/open-cobol/distinfo
@@ -1 +1 @@
-MD5 (open-cobol-0.20.tar.gz) = ce698bbac587bba95fb43e38e239db5e
+MD5 (open-cobol-0.23.tar.gz) = a253ca8965dd071c517d3860e9730137
diff --git a/lang/open-cobol/files/patch-libcob::fileio.c b/lang/open-cobol/files/patch-libcob::fileio.c
new file mode 100644
index 000000000000..d96315e95d73
--- /dev/null
+++ b/lang/open-cobol/files/patch-libcob::fileio.c
@@ -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);
diff --git a/lang/open-cobol/pkg-plist b/lang/open-cobol/pkg-plist
index 27893181ee92..2538f8f15a2e 100644
--- a/lang/open-cobol/pkg-plist
+++ b/lang/open-cobol/pkg-plist
@@ -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