hexcurse stable port information

Package: hexcurse
Version: 1.55
Revision: 1012
#Source: http://jewfish.net/download.php?file=%n.tar.gz
#SourceDirectory: %n-%v
#SourceRename: %n-%v.tar.gz
Source: mirror:sourceforge:fink/%n-%v.tar.gz
Source-MD5: c9f9485490300b5111aa429eabfef789
BuildDepends: libncurses5 (>= 5.4-20041023-1006), fink (>= 0.24.12-1)
Depends: ncurses (>= 5.4-20041023-1006), libncurses5-shlibs (>= 5.4-20041023-1006)
ConfigureParams: --mandir=%p/share/man
PatchFile: %n.patch
PatchFile-MD5: 7e2f32448ed63d8f3493dd5c40db0744
InstallScript: make install-strip DESTDIR=%d
DocFiles: AUTHORS COPYING INSTALL NEWS README
Description: Terminal-based hex editor
DescDetail: <<
Curses-based hex editing utility that can open, edit, and
save files, editing both the hexadecimal and decimal values.
<<
DescUsage: <<
"man hexcurse" for usage notes.
<<
DescPackaging: <<
The SourceRename forces fink to realize that the tarball name
is %n-%v.tar.gz, and use that (with wget) OR with curl, it actually
renames the source to %n-%v.tar.gz
<<
License: GPL
Homepage: http://jewfish.net/description.php?title=HexCurse
Maintainer: Ben Hines

hexcurse stable port .patch

--- hexcurse-1.55/src/getopt.c.bak 2005-04-03 14:08:37.000000000 -0700
+++ hexcurse-1.55/src/getopt.c 2005-04-03 14:10:42.000000000 -0700
@@ -30,16 +30,14 @@
#undef opterr
#undef optopt
#undef optind
-#undef alloca

/* The following modification was submited by Claudio Fanin. This change *
* enables hexcurse to be compiled with SGI's proprietary compiler */
#ifdef _SGIAPI
+#undef alloca
#include
-#else
-char *alloca ();
#endif
-#define __alloca alloca
+#define __hexcurse_alloca alloca
/* end of modification */

#ifdef HAVE_OPTIND
@@ -85,7 +83,7 @@
char **argv;
{
int nonopts_size = (last_nonopt - first_nonopt) * sizeof (char *);
- char **temp = (char **) __alloca (nonopts_size);
+ char **temp = (char **) __hexcurse_alloca (nonopts_size);

/* Interchange the two blocks of data in ARGV. */

hexcurse _unstable_ port .patch