unzip stable port information

Package: unzip
Version: 6.0
Revision: 1
Distribution: 10.5, 10.6, 10.7
Maintainer: Fink Core Group
License: BSD
Essential: yes
#CustomMirror: <<
#Primary: ftp://ftp.info-zip.org/pub/infozip/src/
#<<
#Source: mirror:custom:%n60.tgz
Source: mirror:sourceforge:fink/%n60.tgz
Source-MD5: 62b490407489521db863b523a7f86375
SourceDirectory: %n60
BuildDepends: fink (>= 0.24.12)
InfoTest: TestScript: make -k check || exit 2
DocFiles: BUGS INSTALL LICENSE README ToDo WHERE
Homepage: http://www.info-zip.org/pub/infozip/UnZip.html
Description: Decompression compatible with pkunzip
DescDetail: <<
Zip is different from gzip in that it allows packing multiple files into a
single archive (without the assistance of tar). It is compatible with pkzip,
pkunzip, and other Windows zip utilities.

This utility is necessary to install several packages in a pure Darwin
installation, as Darwin does not come with zip/unzip.
<<
CompileScript: make -f unix/Makefile macosx D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2
InstallScript: make -f unix/Makefile install BINDIR=%i/bin MANDIR=%i/share/man/man1
Suggests: zip

# prevent 'struct direntry' name conflict
PatchFile: %n.patch
PatchFile-MD5: a7476ebe93118a849634d80f47e25478

unzip stable port .patch

--- unzip-5.52/unix/unix.c 2005-02-26 14:43:42.000000000 -0500
+++ unzip-5.52/new 2007-02-08 08:05:58.000000000 -0500
@@ -53,7 +53,13 @@
#endif

#ifdef DIRENT
+# ifdef __APPLE__
+# define direntry apple_direntry
+# endif
# include
+# ifdef __APPLE__
+# undef direntry
+# endif
#else
# ifdef SYSV
# ifdef SYSNDIR

unzip _unstable_ port .patch