Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2011 21:39:46 +0800 (CST)
From:      Yi-Rong Wang <wangyr@cs.nctu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        johans@FreeBSD.org
Subject:   ports/159871: [PATCH] chinese/zh-tin: update to 1.9.6
Message-ID:  <201108181339.p7IDdkJN005273@bsd1.cs.nctu.edu.tw>
Resent-Message-ID: <201108181400.p7IE0Nxn078395@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         159871
>Category:       ports
>Synopsis:       [PATCH] chinese/zh-tin: update to 1.9.6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 18 14:00:22 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Charlie &
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD enc.twbbs.org 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011
>Description:
- Update to 1.9.6

Port maintainer (johans@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- zh-tin-1.9.6_4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/chinese/zh-tin/Makefile /usr/ports/chinese/tin/Makefile
--- /usr/ports/chinese/zh-tin/Makefile	2011-07-19 06:05:50.000000000 +0800
+++ /usr/ports/chinese/tin/Makefile	2011-08-18 21:07:34.078577304 +0800
@@ -6,13 +6,11 @@
 # $FreeBSD: ports/chinese/tin/Makefile,v 1.40 2011/07/18 22:05:50 pav Exp $
 #
 
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	chinese
 
 MAINTAINER=	leeym@FreeBSD.org
 
-BROKEN=		does not patch
-
 EXTRA_PATCHES=	${.CURDIR}/files/patch-attrib.c \
 		${.CURDIR}/files/patch-cook.c \
 		${.CURDIR}/files/patch-mail.c \
@@ -21,7 +19,4 @@
 
 MASTERDIR=	${.CURDIR}/../../news/tin
 
-WITH_TIN_SCREEN=termcap
-CONFIGURE_ARGS=	--disable-locale
-
 .include "${MASTERDIR}/Makefile"
diff -ruN --exclude=CVS /usr/ports/chinese/zh-tin/files/patch-attrib.c /usr/ports/chinese/tin/files/patch-attrib.c
--- /usr/ports/chinese/zh-tin/files/patch-attrib.c	2003-10-11 11:03:06.000000000 +0800
+++ /usr/ports/chinese/tin/files/patch-attrib.c	2011-08-18 21:07:34.078577304 +0800
@@ -1,14 +1,12 @@
---- src/attrib.c.orig	Wed Aug 20 19:19:52 2003
-+++ src/attrib.c	Wed Aug 20 19:23:06 2003
-@@ -687,6 +687,11 @@
- 		fprintf(fp, "post_proc_type=%d\n", POST_PROC_YES);
- 		fprintf(fp, "delete_tmp_files=ON\n");
- 		fprintf(fp, "followup_to=poster\n\n");
-+
-+		fprintf(fp, _("# set charset to Big5 in all newsgroups\n"));
-+		fprintf(fp, "scope=*\n");
-+		fprintf(fp, "mm_network_charset=Big5\n");
-+		fprintf(fp, "undeclared_charset=Big5\n");
- 	} else {
- 		char *ptr;
- 		char buf[LEN];
+--- src/attrib.c.orig	2011-08-18 04:00:01.601675125 +0800
++++ src/attrib.c	2011-08-18 04:48:26.054180291 +0800
+@@ -547,6 +547,9 @@
+ 
+ 		add_scope("*");
+ 		set_attrib(OPT_ATTRIB_X_HEADERS, "*", "~/.tin/headers");
++		num = 25;
++		set_attrib(OPT_ATTRIB_MM_NETWORK_CHARSET, "*", (char *) &num);
++		set_attrib(OPT_ATTRIB_UNDECLARED_CHARSET, "*", "Big5");
+ 
+ 		add_scope("*sources*");
+ 		num = POST_PROC_SHAR;
diff -ruN --exclude=CVS /usr/ports/chinese/zh-tin/files/patch-cook.c /usr/ports/chinese/tin/files/patch-cook.c
--- /usr/ports/chinese/zh-tin/files/patch-cook.c	2005-04-06 01:33:36.000000000 +0800
+++ /usr/ports/chinese/tin/files/patch-cook.c	2011-08-18 21:07:34.078577304 +0800
@@ -1,16 +1,15 @@
---- src/cook.c.orig	Wed Dec  1 18:48:37 2004
-+++ src/cook.c	Fri Mar 18 23:34:58 2005
-@@ -408,8 +408,13 @@
- 		if (!(line && strlen(line)))
+--- src/cook.c.orig	2011-08-18 03:58:24.288554846 +0800
++++ src/cook.c	2011-08-18 13:36:23.791151539 +0800
+@@ -472,7 +472,12 @@
  			break;	/* premature end of file, file error etc. */
  
-+#ifndef CHARSET_CONVERSION
  		/* convert network to local charset, tex2iso, iso2asc etc. */
++#ifndef CHARSET_CONVERSION
  		process_charsets(&line, &max_line_len, get_param(part->params, "charset"), tinrc.mm_local_charset, curr_group->attribute->tex2iso_conv && art->tex2iso);
 +#else
-+		// force to use undeclared_charset first
-+		process_charsets(&line, &max_line_len, (curr_group->attribute->undeclared_charset) ? (curr_group->attribute->undeclared_charset) : get_param(part->params, "charset"), tinrc.mm_local_charset, curr_group->attribute->tex2iso_conv && art->tex2iso);
-+#endif /* !CHARSET_CONVERSION */
++		/* use undeclared charset */
++		process_charsets(&line, &max_line_len, get_param(part->params, "charset") ? get_param(part->params, "charset") : curr_group->attribute->undeclared_charset, tinrc.mm_local_charset, curr_group->attribute->tex2iso_conv && art->tex2iso);
++#endif
  
  #if defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE)
  		if (IS_LOCAL_CHARSET("UTF-8"))
diff -ruN --exclude=CVS /usr/ports/chinese/zh-tin/files/patch-init.c /usr/ports/chinese/tin/files/patch-init.c
--- /usr/ports/chinese/zh-tin/files/patch-init.c	2003-08-20 23:55:34.000000000 +0800
+++ /usr/ports/chinese/tin/files/patch-init.c	2011-08-18 21:07:34.078577304 +0800
@@ -1,26 +1,6 @@
---- src/init.c.orig	Sun Aug 10 09:37:40 2003
-+++ src/init.c	Wed Aug 20 19:23:32 2003
-@@ -282,8 +282,8 @@
- 	32,		/* groupname_max_length */
- 	UUE_NO,	/* hide_uue */
- 	KILL_UNREAD,		/* kill_level */
--	MIME_ENCODING_7BIT,		/* mail_mime_encoding */
--	MIME_ENCODING_7BIT,		/* post_mime_encoding */
-+	MIME_ENCODING_8BIT,		/* mail_mime_encoding */
-+	MIME_ENCODING_8BIT,		/* post_mime_encoding */
- 	POST_PROC_NO,			/* post_process */
- 	REREAD_ACTIVE_FILE_SECS,	/* reread_active_file_secs */
- 	1,		/* scroll_lines */
-@@ -330,7 +330,7 @@
- 	TRUE,		/* word_highlight */
- 	0,		/* wrap_column */
- #ifdef HAVE_COLOR
--	FALSE,		/* use_color */
-+	TRUE,		/* use_color */
- #endif /* HAVE_COLOR */
- 	TRUE,		/* add_posted_to_filter */
- 	TRUE,		/* advertising */
-@@ -360,12 +360,12 @@
+--- src/init.c.orig	2011-08-18 12:58:08.564585495 +0800
++++ src/init.c	2011-08-18 12:58:30.264685035 +0800
+@@ -354,11 +354,11 @@
  #endif /* USE_INVERSE_HACK */
  	TRUE,		/* keep_dead_articles */
  	POSTED_FILE,	/* posted_articles_file */
@@ -28,7 +8,6 @@
 +	TRUE,		/* mail_8bit_header */
  	FALSE,		/* mark_ignore_tags */
  	TRUE,		/* mark_saved_read */
- 	TRUE,		/* pgdn_goto_next */
  	TRUE,		/* pos_first_unread */
 -	FALSE,		/* post_8bit_header */
 +	TRUE,		/* post_8bit_header */
diff -ruN --exclude=CVS /usr/ports/chinese/zh-tin/files/patch-mail.c /usr/ports/chinese/tin/files/patch-mail.c
--- /usr/ports/chinese/zh-tin/files/patch-mail.c	2003-10-09 12:14:26.000000000 +0800
+++ /usr/ports/chinese/tin/files/patch-mail.c	2011-08-18 21:07:34.078577304 +0800
@@ -1,14 +1,14 @@
---- src/mail.c.orig	Sun Aug 10 21:27:36 2003
-+++ src/mail.c	Wed Oct  8 14:52:42 2003
-@@ -327,7 +327,12 @@
- 			 *
- 			 * TODO: change US-ASCII to UTF-8 when NNTP draft becomes RFC
+--- src/mail.c.orig	2011-08-18 04:51:51.011361439 +0800
++++ src/mail.c	2011-08-18 04:51:13.299148230 +0800
+@@ -510,7 +510,12 @@
+ 			/*
+ 			 * Protect against invalid character sequences.
  			 */
 +#ifndef CHARSET_CONVERSION
- 			process_charsets(&r, &r_len, "US-ASCII", tinrc.mm_local_charset, FALSE);
+ 			process_charsets(&r, &r_len, "UTF-8", tinrc.mm_local_charset, FALSE);
 +#else
-+			process_charsets(&r, &r_len, (CURR_GROUP.attribute->undeclared_charset) ? (CURR_GROUP.attribute->undeclared_charset) : "US-ASCII", tinrc.mm_local_charset, FALSE);
-+#endif /* !CHARSET_CONVERSION */
++			process_charsets(&r, &r_len, (CURR_GROUP.attribute->undeclared_charset) ? (CURR_GROUP.attribute->undeclared_charset) : "UTF-8", tinrc.mm_local_charset, FALSE);
++#endif
 +
  			group->description = convert_to_printable(r);
  		}
diff -ruN --exclude=CVS /usr/ports/chinese/zh-tin/files/patch-tin_defaults /usr/ports/chinese/tin/files/patch-tin_defaults
--- /usr/ports/chinese/zh-tin/files/patch-tin_defaults	2003-10-09 22:14:43.000000000 +0800
+++ /usr/ports/chinese/tin/files/patch-tin_defaults	2011-08-18 21:07:34.078577304 +0800
@@ -1,5 +1,5 @@
---- doc/tin.defaults~~	Thu Oct  9 22:01:04 2003
-+++ doc/tin.defaults	Thu Oct  9 22:01:14 2003
+--- doc/tin.defaults.orig	2011-08-18 05:28:38.347241197 +0800
++++ doc/tin.defaults	2011-08-18 05:29:00.242883933 +0800
 @@ -55,7 +55,7 @@
  # idea to set mm_charset here for providing a default
  # in most western countries ISO-8859-1 might be the best value
--- zh-tin-1.9.6_4.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108181339.p7IDdkJN005273>