diff options
author | xtraeme <xtraeme> | 2004-06-29 02:57:36 +0000 |
---|---|---|
committer | xtraeme <xtraeme> | 2004-06-29 02:57:36 +0000 |
commit | 04d6c3c0a82020387f738958db8809ced5645848 (patch) | |
tree | 44945379a301114badb967fc762aad8c020db3fd /lang/opencobol | |
parent | f0a148d1a13898281437023702cdc13be775f0ec (diff) | |
download | pkgsrc-04d6c3c0a82020387f738958db8809ced5645848.tar.gz |
Initial import of opencobol-0.23.
OpenCOBOL is an open-source COBOL compiler, which translates COBOL
programs to C code and compiles it using GCC.
Diffstat (limited to 'lang/opencobol')
-rw-r--r-- | lang/opencobol/DESCR | 2 | ||||
-rw-r--r-- | lang/opencobol/Makefile | 34 | ||||
-rw-r--r-- | lang/opencobol/PLIST | 22 | ||||
-rw-r--r-- | lang/opencobol/distinfo | 7 | ||||
-rw-r--r-- | lang/opencobol/patches/patch-aa | 22 | ||||
-rw-r--r-- | lang/opencobol/patches/patch-ab | 12 | ||||
-rw-r--r-- | lang/opencobol/patches/patch-ac | 38 |
7 files changed, 137 insertions, 0 deletions
diff --git a/lang/opencobol/DESCR b/lang/opencobol/DESCR new file mode 100644 index 00000000000..3971d35ac67 --- /dev/null +++ b/lang/opencobol/DESCR @@ -0,0 +1,2 @@ +OpenCOBOL is an open-source COBOL compiler, which translates COBOL +programs to C code and compiles it using GCC. diff --git a/lang/opencobol/Makefile b/lang/opencobol/Makefile new file mode 100644 index 00000000000..be7755881e0 --- /dev/null +++ b/lang/opencobol/Makefile @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/06/29 02:57:36 xtraeme Exp $ +# + +DISTNAME= open-cobol-0.23 +CATEGORIES= lang +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=open-cobol/} + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://open-cobol.sourceforge.net/ +COMMENT= Open-source COBOL compiler + +BUILD_USES_MSGFMT= yes + +GNU_CONFIGURE= yes +USE_BUILDLINK3= yes +USE_LIBTOOL= yes +USE_PKGINSTALL= yes +USE_PKGLOCALEDIR= yes + +INFO_FILES= open-cobol.info + +CONFIGURE_ARGS+= --with-readline +CONFIGURE_ARGS+= --with-lfs + +EGDIR= ${PREFIX}/share/examples/${PKGBASE} +CONF_FILES= ${EGDIR}/libconf.conf ${PKG_SYSCONFDIR}/libconf.conf + +.include "../../devel/gettext-lib/buildlink3.mk" +.include "../../devel/gmp/buildlink3.mk" +.include "../../devel/libtool/buildlink3.mk" +.include "../../devel/ncurses/buildlink3.mk" +.include "../../devel/readline/buildlink3.mk" +.include "../../mk/bdb.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/lang/opencobol/PLIST b/lang/opencobol/PLIST new file mode 100644 index 00000000000..9ba874f28d9 --- /dev/null +++ b/lang/opencobol/PLIST @@ -0,0 +1,22 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/06/29 02:57:36 xtraeme Exp $ +bin/cob-config +bin/cobc +include/libcob.h +include/libcob/call.h +include/libcob/common.h +include/libcob/exception.def +include/libcob/fileio.h +include/libcob/move.h +include/libcob/numeric.h +include/libcob/screenio.h +include/libcob/strings.h +include/libcob/termio.h +lib/libcob.a +lib/libcob.la +lib/libcob.so +lib/libcob.so.1 +lib/libcob.so.1.0 +share/examples/open-cobol/libcob.conf +${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/open-cobol.mo +@dirrm share/examples/open-cobol +@dirrm include/libcob diff --git a/lang/opencobol/distinfo b/lang/opencobol/distinfo new file mode 100644 index 00000000000..25cbc225527 --- /dev/null +++ b/lang/opencobol/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/06/29 02:57:36 xtraeme Exp $ + +SHA1 (open-cobol-0.23.tar.gz) = 52ce50e80ba62148fbbf622232745f528f33c61d +Size (open-cobol-0.23.tar.gz) = 658911 bytes +SHA1 (patch-aa) = 801c5c3ff8ff4dd437322bd1065d8b8c4b72ff31 +SHA1 (patch-ab) = 845d386051dd3f73dca44e5de2e4eb53e280090c +SHA1 (patch-ac) = 26dc26a4610fe714ef0d46a3a348ef83ea29b705 diff --git a/lang/opencobol/patches/patch-aa b/lang/opencobol/patches/patch-aa new file mode 100644 index 00000000000..acfc4670af6 --- /dev/null +++ b/lang/opencobol/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/06/29 02:57:36 xtraeme Exp $ + +--- 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/opencobol/patches/patch-ab b/lang/opencobol/patches/patch-ab new file mode 100644 index 00000000000..6848300b9b6 --- /dev/null +++ b/lang/opencobol/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/06/29 02:57:37 xtraeme Exp $ + +--- 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 --git a/lang/opencobol/patches/patch-ac b/lang/opencobol/patches/patch-ac new file mode 100644 index 00000000000..72c77a8f310 --- /dev/null +++ b/lang/opencobol/patches/patch-ac @@ -0,0 +1,38 @@ +$NetBSD: patch-ac,v 1.1.1.1 2004/06/29 02:57:37 xtraeme Exp $ + +--- Makefile.in.orig 2004-06-29 04:52:23.000000000 +0200 ++++ Makefile.in 2004-06-29 04:54:22.000000000 +0200 +@@ -135,6 +135,7 @@ + build_os = @build_os@ + build_vendor = @build_vendor@ + datadir = @datadir@ ++examplesdir = @datadir@/examples/@PACKAGE@ + exec_prefix = @exec_prefix@ + host = @host@ + host_alias = @host_alias@ +@@ -263,20 +264,20 @@ + sysconfDATA_INSTALL = $(INSTALL_DATA) + install-sysconfDATA: $(sysconf_DATA) + @$(NORMAL_INSTALL) +- $(mkinstalldirs) $(DESTDIR)$(sysconfdir) ++ $(mkinstalldirs) $(DESTDIR)$(examplesdir) + @list='$(sysconf_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ +- echo " $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f"; \ +- $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f; \ ++ echo " $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(examplesdir)/$$f"; \ ++ $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(examplesdir)/$$f; \ + done + + uninstall-sysconfDATA: + @$(NORMAL_UNINSTALL) + @list='$(sysconf_DATA)'; for p in $$list; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ +- echo " rm -f $(DESTDIR)$(sysconfdir)/$$f"; \ +- rm -f $(DESTDIR)$(sysconfdir)/$$f; \ ++ echo " rm -f $(DESTDIR)$(examplesdir)/$$f"; \ ++ rm -f $(DESTDIR)$(examplesdir)/$$f; \ + done + includeHEADERS_INSTALL = $(INSTALL_HEADER) + install-includeHEADERS: $(include_HEADERS) |