Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 2004 00:00:13 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/74245: Update port: lang/open-cobol to 0.30
Message-ID:  <20041123000013.3a929e44.tkato432@yahoo.com>
Resent-Message-ID: <200411221510.iAMFAKXT077270@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         74245
>Category:       ports
>Synopsis:       Update port: lang/open-cobol to 0.30
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 22 15:10:19 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.10-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Update to version 0.30

Remove file:
files/patch-cobc::cobc.c
files/patch-config::ltmain.sh
files/patch-lib::Makefile.in
files/patch-libcob::fileio.c
files/patch-libcob::screenio.c

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/lang/open-cobol/Makefile lang/open-cobol/Makefile
--- /usr/ports/lang/open-cobol/Makefile	Sat Jun  5 14:20:50 2004
+++ lang/open-cobol/Makefile	Sun Nov 21 00:02:06 2004
@@ -7,8 +7,7 @@
 #
 
 PORTNAME=	open-cobol
-PORTVERSION=	0.23
-PORTREVISION=	1
+PORTVERSION=	0.30
 CATEGORIES=	lang
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -20,10 +19,10 @@
 
 USE_LIBLTDL=	yes
 USE_GETOPT_LONG=	yes
-GNU_CONFIGURE=	yes
+USE_REINPLACE=	yes
+USE_LIBTOOL_VER=	15
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-CONFIGURE_ARGS=	--with-readline
 INSTALLS_SHLIB=	yes
 
 INFO=		open-cobol
@@ -36,8 +35,15 @@
 PLIST_SUB+=	NLS="@comment "
 .else
 USE_GETTEXT=	yes
-LDFLAGS+=	-lintl
 PLIST_SUB+=	NLS=""
 .endif
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|^SUBDIRS = lib |SUBDIRS = |g' \
+		${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e 's|$$(top_builddir)/lib/libsupport\.a||g' \
+		${WRKSRC}/cobc/Makefile.in
+	@${REINPLACE_CMD} -e 's|"lib/getopt\.h"|<getopt.h>|g' \
+		${WRKSRC}/cobc/cobc.c
 
 .include <bsd.port.mk>
diff -urN /usr/ports/lang/open-cobol/distinfo lang/open-cobol/distinfo
--- /usr/ports/lang/open-cobol/distinfo	Thu Jan 29 20:29:03 2004
+++ lang/open-cobol/distinfo	Sat Nov 20 23:35:44 2004
@@ -1,2 +1,2 @@
-MD5 (open-cobol-0.23.tar.gz) = a253ca8965dd071c517d3860e9730137
-SIZE (open-cobol-0.23.tar.gz) = 658911
+MD5 (open-cobol-0.30.tar.gz) = 8945775abca6703bba0a25a3293f78ac
+SIZE (open-cobol-0.30.tar.gz) = 738437
diff -urN /usr/ports/lang/open-cobol/files/patch-cobc::cobc.c lang/open-cobol/files/patch-cobc::cobc.c
--- /usr/ports/lang/open-cobol/files/patch-cobc::cobc.c	Wed Apr  7 06:02:44 2004
+++ lang/open-cobol/files/patch-cobc::cobc.c	Thu Jan  1 09:00:00 1970
@@ -1,11 +0,0 @@
---- cobc/cobc.c.orig	Thu Jun  5 09:02:15 2003
-+++ cobc/cobc.c	Sun Apr  4 00:32:21 2004
-@@ -36,7 +36,7 @@
- 
- #include "cobc.h"
- #include "tree.h"
--#include "lib/getopt.h"
-+#include <getopt.h>
- 
- 
- /*
diff -urN /usr/ports/lang/open-cobol/files/patch-config::ltmain.sh lang/open-cobol/files/patch-config::ltmain.sh
--- /usr/ports/lang/open-cobol/files/patch-config::ltmain.sh	Sat Jan  4 02:55:27 2003
+++ lang/open-cobol/files/patch-config::ltmain.sh	Thu Jan  1 09:00:00 1970
@@ -1,15 +0,0 @@
---- config/ltmain.sh.orig	Fri Nov 22 17:03:54 2002
-+++ config/ltmain.sh	Thu Dec 12 20:35:02 2002
-@@ -4280,10 +4280,12 @@
- 	fi
- 
- 	# Install the pseudo-library for information purposes.
-+	if /usr/bin/false; then
- 	name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
- 	instname="$dir/$name"i
- 	$show "$install_prog $instname $destdir/$name"
- 	$run eval "$install_prog $instname $destdir/$name" || exit $?
-+	fi
- 
- 	# Maybe install the static library, too.
- 	test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
diff -urN /usr/ports/lang/open-cobol/files/patch-lib::Makefile.in lang/open-cobol/files/patch-lib::Makefile.in
--- /usr/ports/lang/open-cobol/files/patch-lib::Makefile.in	Wed Apr  7 06:02:44 2004
+++ lang/open-cobol/files/patch-lib::Makefile.in	Thu Jan  1 09:00:00 1970
@@ -1,20 +0,0 @@
---- lib/Makefile.in.orig	Thu Jun 12 05:13:50 2003
-+++ lib/Makefile.in	Sun Apr  4 00:28:58 2004
-@@ -175,7 +175,7 @@
- DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
- depcomp = $(SHELL) $(top_srcdir)/config/depcomp
- am__depfiles_maybe = depfiles
--@AMDEP_TRUE@DEP_FILES = $(DEPDIR)/getopt.Po $(DEPDIR)/getopt1.Po \
-+@AMDEP_TRUE@DEP_FILES = \
- @AMDEP_TRUE@	$(DEPDIR)/malloc.Po $(DEPDIR)/memcmp.Po \
- @AMDEP_TRUE@	$(DEPDIR)/realloc.Po
- COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-@@ -215,8 +215,6 @@
- distclean-compile:
- 	-rm -f *.tab.c
- 
--@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getopt.Po@am__quote@
--@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getopt1.Po@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/malloc.Po@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/memcmp.Po@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/realloc.Po@am__quote@
diff -urN /usr/ports/lang/open-cobol/files/patch-libcob::fileio.c lang/open-cobol/files/patch-libcob::fileio.c
--- /usr/ports/lang/open-cobol/files/patch-libcob::fileio.c	Thu Aug 28 03:42:30 2003
+++ lang/open-cobol/files/patch-libcob::fileio.c	Thu Jan  1 09:00:00 1970
@@ -1,20 +0,0 @@
---- 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 -urN /usr/ports/lang/open-cobol/files/patch-libcob::screenio.c lang/open-cobol/files/patch-libcob::screenio.c
--- /usr/ports/lang/open-cobol/files/patch-libcob::screenio.c	Tue Apr 29 08:54:38 2003
+++ lang/open-cobol/files/patch-libcob::screenio.c	Thu Jan  1 09:00:00 1970
@@ -1,10 +0,0 @@
---- libcob/screenio.c.orig	Thu Apr  3 06:02:51 2003
-+++ libcob/screenio.c	Tue Apr 29 04:09:44 2003
-@@ -19,6 +19,7 @@
- 
- #include "config.h"
- 
-+#include <sys/types.h>
- #include <string.h>
- #if HAVE_CURSES_H
- #include <curses.h>
diff -urN /usr/ports/lang/open-cobol/pkg-plist lang/open-cobol/pkg-plist
--- /usr/ports/lang/open-cobol/pkg-plist	Wed Apr  7 13:27:26 2004
+++ lang/open-cobol/pkg-plist	Sat Nov 20 23:45:36 2004
@@ -1,7 +1,7 @@
 bin/cob-config
 bin/cobc
-etc/libcob.conf
 include/libcob.h
+include/libcob/byteswap.h
 include/libcob/call.h
 include/libcob/common.h
 include/libcob/exception.def
@@ -15,4 +15,13 @@
 lib/libcob.so
 lib/libcob.so.1
 %%NLS%%share/locale/ja/LC_MESSAGES/open-cobol.mo
+%%DATADIR%%/config/cobol2002.conf
+%%DATADIR%%/config/cobol85.conf
+%%DATADIR%%/config/default.conf
+%%DATADIR%%/config/ibm.conf
+%%DATADIR%%/config/mf.conf
+%%DATADIR%%/config/mvs.conf
+%%DATADIR%%/config/v023.conf
+@dirrm %%DATADIR%%/config
+@dirrm %%DATADIR%%
 @dirrm include/libcob
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041123000013.3a929e44.tkato432>