git: 5f1796254f27 - main - devel/sope: Fix build with GNUstep 1.29.0

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Tue, 29 Aug 2023 18:19:33 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5f1796254f27cfae4e0d031ad117ed888aa84353

commit 5f1796254f27cfae4e0d031ad117ed888aa84353
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-08-29 18:04:30 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-08-29 18:18:40 +0000

    devel/sope: Fix build with GNUstep 1.29.0
    
    Import patch from Debian to fix build
    
    Source: https://sources.debian.org/data/main/s/sope/5.8.4-1/debian/patches/base-1.29.patch
    
    PR:             273213
    Reported by:    jbeich
    Approved by:    portmgr (blanket)
---
 devel/sope/files/patch-sope-mime_NGMime_NGMimeType.m | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/devel/sope/files/patch-sope-mime_NGMime_NGMimeType.m b/devel/sope/files/patch-sope-mime_NGMime_NGMimeType.m
new file mode 100644
index 000000000000..5a47a3b68f31
--- /dev/null
+++ b/devel/sope/files/patch-sope-mime_NGMime_NGMimeType.m
@@ -0,0 +1,18 @@
+--- sope-mime/NGMime/NGMimeType.m.orig	2023-06-20 10:08:44 UTC
++++ sope-mime/NGMime/NGMimeType.m
+@@ -125,13 +125,13 @@ static Class NSStringClass  = Nil;
+     encoding = NSKoreanEUCStringEncoding;
+   }
+   else if ([charset isEqualToString:@"big5"]) {
+-    encoding = NSBIG5StringEncoding;
++    encoding = NSBig5StringEncoding;
+   }
+   else if ([charset isEqualToString:@"iso-2022-jp"]) {
+     encoding = NSISO2022JPStringEncoding;
+   }
+   else if ([charset isEqualToString:@"gb2312"]) {
+-    encoding = NSGB2312StringEncoding;
++    encoding = NSChineseEUCStringEncoding;
+   }
+   else if ([charset isEqualToString:@"koi8-r"]) {
+     encoding = NSKOI8RStringEncoding;