diff options
author | perky <perky@FreeBSD.org> | 2003-05-21 21:56:45 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2003-05-21 21:56:45 +0800 |
commit | 527d5477368eaeaf8ea9c72b764a673a5aea01f1 (patch) | |
tree | d8003d9856fc325d8e965dcb76361c2aaee83fa6 /korean/unzip | |
parent | b67fb275b4b53843b4d8a1fa1688cb83249da8dd (diff) | |
download | freebsd-ports-gnome-527d5477368eaeaf8ea9c72b764a673a5aea01f1.tar.gz freebsd-ports-gnome-527d5477368eaeaf8ea9c72b764a673a5aea01f1.tar.zst freebsd-ports-gnome-527d5477368eaeaf8ea9c72b764a673a5aea01f1.zip |
Add a port for unzip with localized patches.
Submitted by: Eugene M. Kim <ab@astralblue.net>
Diffstat (limited to 'korean/unzip')
-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 |
4 files changed, 63 insertions, 0 deletions
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; + |