From 43ecc504f64ae41c48912df2982cf2f780b97111 Mon Sep 17 00:00:00 2001 From: kevlo Date: Wed, 13 Jun 2018 03:24:40 +0000 Subject: Remove chinese/unrar, use archivers/unrar instead. --- chinese/Makefile | 1 - chinese/unrar/Makefile | 15 --------------- chinese/unrar/files/patch-arcread.cpp | 27 --------------------------- chinese/unrar/files/patch-unicode.cpp | 10 ---------- 4 files changed, 53 deletions(-) delete mode 100644 chinese/unrar/Makefile delete mode 100644 chinese/unrar/files/patch-arcread.cpp delete mode 100644 chinese/unrar/files/patch-unicode.cpp (limited to 'chinese') diff --git a/chinese/Makefile b/chinese/Makefile index e32c5fb1bee1..00607d2d9857 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -108,7 +108,6 @@ SUBDIR += tintin++ SUBDIR += ttf2pt1 SUBDIR += ttfm - SUBDIR += unrar SUBDIR += ve SUBDIR += wenju SUBDIR += wordpress-zh_CN diff --git a/chinese/unrar/Makefile b/chinese/unrar/Makefile deleted file mode 100644 index c7ca793193d4..000000000000 --- a/chinese/unrar/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# Created by: Shen Chuan-Hsing -# $FreeBSD$ - -CATEGORIES= chinese - -MAINTAINER= sunpoet@FreeBSD.org - -MASTERDIR= ${.CURDIR}/../../archivers/unrar - -EXTRA_PATCHES= ${.CURDIR}/files/patch-arcread.cpp \ - ${.CURDIR}/files/patch-unicode.cpp - -CONFLICTS_INSTALL= unrar unrar-iconv - -.include "${MASTERDIR}/Makefile" diff --git a/chinese/unrar/files/patch-arcread.cpp b/chinese/unrar/files/patch-arcread.cpp deleted file mode 100644 index a8c5a693d489..000000000000 --- a/chinese/unrar/files/patch-arcread.cpp +++ /dev/null @@ -1,27 +0,0 @@ ---- arcread.cpp.orig 2017-04-28 17:28:45 UTC -+++ arcread.cpp -@@ -1308,6 +1308,7 @@ void Archive::ConvertAttributes() - - void Archive::ConvertFileHeader(FileHeader *hd) - { -+ int big5=0; - if (Format==RARFMT15 && hd->UnpVer<20 && (hd->FileAttr & 0x10)) - hd->Dir=true; - if (hd->HSType==HSYS_UNKNOWN) -@@ -1323,6 +1324,16 @@ void Archive::ConvertFileHeader(FileHead - - for (wchar *s=hd->FileName;*s!=0;s++) - { -+ if (big5==1) /* skip Big5 second byte */ -+ { -+ big5=0; -+ continue; -+ } -+ if ((byte)*s>127) /* Big5 first byte */ -+ { -+ big5=1; -+ continue; -+ } - #ifdef _UNIX - // Backslash is the invalid character for Windows file headers, - // but it can present in Unix file names extracted in Unix. diff --git a/chinese/unrar/files/patch-unicode.cpp b/chinese/unrar/files/patch-unicode.cpp deleted file mode 100644 index eb873acba057..000000000000 --- a/chinese/unrar/files/patch-unicode.cpp +++ /dev/null @@ -1,10 +0,0 @@ ---- unicode.cpp.orig 2017-04-28 17:28:47 UTC -+++ unicode.cpp -@@ -20,6 +20,7 @@ static const uint MappedStringMark=0xFFF - bool WideToChar(const wchar *Src,char *Dest,size_t DestSize) - { - bool RetCode=true; -+ return(RetCode); /* patch for chinese filename */ - *Dest=0; // Set 'Dest' to zero just in case the conversion will fail. - - #ifdef _WIN_ALL -- cgit