diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2003-05-21 13:56:45 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2003-05-21 13:56:45 +0000 |
commit | 8ceafdcf85765f60560b3d8333eaac82a317dd75 (patch) | |
tree | 375a837765d78c136a70fc10a0396261cf03ce9e | |
parent | transfer to gnome@ (diff) |
Add a port for unzip with localized patches.
Submitted by: Eugene M. Kim <ab@astralblue.net>
Notes
Notes:
svn path=/head/; revision=81610
-rw-r--r-- | korean/Makefile | 1 | ||||
-rw-r--r-- | korean/unzip/Makefile | 14 | ||||
-rw-r--r-- | korean/unzip/files/patch-fileio.c | 14 | ||||
-rw-r--r-- | korean/unzip/files/patch-unzip.c | 25 | ||||
-rw-r--r-- | korean/unzip/files/patch-unzip.h | 10 |
5 files changed, 64 insertions, 0 deletions
diff --git a/korean/Makefile b/korean/Makefile index 66d48ab62cb1..bf497ab354f3 100644 --- a/korean/Makefile +++ b/korean/Makefile @@ -1,5 +1,6 @@ # $FreeBSD$ # + SUBDIR += unzip SUBDIR += FreeWnn-lib SUBDIR += FreeWnn-server diff --git a/korean/unzip/Makefile b/korean/unzip/Makefile new file mode 100644 index 000000000000..1577913af91e --- /dev/null +++ b/korean/unzip/Makefile @@ -0,0 +1,14 @@ +# Ports collection makefile for: ko-unzip +# Date created: 21 May 2003 +# Whom: Hye-Shik Chang +# +# $FreeBSD$ + +MASTERDIR= ${.CURDIR}/../../archivers/unzip +EXTRA_PATCHES= ${.CURDIR}/files/patch-* +CATEGORIES= korean archivers + +MAINTAINER= ab@astralblue.net +COMMENT= ZIP archive extractor with localized patches + +.include "${MASTERDIR}/Makefile" diff --git a/korean/unzip/files/patch-fileio.c b/korean/unzip/files/patch-fileio.c new file mode 100644 index 000000000000..876846075a76 --- /dev/null +++ b/korean/unzip/files/patch-fileio.c @@ -0,0 +1,14 @@ +--- fileio.c.orig Sun Feb 17 14:43:28 2002 ++++ fileio.c Wed May 21 03:40:24 2003 +@@ -2135,8 +2135,9 @@ + + /* translate the Zip entry filename coded in host-dependent "extended + ASCII" into the compiler's (system's) internal text code page */ +- Ext_ASCII_TO_Native(G.filename, G.pInfo->hostnum, G.pInfo->hostver, +- G.pInfo->HasUxAtt, (option == DS_FN_L)); ++ if (!uO.dotflag) ++ Ext_ASCII_TO_Native(G.filename, G.pInfo->hostnum, G.pInfo->hostver, ++ G.pInfo->HasUxAtt, (option == DS_FN_L)); + + if (G.pInfo->lcflag) /* replace with lowercase filename */ + STRLOWER(G.filename, G.filename); diff --git a/korean/unzip/files/patch-unzip.c b/korean/unzip/files/patch-unzip.c new file mode 100644 index 000000000000..02f9df5624d2 --- /dev/null +++ b/korean/unzip/files/patch-unzip.c @@ -0,0 +1,25 @@ +--- unzip.c.orig Sun Jan 27 11:26:16 2002 ++++ unzip.c Wed May 21 03:42:30 2003 +@@ -595,7 +595,8 @@ + -o overwrite files WITHOUT prompting -aa treat ALL files as text\n \ + -j junk paths (do not make directories) -v be verbose/print version info\n\ + %c-C%c match filenames case-insensitively %c-L%c make (some) names \ +-lowercase\n %-42s %c-V%c retain VMS version numbers\n%s"; ++lowercase\n %-42s %c-V%c retain VMS version numbers\n\ ++ -. don't translate filenames\n%s"; + + static ZCONST char Far UnzipUsageLine5[] = "\ + Examples (see unzip.txt for more info):\n\ +@@ -1476,6 +1477,12 @@ + ++uO.ddotflag; + break; + #endif /* !RISCOS && !CMS_MVS && !TANDEM */ ++ case ('.'): ++ if (negative) ++ uO.dotflag = FALSE, negative = 0; ++ else ++ uO.dotflag = TRUE; ++ break; + default: + error = TRUE; + break; diff --git a/korean/unzip/files/patch-unzip.h b/korean/unzip/files/patch-unzip.h new file mode 100644 index 000000000000..a79d047470df --- /dev/null +++ b/korean/unzip/files/patch-unzip.h @@ -0,0 +1,10 @@ +--- unzip.h.orig Sun Jan 27 11:29:40 2002 ++++ unzip.h Wed May 21 03:43:56 2003 +@@ -459,6 +459,7 @@ + #if (!defined(RISCOS) && !defined(CMS_MVS) && !defined(TANDEM)) + int ddotflag; /* -:: don't skip over "../" path elements */ + #endif ++ int dotflag; /* -.: don't translate filenames to local charset */ + #endif /* !FUNZIP */ + } UzpOpts; + |