Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  9 Jun 2006 23:48:32 +0800
From:      chinsan <chinsan.tw@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        clsung@FreeBSD.org
Subject:   ports/98754: [MAINTAINER] chinese/zhcon: update to 0.2.5
Message-ID:  <20060609154757.90E132E970@smtp2.bc.hgc.com.tw>
Resent-Message-ID: <200606091550.k59FoJgs044559@freefall.freebsd.org>

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

>Number:         98754
>Category:       ports
>Synopsis:       [MAINTAINER] chinese/zhcon: update to 0.2.5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 09 15:50:19 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     chinsan
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD chinsan2.twbbs.org 6.1-STABLE FreeBSD 6.1-STABLE #1: Fri Jun  2 16:44:35 CST
>Description:
- Update to 0.2.5

Removed file(s):
- files/patch-src-Makefile.in
- files/patch-src-configfile.cpp
- files/patch-src-display-fblinear24.cpp
- files/patch-src-display-fblinear8.cpp
- files/patch-src-inputclient.h
- files/patch-src-zhcon.cpp

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

--- zhcon-0.2.5.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/chinese/zhcon/Makefile /usr/home/chinsan/project/zhcon/Makefile
--- /usr/ports/chinese/zhcon/Makefile	Fri Jun  9 06:06:21 2006
+++ /usr/home/chinsan/project/zhcon/Makefile	Fri Jun  9 23:46:11 2006
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	zhcon
-PORTVERSION=	0.2.3
-PORTREVISION=	7
+PORTVERSION=	0.2.5
 CATEGORIES=	chinese
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -16,21 +15,25 @@
 COMMENT=	A fast Console Chinese System which supports framebuffer device
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-libintl-prefix=${LOCALBASE}
 ONLY_FOR_ARCHS=	i386
-# Don't bother to add ".if !defined(WITHOUT_NLS)", zhcon requires libintl
-USE_GETTEXT=	yes
 
 PKGMESSAGE=	${WRKDIR}/pkg-message
 SUB_FILES=	pkg-message
 MAN1=		zhcon.1
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/doc/zhcon.1.in
+	@${REINPLACE_CMD} -e 's,/etc,${PREFIX}/etc,' ${WRKSRC}/doc/zhcon.1.in
 	@${REINPLACE_CMD} -Ee 's,/dev/vga,/dev/ttyv0,g' ${WRKSRC}/src/display/fbdev.cpp
-	@${REINPLACE_CMD} -e '5 s|#||;'  ${WRKSRC}/src/zhcon.conf
+	@${REINPLACE_CMD} -Ee 's,endian,sys/endian,g' ${WRKSRC}/src/display/fblinear4.cpp \
+		${WRKSRC}/src/display/fblinear8.cpp ${WRKSRC}/src/display/fblinear16.cpp \
+		${WRKSRC}/src/display/fblinear24.cpp
+	@${REINPLACE_CMD} -e '5 s,#,,; s,/usr/lib,${PREFIX}/lib,'  ${WRKSRC}/src/zhcon.conf
+	@${REINPLACE_CMD} -e 's,"/etc,PREFIX"/etc,'  ${WRKSRC}/src/zhcon.cpp
 	@${REINPLACE_CMD} -Ee 's,(\s*=\s*)("?)/usr/local([^"]*)("?),\1\2${PREFIX}\3\4,g' \
 		-e '/_nl_expand_alias/s,\(0\),\(\),g' ${WRKSRC}/${CONFIGURE_SCRIPT}
+.if defined(WITH_BIG5)
+	@${REINPLACE_CMD} -e '11 s,gb2312,big5,' ${WRKSRC}/src/zhcon.conf
+.endif
 
 post-install:
 	@${CAT} ${PKGMESSAGE}
diff -ruN --exclude=CVS /usr/ports/chinese/zhcon/distinfo /usr/home/chinsan/project/zhcon/distinfo
--- /usr/ports/chinese/zhcon/distinfo	Sun Nov 27 12:52:47 2005
+++ /usr/home/chinsan/project/zhcon/distinfo	Fri Jun  9 23:46:11 2006
@@ -1,3 +1,3 @@
-MD5 (zhcon-0.2.3.tar.gz) = 64b5d6c2d7055b4e45f4eadfd1303e8f
-SHA256 (zhcon-0.2.3.tar.gz) = 60e2f7a3b2a548e043838794b7ab3cb0e84f13508d48b384e9b6598698baacbb
-SIZE (zhcon-0.2.3.tar.gz) = 5030677
+MD5 (zhcon-0.2.5.tar.gz) = 79e1c68aab8341e32129f61c1670baeb
+SHA256 (zhcon-0.2.5.tar.gz) = 4ce4dc1395b6f6a920d44aac069a284bff76df4019ac4164850d263538465d59
+SIZE (zhcon-0.2.5.tar.gz) = 5011644
diff -ruN --exclude=CVS /usr/ports/chinese/zhcon/files/patch-src-Makefile.in /usr/home/chinsan/project/zhcon/files/patch-src-Makefile.in
--- /usr/ports/chinese/zhcon/files/patch-src-Makefile.in	Thu Jun  8 15:43:23 2006
+++ /usr/home/chinsan/project/zhcon/files/patch-src-Makefile.in	Thu Jan  1 08:00:00 1970
@@ -1,11 +0,0 @@
---- src/Makefile.in.orig	Thu Apr 17 19:29:48 2003
-+++ src/Makefile.in	Wed Apr 30 21:10:39 2003
-@@ -478,7 +478,7 @@
- 
- install-data-local:
- 	$(mkinstalldirs) $(DESTDIR)/etc
--	$(INSTALL_DATA) $(srcdir)/zhcon.conf $(DESTDIR)/etc/zhcon.conf
-+	$(INSTALL_DATA) $(srcdir)/zhcon.conf $(PREFIX)/etc/zhcon.conf
- 
- uninstall-local:
- 	-rm -f $(DESTDIR)/etc/zhcon.conf
diff -ruN --exclude=CVS /usr/ports/chinese/zhcon/files/patch-src-configfile.cpp /usr/home/chinsan/project/zhcon/files/patch-src-configfile.cpp
--- /usr/ports/chinese/zhcon/files/patch-src-configfile.cpp	Thu Jun  8 15:43:23 2006
+++ /usr/home/chinsan/project/zhcon/files/patch-src-configfile.cpp	Thu Jan  1 08:00:00 1970
@@ -1,21 +0,0 @@
---- src/configfile.cpp.orig	Tue Jan 25 07:38:59 2005
-+++ src/configfile.cpp	Tue Jan 25 07:41:19 2005
-@@ -19,13 +19,18 @@
- #include <stdexcept>
- #include <fstream>
- #include <cstdlib>
-+#include <sys/types.h>
-+#include <unistd.h>
- #include "configfile.h"
- 
- ConfigFile::ConfigFile(const char *fn) {
-+    uid_t euid = geteuid();
-+    seteuid(getuid());
-     ifstream in(fn);
-     if (!in)
-         throw runtime_error("Could not open config file!");
-     ParseFile(in);
-+    seteuid(euid);
- }
- 
- ConfigFile::~ConfigFile() {}
diff -ruN --exclude=CVS /usr/ports/chinese/zhcon/files/patch-src-display-fblinear24.cpp /usr/home/chinsan/project/zhcon/files/patch-src-display-fblinear24.cpp
--- /usr/ports/chinese/zhcon/files/patch-src-display-fblinear24.cpp	Thu Jun  8 15:43:23 2006
+++ /usr/home/chinsan/project/zhcon/files/patch-src-display-fblinear24.cpp	Thu Jan  1 08:00:00 1970
@@ -1,16 +0,0 @@
---- src/display/fblinear24.cpp~	Sun Aug  1 17:22:19 2004
-+++ src/display/fblinear24.cpp	Sun Aug  1 17:27:33 2004
-@@ -203,11 +203,11 @@
-             d1 = (-(*cdat >> 3 & 1) & eorx) ^ bgx;
-             d2 = (-(*cdat >> 2 & 1) & eorx) ^ bgx;
-             fb_writel(d1 | (d2<<24), dest32++);
--            fb_writew(d2>>8, ((__u16*)dest32)++);
-+            fb_writew(d2>>8, ((__u16*)dest32) + 1);
-         }
-         if (pFont->w & 1) {
-             d3 = (-(*cdat >> 1 & 1) & eorx) ^ bgx;
--            fb_writew(d3, ((__u16*)dest32)++);
-+            fb_writew(d3, ((__u16*)dest32) + 1);
-             fb_writeb(d3>>16, (__u8*)dest32);
-         }
-         cdat++;
diff -ruN --exclude=CVS /usr/ports/chinese/zhcon/files/patch-src-display-fblinear8.cpp /usr/home/chinsan/project/zhcon/files/patch-src-display-fblinear8.cpp
--- /usr/ports/chinese/zhcon/files/patch-src-display-fblinear8.cpp	Thu Jun  8 15:43:23 2006
+++ /usr/home/chinsan/project/zhcon/files/patch-src-display-fblinear8.cpp	Thu Jan  1 08:00:00 1970
@@ -1,11 +0,0 @@
---- src/display/fblinear8.cpp~	Sun Aug  1 17:29:43 2004
-+++ src/display/fblinear8.cpp	Sun Aug  1 17:39:12 2004
-@@ -102,7 +102,7 @@
-             fb_writel((nibbletab_cfb8[*cdat >> 4] & eorx) ^ bgx, dest32++);
-         }
-         if (pFont->w & 2) {
--            fb_writew((nibbletab_cfb8[*cdat & 0xc] & eorx) ^ bgx, ((__u16*)dest32)++);
-+            fb_writew((nibbletab_cfb8[*cdat & 0xc] & eorx) ^ bgx, ((__u16*)dest32) + 1);
-         }
-         if (pFont->w & 1) {
-             fb_writeb((*cdat & 2) ? fg : bg, (__u8*)dest32);
diff -ruN --exclude=CVS /usr/ports/chinese/zhcon/files/patch-src-inputclient.h /usr/home/chinsan/project/zhcon/files/patch-src-inputclient.h
--- /usr/ports/chinese/zhcon/files/patch-src-inputclient.h	Thu Jun  8 15:43:23 2006
+++ /usr/home/chinsan/project/zhcon/files/patch-src-inputclient.h	Thu Jan  1 08:00:00 1970
@@ -1,10 +0,0 @@
---- src/inputclient.h.orig	Sat Aug 16 16:34:06 2003
-+++ src/inputclient.h	Sat Aug 16 16:34:15 2003
-@@ -19,6 +19,7 @@
- #ifndef INPUTCLIENT_H
- #define INPUTCLIENT_H
- 
-+#include <cassert>
- #include <string>
- #include "console.h"
- 
diff -ruN --exclude=CVS /usr/ports/chinese/zhcon/files/patch-src-zhcon.cpp /usr/home/chinsan/project/zhcon/files/patch-src-zhcon.cpp
--- /usr/ports/chinese/zhcon/files/patch-src-zhcon.cpp	Thu Jun  8 15:43:23 2006
+++ /usr/home/chinsan/project/zhcon/files/patch-src-zhcon.cpp	Thu Jan  1 08:00:00 1970
@@ -1,11 +0,0 @@
---- src/zhcon.cpp.orig	Tue Nov 26 01:35:04 2002
-+++ src/zhcon.cpp	Tue Nov 26 01:35:25 2002
-@@ -131,7 +131,7 @@
-     string cfgfile = getenv("HOME");
-     cfgfile += "/.zhconrc";
-     if (access(cfgfile.c_str(), R_OK) != 0)
--        cfgfile = "/etc/zhcon.conf";
-+        cfgfile = PREFIX"/etc/zhcon.conf";
- 
-     //for debug,a pause enable us to attach zhcon's pid in gdb
-     //char c;cin>>c;
diff -ruN --exclude=CVS /usr/ports/chinese/zhcon/pkg-descr /usr/home/chinsan/project/zhcon/pkg-descr
--- /usr/ports/chinese/zhcon/pkg-descr	Sun Sep  9 00:37:52 2001
+++ /usr/home/chinsan/project/zhcon/pkg-descr	Fri Jun  9 23:46:11 2006
@@ -1,7 +1,8 @@
 Zhcon is a fast Linux Console Chinese System which supports
 framebuffer device.It can display Chinese,Japanese or Korean
 double byte characters.Supported language encodings include:
-GB2312,GBK,BIG5,JIS and KSCM.
+GB2312,GBK,BIG5,JIS and KSC. UTF-8 is also supported.
+
 It can also use input methods(table based) from M$pwin98 and
 UCDOS for M$-DOG.
 
diff -ruN --exclude=CVS /usr/ports/chinese/zhcon/pkg-plist /usr/home/chinsan/project/zhcon/pkg-plist
--- /usr/ports/chinese/zhcon/pkg-plist	Sun Feb 19 14:22:03 2006
+++ /usr/home/chinsan/project/zhcon/pkg-plist	Fri Jun  9 23:46:11 2006
@@ -34,16 +34,6 @@
 lib/zhcon/input/winpy.mb
 lib/zhcon/input/winsp.mb
 lib/zhcon/input/winzm.mb
-share/locale/ja/LC_MESSAGES/zhcon.mo
-share/locale/ko/LC_MESSAGES/zhcon.mo
-share/locale/zh_CN.EUC/LC_MESSAGES/zhcon.mo
-share/locale/zh_CN.GB2312/LC_MESSAGES/zhcon.mo
-share/locale/zh_CN.GBK/LC_MESSAGES/zhcon.mo
-share/locale/zh_TW.Big5/LC_MESSAGES/zhcon.mo
-@dirrmtry share/locale/zh_CN.GBK/LC_MESSAGES
-@dirrmtry share/locale/zh_CN.GBK
-@dirrmtry share/locale/zh_CN.EUC/LC_MESSAGES
-@dirrmtry share/locale/zh_CN.EUC
 @dirrm lib/zhcon/input
 @dirrm lib/zhcon/font
 @dirrm lib/zhcon
--- zhcon-0.2.5.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?20060609154757.90E132E970>