summaryrefslogtreecommitdiff
path: root/devel/ftnchek
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2001-03-15 23:48:22 +0000
committerjtb <jtb@pkgsrc.org>2001-03-15 23:48:22 +0000
commit3981191ce40cdd3e690ecf6d5b82e5928cd7abc1 (patch)
treed68de655b0f8b14348afb3ff5c06de1ea09b1ace /devel/ftnchek
parentd268bd38701cb912c5d27d45cff4849a15862ee3 (diff)
downloadpkgsrc-3981191ce40cdd3e690ecf6d5b82e5928cd7abc1.tar.gz
Updated to ftnchek-3.0.3. Use ${MASTER_SITE_SUNSITE} in preference to
Netlib (since they use version numbers). Ftnchek Version 3.0 Patch Level 3 March, 2001 Changes made from patch 2 to patch 3: 1. Fixed two bugs in dcl2inc: Modified dcl2inc itself to recognize declarations in the new free source form. Also changed the format of output from -makedcls option to fix a bug that caused dcl2inc to omit namelist declarations from the .dcn file produced for any program containing both namelist and common declarations. Both of these bug fixes were kindly provided by Manfred Schwarb. 2. Updated MS Developer Studio project files to reflect the new source configuration. These files were kindly provided by Gunnar Duus. 3. Added code due to Michael Taeschner and provided by Stefan Deutscher to expand wildcard arguments under OS/2 or DOS with the EMX library. 4. Fixed Makefile so it conforms to autoconf standards on configuring lispdir, where the emacs ftnchek-mode lisp file ftnchek.el is installed. Formerly, the configure script searched for an emacs/site-lisp directory on the system, and hard-coded it into Makefile. Now lispdir defaults to '${datadir}/emacs/site-lisp' where datadir defaults to '${prefix}/share' and prefix defaults to '/usr/local'. If the lispdir directory does not exist when "make install" is done, ftnchek.el will not be installed. Hopefully, in most cases this will be because emacs is not installed on the system, in which case ftnchek.el is not needed. However, if the emacs/site-lisp directory is not located in the default location, e.g. it is in /usr/share instead of /usr/local/share, you should either run configure with the option '--datadir=/usr/share', or else do make install with the option 'datadir=/usr/share'. Changes made from patch 1 to patch 2: 1. Fixed a bug: statements like READ 123, X or PRINT 123, X did not register the use of the format label and so the label might be incorrectly reported as defined but not used. 2. Revised the format of comment lines in declaration files (generated by -makedcls option). The Begin Module and End Module comments were changed to accommodate longer file names. Formerly any file name longer than 12 characters was truncated on the left in the comment. This would cause dcl2inc to generate an incorrect include file name from the declaration file. Now file names up to 25 characters can be accommodated. Another format change that was made is that the path to the file is no longer included in the comment with the file name. Also, the description of the makedcls options, formerly located in the Begin Module comment, is moved to a separate comment. Thanks go to Manfred Schwarb of ETH Zurich for providing this revision. Note that these format changes affect only the comment lines, not the Fortran content of the declarations. The changes are significant only when using dcl2inc or another such program that processes declarations files and pays attention to the comments. 3. Changed the form of type-mismatch warnings so that instead of simply identifying an item as "expr" or "const", the portion of source code corresponding to it is also given. For instance, in average.f, previously a warning was given as Warning near line 16 col 20 file average.f: integer quotient expr converted to real The new form of the warning is Warning near line 16 col 20 file average.f: integer quotient expr SUM/COUNT converted to real 4. Suppressed warnings (controlled by -truncation flag) about assigning a longer integer to a shorter integer, if the longer integer is a small literal constant (specifically, less than 128). For instance, if N is declared as INTEGER*2, the assignment N=1 will no longer generate a warning that a regular integer is being truncated to a shorter one. Fortran 77 has no standard way to specify a short integer literal constant, so there would be no way for the programmer to write this assignment with a constant that matches the variable's declared size. This type of warning is not suppressed if the longer integer is a parameter, since in this case it could be given the matching size. There is also no suppression of warnings in the analogous situation for reals since there is a way to write real constants denoting their precision. 5. Fixed minor problems with Makefile install target: creating bindir, libdir and mandir if they don't exist, and including the optional .exe extension on executable for those OSes that need it. Changes made from the initial release in patch 1: 1. Fixed a family of bugs that caused ftnchek to crash due to a segmentation violation on certain illegal programs that used an identifier in incompatible ways, e.g. defined as a parameter and called as a subroutine. 2. Added option -makedcls=free-form to produce the declarations file in free source form: -- comment character is ! -- continuation is indicated by & at end of line -- declarations are indented by 2 cols instead of 6 -- max continuation lines is 39 instead of 19 -- blanks are removed from within numeric parameter values This is the default mode for declarations if the input source is free-form. 3. Fixed a bug in -makedcls action that caused the declarations to be sent to standard output instead of a file if one used the option-list form of this flag instead of the numeric form, and did not include "declarations" explicitly in the list. 4. Remedied omission of a description in the documentation of the new -source options fixed-form and free-form.
Diffstat (limited to 'devel/ftnchek')
-rw-r--r--devel/ftnchek/Makefile27
-rw-r--r--devel/ftnchek/files/md54
-rw-r--r--devel/ftnchek/files/patch-sum4
-rw-r--r--devel/ftnchek/patches/patch-aa52
4 files changed, 41 insertions, 46 deletions
diff --git a/devel/ftnchek/Makefile b/devel/ftnchek/Makefile
index f61379be3d4..b6e0db74d54 100644
--- a/devel/ftnchek/Makefile
+++ b/devel/ftnchek/Makefile
@@ -1,21 +1,18 @@
-# $NetBSD: Makefile,v 1.3 2001/02/16 14:38:24 wiz Exp $
-#
+# $NetBSD: Makefile,v 1.4 2001/03/15 23:48:22 jtb Exp $
-DISTNAME= ftnchek
-PKGNAME= ftnchek-3.0.0
-CATEGORIES= devel
-MASTER_SITES= ftp://ftp.netlib.org/fortran/ \
- ftp://netlib.bell-labs.com/netlib/fortran/ \
- ftp://www.hensa.ac.uk/mirrors/netlib/fortran/
-EXTRACT_SUFX= .tgz
+DISTNAME= ftnchek-3.0.3
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SUNSITE:=devel/lang/fortran/}
-MAINTAINER= jasontd@indigo.ie
-HOMEPAGE= http://www.dsm.fordham.edu/~ftnchek
-COMMENT= Static analyzer for Fortran programs
+MAINTAINER= jtb@netbsd.org
+HOMEPAGE= http://www.dsm.fordham.edu/~ftnchek
+COMMENT= Static analyzer for Fortran programs
-WRKSRC= ${WRKDIR}/${PKGNAME}
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --libdir=${PREFIX}/libexec
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+=--libdir=${PREFIX}/libexec
+
+pre-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ftnchek
diff --git a/devel/ftnchek/files/md5 b/devel/ftnchek/files/md5
index a35cdbcbafe..26e3b14c468 100644
--- a/devel/ftnchek/files/md5
+++ b/devel/ftnchek/files/md5
@@ -1,3 +1,3 @@
-$NetBSD: md5,v 1.1.1.1 2000/11/06 18:11:40 wennmach Exp $
+$NetBSD: md5,v 1.2 2001/03/15 23:48:23 jtb Exp $
-MD5 (ftnchek.tgz) = efbd686e1a35d0fb3a4dd237f05f23ce
+SHA1 (ftnchek-3.0.3.tar.gz) = e85f28a3cff4b44ff14da06edde221a1a4b421c8
diff --git a/devel/ftnchek/files/patch-sum b/devel/ftnchek/files/patch-sum
index 1315f95c554..760ebc3448e 100644
--- a/devel/ftnchek/files/patch-sum
+++ b/devel/ftnchek/files/patch-sum
@@ -1,3 +1,3 @@
-$NetBSD: patch-sum,v 1.1 2000/12/08 21:00:57 jtb Exp $
+$NetBSD: patch-sum,v 1.2 2001/03/15 23:48:23 jtb Exp $
-MD5 (patch-aa) = 3b37b10232a6df1f53aae8e26060400f
+SHA1 (patch-aa) = c0594e830575602b70e26385c3b3eba3e99577df
diff --git a/devel/ftnchek/patches/patch-aa b/devel/ftnchek/patches/patch-aa
index 5afbefa0aad..493e4126930 100644
--- a/devel/ftnchek/patches/patch-aa
+++ b/devel/ftnchek/patches/patch-aa
@@ -1,31 +1,29 @@
-$NetBSD: patch-aa,v 1.1 2000/12/08 21:00:57 jtb Exp $
+$NetBSD: patch-aa,v 1.2 2001/03/15 23:48:23 jtb Exp $
---- Makefile.in.orig Mon Oct 2 12:56:30 2000
-+++ Makefile.in
-@@ -89,7 +89,7 @@
- manext = .1
- sgimansubdir = @sgimansubdir@
- libdir = @libdir@/ftnchek
--lispdir = @lispdir@
-+lispdir = $(prefix)/share/emacs/site-lisp
+--- configure.orig Mon Mar 5 18:56:11 2001
++++ configure
+@@ -2510,6 +2510,8 @@
+ else
+ OS_FLAGS="-O2";
+ fi;;
++ netbsd*)
++ ;;
+ next*)
+ OS_FLAGS="-O2";;
- # Define suffix for executables, for non-unix systems which have one.
- EXE = @EXE@
-@@ -470,14 +470,9 @@
+@@ -2574,13 +2576,13 @@
+ fi
- # The emacs lisp file will be installed only if lispdir exists.
- install-lisp:
-- @if test -d "$(lispdir)" ; \
-- then \
-- echo $(CP) ftnchek.el $(lispdir)/ftnchek.el ; \
-- if $(CP) ftnchek.el $(lispdir)/ftnchek.el ; \
-- then \
-- echo "If desired, use emacs to byte-compile $(lispdir)/ftnchek.el"; \
-- fi \
-- fi
-+ -mkdir -p $(lispdir)
-+ -cp ftnchek.el $(lispdir)/ftnchek.el
-+ -echo "If desired, use emacs to byte-compile $(lispdir)/ftnchek.el"
- # Remove everything that the install target installed.
- uninstall:
+-CFLAGS="-DUNIX $OS_FLAGS $PROTOFLAG \$(OPTIONS)"
++CFLAGS="$CFLAGS -DUNIX $OS_FLAGS $PROTOFLAG \$(OPTIONS)"
+ echo "$ac_t""Compile command is $CC $CFLAGS" 1>&6
+ if test $GCC; then
+ echo "$ac_t""If you prefer using cc, setenv CC cc; rm config.cache and re-run" 1>&6
+ fi
+
+-LDFLAGS=
++
+
+
+ EXE=