aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/zhcon/files
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2012-02-28 23:38:41 +0800
committerAlexey Dokuchaev <danfe@FreeBSD.org>2012-02-28 23:38:41 +0800
commitc2034ae9a18da136b1ecd464709ad90bbb65fef4 (patch)
tree037af0f95ca1a0795addbb6e0ee024b9c0599e2b /chinese/zhcon/files
parent884ff371e95a6b9844770f50d058626e53fbe3a7 (diff)
downloadfreebsd-ports-gnome-c2034ae9a18da136b1ecd464709ad90bbb65fef4.tar.gz
freebsd-ports-gnome-c2034ae9a18da136b1ecd464709ad90bbb65fef4.tar.zst
freebsd-ports-gnome-c2034ae9a18da136b1ecd464709ad90bbb65fef4.zip
Overhaul the port before I attempt to make it more usable on modern FreeBSD:
- Switch to official "previous version distfile + patch" scheme instead of using our apparently hand-rolled distfile; it is also in line with what most GNU/Linux folks do - Remove superfluous assignment of PKGMESSAGE, it's done automagically - Cleanup sed(1) expressions in REINPLACE_CMDs, prefer contextual addresses to hardcoded line numbers, remove useless global modifiers, etc. - Pad pkg-message text display in post-install with blank lines to bring port behavior in line with that of package - Utilize OPTIONS, define LICENSE (GPLv2), adjust COMMENT - Remove unneeded patches, add a patch which brings manpage fixes - Install extra documentation - Generally cleanup Makefile while I am here
Diffstat (limited to 'chinese/zhcon/files')
-rw-r--r--chinese/zhcon/files/patch-doc-zhcon.1.in166
-rw-r--r--chinese/zhcon/files/patch-src-global.h11
-rw-r--r--chinese/zhcon/files/patch-src-mouse.cpp10
3 files changed, 166 insertions, 21 deletions
diff --git a/chinese/zhcon/files/patch-doc-zhcon.1.in b/chinese/zhcon/files/patch-doc-zhcon.1.in
new file mode 100644
index 000000000000..a490c0f9dac8
--- /dev/null
+++ b/chinese/zhcon/files/patch-doc-zhcon.1.in
@@ -0,0 +1,166 @@
+--- doc/zhcon.1.in.orig 2006-04-25 00:38:47.000000000 +0800
++++ doc/zhcon.1.in 2012-02-28 20:48:51.000000000 +0800
+@@ -1,99 +1,102 @@
+-.TH "zhcon" "1" "zhcon @VERSION@" "Chinese" "zhcon user manual"
++.TH "zhcon" "1" "zhcon @VERSION@" "Chinese" "Zhcon user manual"
+ .SH "NAME"
+-.LP
++.LP
+ Zhcon \- a fast CJK console environment for GNU/Linux and BSD
+ .SH "SYNTAX"
+-.LP
++.LP
+ zhcon [prog]
+ .SH "DESCRIPTION"
+-.LP
+-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 KSC.
+-It can also use input methods(table based) from M$ pwin98 and
++.LP
++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 KSC.
++It can also use input methods (table based) from M$ Pwin98 and
+ UCDOS for M$\-DOG.
+
+-* Features include:
++Features include:
+
+-* Full support for Linux FrameBuffer device(from 640x480x8bpp to 1024x768x32bpp)
++* Full support for Linux FrameBuffer device (from 640x480x8bpp to
++ 1024x768x32bpp)
+
+-* Multiple language support (GB2312, GBK, BIG5, JIS, KSCM)
++* Multiple language support (GB2312, GBK, Big5, JIS, KSCM)
+
+ * Gpm mouse support under GNU/Linux (in progress)
+
+ * Mouse support under FreeBSD (finished)
+
+-* Auto\-detect and convert between GB2312 and BIG5 encoding(like hztty)
++* Auto\-detect and convert between GB2312 and Big5 encoding (like hztty)
+
+ * Hot key to change language encoding on the fly
+
+-* Can use input method from M$Pwin98 or UCDOS for M$\-DOG
++* Can use input method from M$ Pwin98 or UCDOS for M$\-DOG
+
+-If a command line argument (prog) is given, zhcon will
+-run this program on start instead of a shell and quit when
+-that program exits.
++If a command line argument (prog) is given, zhcon will run this program
++on start instead of a shell and quit when that program exits.
+ For example:
+-.br
++
+ zhcon screen
+-.br
+-will run screen on start
+-.SH "CONFIGURE FILE"
+-On startup, zhcon first try to load configuration from ~/.zhconrc.If failed, it will use /etc/zhcon.conf by default.The configure file has many options that control the behavior of zhcon.See the comments in the file for instruction on customizing zhcon.Comprehensive document can be found in doc/ directory of source package.
+
+-.SH "KEY SUMMAY"
+-.LP
+-CTRL_ALT_H: active online help
+-.br
++will run screen on start
++.SH "CONFIGURATION FILE"
++On startup, zhcon first try to load configuration from ~/.zhconrc.
++If this fails, it will use /etc/zhcon.conf by default.
++The configuration file has many options that control the behavior of zhcon.
++See the comments in the file for instructions on customizing zhcon.
++Comprehensive documentation can be found in the doc/ directory of installed
++package.
++.SH "KEY SUMMARY"
++.LP
++CTRL_ALT_H: activate online help
++.br
+ ALT_SPACE: open/close CJK mode
+-.br
++.br
+ CTRL_SPACE: open/close input method
+-.br
++.br
+ ALT_SPACE: show/hide input bar
+-.br
++.br
+ CTRL_,: toggle Full/Half char mode
+-.br
++.br
+ CTRL_.: toggle Chinese symbol
+-.br
+-CTRL_F1: set encode to GB2312
+-.br
+-CTRL_F2: set encode to GBK
+-.br
+-CTRL_F3: set encode to BIG5
+-.br
+-CTRL_F4: set encode to JIS
+-.br
+-CTRL_F5: set encode to KSCM
+-.br
++.br
++CTRL_F1: set encoding to GB2312
++.br
++CTRL_F2: set encoding to GBK
++.br
++CTRL_F3: set encoding to Big5
++.br
++CTRL_F4: set encoding to JIS
++.br
++CTRL_F5: set encoding to KSCM
++.br
+ CTRL_F7: toggle between nativebar and overspot input style
+-.br
+-CTRL_F9: toggle GB2312/BIG5 auto\-detect mode
+-.br
++.br
++CTRL_F9: toggle GB2312/Big5 auto\-detect mode
++.br
+ CTRL_F10: menu mode
+-.br
+-CTRL_ALT_1 \- CTRL_ALT_9: switch to input method 1 to 9
+-.br
+-CTRL_ALT_0: English mode
+-.br
++.br
++CTRL_ALT_1\-ALT_9: switch to Chinese input method 1 to 9
++.br
++CTRL_ALT_0: English input mode
++.br
+
+ History mode keys:
+-.br
++.br
+ SHIFT_PAGEUP: scroll up half screen in history
+-.br
++.br
+ SHIFT_PAGEDOWN: scroll down half screen in history
+-.br
++.br
+ SHIFT_ARROWUP: scroll up one line in history
+-.br
++.br
+ SHIFT_ARROWDOWN: scroll down one in history
+-
+ .SH "AUTHORS"
+-.LP
+-ejoy <ejoy@users.sourceforge.net>
+-.br
++.LP
++Zhang Le <ejoy@users.sourceforge.net>
++.br
+ Hu Yong <ccpaging@etang.com>
+-.br
++.br
+ Rick Lei <rick@chinaren.com>
+-.LP
+-This manpage is written by ejoy.
++.LP
++This manpage was written by Zhang Le.
+ .SH "SEE ALSO"
+-.LP
++.LP
diff --git a/chinese/zhcon/files/patch-src-global.h b/chinese/zhcon/files/patch-src-global.h
deleted file mode 100644
index 9f49708c4a44..000000000000
--- a/chinese/zhcon/files/patch-src-global.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/global.h.orig Thu Aug 7 12:54:31 2003
-+++ src/global.h Thu Aug 7 12:54:46 2003
-@@ -26,7 +26,7 @@
- //#endif
- #define _(String) gettext (String)
- #define gettext_noop(String) (String)
--
-+#include <assert.h>
- #include "graphdev.h"
- #include "hzdecoder.h"
- //class Console;
diff --git a/chinese/zhcon/files/patch-src-mouse.cpp b/chinese/zhcon/files/patch-src-mouse.cpp
deleted file mode 100644
index 7b39f069ab8c..000000000000
--- a/chinese/zhcon/files/patch-src-mouse.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/mouse.cpp.orig Sat Aug 16 16:36:28 2003
-+++ src/mouse.cpp Sat Aug 16 16:36:39 2003
-@@ -18,6 +18,7 @@
-
- #include "debug.h"
- #include "mouse.h"
-+#include <cassert>
- #include <sys/signal.h>
-
- #if defined(__FreeBSD__)