aboutsummaryrefslogtreecommitdiff
path: root/japanese/onew
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-01-03 21:03:42 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-01-03 21:03:42 +0000
commit45a8c2e0ecbf1a798a210e45bea43c156702abbf (patch)
treea881d514339bc48b977cd0a29dd8f89fd62108de /japanese/onew
parent92118f7e6c6d6a6c42745a94d174d11aacfc6e12 (diff)
downloadports-45a8c2e0ecbf1a798a210e45bea43c156702abbf.tar.gz
ports-45a8c2e0ecbf1a798a210e45bea43c156702abbf.zip
Notes
Diffstat (limited to 'japanese/onew')
-rw-r--r--japanese/onew/Makefile1
-rw-r--r--japanese/onew/files/patch-sys_sys.h35
2 files changed, 36 insertions, 0 deletions
diff --git a/japanese/onew/Makefile b/japanese/onew/Makefile
index d069458e4e11..f90f9ba5d332 100644
--- a/japanese/onew/Makefile
+++ b/japanese/onew/Makefile
@@ -7,6 +7,7 @@
PORTNAME= onew
PORTVERSION?= 2.2.10
+PORTREVISION= 1
PKGNAMESUFFIX= ${INPUT_METHOD}
CATEGORIES= japanese
MASTER_SITES= ftp://ftp.lab.kdd.co.jp/Japan/onew/ \
diff --git a/japanese/onew/files/patch-sys_sys.h b/japanese/onew/files/patch-sys_sys.h
new file mode 100644
index 000000000000..927e305ee5a3
--- /dev/null
+++ b/japanese/onew/files/patch-sys_sys.h
@@ -0,0 +1,35 @@
+--- sys/sys.h 1995-06-30 06:56:38.000000000 +0200
++++ sys/sys.h 2007-12-28 14:24:01.000000000 +0100
+@@ -29,12 +29,16 @@
+ || defined(sony_news) \
+ || defined(MACH) \
+ || defined(NeXT) \
+- || defined(bsdi) \
+- || defined(__FreeBSD__)
++ || defined(bsdi)
+ #define USE_SGTTY
+ #define HAS_SELECT
+ #endif
+
++#if defined(__FreeBSD__)
++#define USE_TERMIOS
++#define HAS_SELECT
++#endif
++
+ #if defined(solaris) \
+ || defined(sgi) \
+ || defined(nec_ews) \
+--- sys/tty.c 1994-02-09 08:45:24.000000000 +0100
++++ sys/tty.c 2007-12-28 14:31:11.000000000 +0100
+@@ -76,8 +76,10 @@
+ if( on )
+ buf.c_lflag |= (ECHO|ICANON);
+ else buf.c_lflag &= ~(ECHO|ICANON);
++ buf.c_cc[VMIN] = 0;
++ buf.c_cc[VTIME] = ('D'-0x40);
++ buf.c_lflag |= ICANON;
+ tcsetattr(fd, TCSADRAIN, &buf);
+- set_cbreak(fd,!on);
+ close(fd);
+ }
+ #endif