Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2002 05:32:06 +0900
From:      KATO Tsuguru <tkato@prontomail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/46307: Update port: lang/open-cobol to 0.10
Message-ID:  <20021217053206.091ee7d2.tkato@prontomail.com>

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

>Number:         46307
>Category:       ports
>Synopsis:       Update port: lang/open-cobol to 0.10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 16 12:40:09 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.7-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Update to version 0.10

New file:
files/patch-config::ltmain.sh

Remove file:
files/patch-fileio.h
files/patch-ltmain.sh

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/lang/open-cobol/Makefile lang/open-cobol/Makefile
--- /usr/ports/lang/open-cobol/Makefile	Wed Nov 20 23:45:58 2002
+++ lang/open-cobol/Makefile	Fri Dec 13 02:10:09 2002
@@ -7,30 +7,30 @@
 #
 
 PORTNAME=	open-cobol
-PORTVERSION=	0.9.7
-PORTREVISION=	1
+PORTVERSION=	0.10
 CATEGORIES=	lang
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
 
 MAINTAINER=	ports@FreeBSD.org
 
-LIB_DEPENDS=	db4.0:${PORTSDIR}/databases/db4 \
-		intl.4:${PORTSDIR}/devel/gettext \
+BUILD_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkgconfig
+LIB_DEPENDS=	intl.4:${PORTSDIR}/devel/gettext \
 		gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
 		ltdl.1:${PORTSDIR}/devel/libtool \
 		gmp.6:${PORTSDIR}/math/libgmp4
+RUN_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkgconfig
 
-USE_BISON=	yes
 USE_REINPLACE=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
-		LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt -lintl"
+		LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
 CONFIGURE_ARGS=	--with-readline
 INSTALLS_SHLIB=	yes
 
 post-patch:
-	@${REINPLACE_CMD} -e "s|-ldb|-ldb4|g" ${WRKSRC}/configure
+	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
+		's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g'
 
 .include <bsd.port.mk>
diff -urN /usr/ports/lang/open-cobol/distinfo lang/open-cobol/distinfo
--- /usr/ports/lang/open-cobol/distinfo	Tue Aug  6 22:09:45 2002
+++ lang/open-cobol/distinfo	Thu Dec 12 20:00:35 2002
@@ -1 +1 @@
-MD5 (open-cobol-0.9.7.tar.gz) = 399a9cf4f6cf8226ba6b8e424df56e2e
+MD5 (open-cobol-0.10.tar.gz) = 613ccc8415e591eab1f42f9e324c24df
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	Thu Jan  1 09:00:00 1970
+++ lang/open-cobol/files/patch-config::ltmain.sh	Thu Dec 12 20:35:17 2002
@@ -0,0 +1,15 @@
+--- 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-fileio.h lang/open-cobol/files/patch-fileio.h
--- /usr/ports/lang/open-cobol/files/patch-fileio.h	Tue Aug  6 22:09:46 2002
+++ lang/open-cobol/files/patch-fileio.h	Thu Jan  1 09:00:00 1970
@@ -1,11 +0,0 @@
---- libcob/fileio.h.orig	Tue Aug  6 15:19:11 2002
-+++ libcob/fileio.h	Tue Aug  6 15:19:18 2002
-@@ -21,7 +21,7 @@
- #define COB_FILEIO_H
- 
- #include <stdio.h>
--#include <db.h>
-+#include <db4/db.h>
- #include <libcob/common.h>
- 
- #define COB_EQ	1 	/* x == y */
diff -urN /usr/ports/lang/open-cobol/files/patch-ltmain.sh lang/open-cobol/files/patch-ltmain.sh
--- /usr/ports/lang/open-cobol/files/patch-ltmain.sh	Wed Nov 20 22:00:57 2002
+++ lang/open-cobol/files/patch-ltmain.sh	Thu Jan  1 09:00:00 1970
@@ -1,41 +0,0 @@
---- ltmain.sh.orig	Thu May 16 15:14:23 2002
-+++ ltmain.sh	Sat Nov  9 18:07:04 2002
-@@ -1043,14 +1043,14 @@
- 	    # These systems don't actually have a C library (as such)
- 	    test "X$arg" = "X-lc" && continue
- 	    ;;
--	  *-*-openbsd*)
-+	  *-*-openbsd* | *-*-freebsd*)
- 	    # Do not include libc due to us having libc/libc_r.
- 	    test "X$arg" = "X-lc" && continue
- 	    ;;
- 	  esac
- 	 elif test "X$arg" = "X-lc_r"; then
- 	  case $host in
--	  *-*-openbsd*)
-+	  *-*-openbsd* | *-*-freebsd*)
- 	    # Do not include libc_r directly, use -pthread flag.
- 	    continue
- 	    ;;
-@@ -2441,7 +2441,7 @@
- 	  *-*-netbsd*)
- 	    # Don't link with libc until the a.out ld.so is fixed.
- 	    ;;
--	  *-*-openbsd*)
-+	  *-*-openbsd* | *-*-freebsd*)
- 	    # Do not include libc due to us having libc/libc_r.
- 	    ;;
- 	  *)
-@@ -4210,10 +4210,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/pkg-plist lang/open-cobol/pkg-plist
--- /usr/ports/lang/open-cobol/pkg-plist	Wed Nov 20 23:45:58 2002
+++ lang/open-cobol/pkg-plist	Thu Dec 12 20:24:35 2002
@@ -1,17 +1,15 @@
 bin/cob-config
 bin/cobc
 bin/cobpp
-etc/open-cobol/libcob.conf
+etc/libcob.conf
 include/libcob.h
 include/libcob/call.h
-include/libcob/cobconfig.h
 include/libcob/common.h
 include/libcob/fileio.h
 include/libcob/move.h
 include/libcob/numeric.h
 include/libcob/screenio.h
 include/libcob/strings.h
-include/libcob/support.h
 include/libcob/termio.h
 @unexec install-info --delete %D/info/open-cobol.info %D/info/dir
 info/open-cobol.info
@@ -19,7 +17,6 @@
 lib/libcob.a
 lib/libcob.so
 lib/libcob.so.0
-share/aclocal/cob.m4
+libdata/pkgconfig/cob.pc
 share/locale/ja/LC_MESSAGES/open-cobol.mo
 @dirrm include/libcob
-@dirrm etc/open-cobol
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021217053206.091ee7d2.tkato>