freebsd-ports/archivers/unzip/files/extra-ko-patch-unzip.c
John Marino 69f43aff5e Merge 4 unzip slave ports into archivers/unzip as non-default options
It is practically impossible to use any of the unzip slave ports.  This
is because archivers/unzip is used by the ports infrastruction (via
USES=zip, USES=zip:infozip) and each slave port conflicts with it.
If you install the slave port first, then the port infrastructure can't
install archivers/unzip (although if attempted, the extracts dependency
might be satisfied by the slave port so it might actually work).

In any case, this change:
  * Adds "iconv" support as an non-default option
  * Add a localization group that can have zero or one selection
  * That group contains Chinese, Korean, or Russian support
  * WITH_UNZIP_UNREDUCE support was removed (I'm not sure it even worked)
  * Makefile was simplified (several loops removed)
  * Removes unzip-iconv, Chinese, Korean, Russian slave ports

PR:		190349
Reported by:	Mikhail Rokhin
Unzip overhaul:	marino
Approved by:	maintainer (ehaupt@)
2014-08-15 10:11:10 +00:00

25 lines
1 KiB
C

--- unzip.c.orig 2009-04-16 18:26:52 UTC
+++ unzip.c
@@ -664,7 +664,8 @@ modifiers:\n\
-j junk paths (do not make directories) -aa treat ALL files as text\n\
-U use escapes for all non-ASCII Unicode -UU ignore any Unicode fields\n\
-C match filenames case-insensitively -L make (some) names \
-lowercase\n %-42s -V retain VMS version numbers\n%s";
+lowercase\n %-42s -V retain VMS version numbers\n\
+ -. don't translate filenames\n%s";
#else /* !VMS */
static ZCONST char Far UnzipUsageLine4[] = "\
modifiers:\n\
@@ -1829,6 +1830,12 @@ int uz_opts(__G__ pargc, pargv)
++uO.cflxflag;
break;
#endif /* UNIX */
+ case ('.'):
+ if (negative)
+ uO.dotflag = FALSE, negative = 0;
+ else
+ uO.dotflag = TRUE;
+ break;
default:
error = TRUE;
break;