mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Add uim, an input method library.
This commit is contained in:
parent
3907fa65a4
commit
cdf7bf03b4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88191
19 changed files with 391 additions and 0 deletions
|
@ -371,6 +371,7 @@
|
|||
SUBDIR += today
|
||||
SUBDIR += truetypefonts
|
||||
SUBDIR += typist
|
||||
SUBDIR += uim
|
||||
SUBDIR += vera-fpw
|
||||
SUBDIR += vflib
|
||||
SUBDIR += vftool
|
||||
|
|
54
japanese/uim/Makefile
Normal file
54
japanese/uim/Makefile
Normal file
|
@ -0,0 +1,54 @@
|
|||
# New ports collection makefile for: uim
|
||||
# Date created: 31 August 2003
|
||||
# Whom: MANTANI Nobutaka <nobutaka@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= uim
|
||||
PORTVERSION= 0.0.2.1
|
||||
CATEGORIES= japanese x11
|
||||
MASTER_SITES= http://downloads.sourceforge.jp/anthy/5771/
|
||||
|
||||
MAINTAINER= nobutaka@FreeBSD.org
|
||||
COMMENT= Input method library
|
||||
|
||||
LIB_DEPENDS= anthy.0:${PORTSDIR}/japanese/anthy
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
WANT_GNOME= yes
|
||||
USE_GNOME= gnometarget glib20
|
||||
USE_GMAKE= yes
|
||||
USE_LIBTOOL= yes
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
|
||||
|
||||
DOCSDIR_JA= ${PREFIX}/share/doc/ja/uim
|
||||
PLIST_SUB+= DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${HAVE_GNOME:Mgtk20}
|
||||
USE_GNOME+= gtk20
|
||||
PLIST_SUB+= GTK=""
|
||||
.else
|
||||
PLIST_SUB+= GTK="@comment "
|
||||
.endif
|
||||
|
||||
.if ${HAVE_GNOME:Mlibgnome}
|
||||
USE_GNOME+= libgnome
|
||||
PLIST_SUB+= GNOME=""
|
||||
.else
|
||||
PLIST_SUB+= GNOME="@comment "
|
||||
.endif
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
post-install:
|
||||
${MKDIR} ${DOCSDIR_JA}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.ja ${DOCSDIR_JA}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
1
japanese/uim/distinfo
Normal file
1
japanese/uim/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (uim-0.0.2.1.tar.gz) = d8195a47be0cff1f4a7b6e0fab8f1cd9
|
13
japanese/uim/files/patch-Makefile.in
Normal file
13
japanese/uim/files/patch-Makefile.in
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- Makefile.in.orig Sat Aug 30 09:37:54 2003
|
||||
+++ Makefile.in Sun Aug 31 15:38:52 2003
|
||||
@@ -131,7 +131,9 @@
|
||||
am__quote = @am__quote@
|
||||
install_sh = @install_sh@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
-SUBDIRS = m4 doc scm uim xim helper po gtk
|
||||
+SUBDIRS = m4 doc scm uim xim po
|
||||
+@GTK2_TRUE@SUBDIRS := $(SUBDIRS) gtk
|
||||
+@GNOME2_TRUE@SUBDIRS := $(SUBDIRS) helper
|
||||
EXTRA_DIST = README.ja INSTALL.ja test.sh.in uim.spec.in \
|
||||
intltool-extract.in intltool-merge.in intltool-update.in
|
||||
|
24
japanese/uim/files/patch-configure
Normal file
24
japanese/uim/files/patch-configure
Normal file
|
@ -0,0 +1,24 @@
|
|||
--- configure.orig Mon Aug 25 23:34:01 2003
|
||||
+++ configure Mon Aug 25 23:34:40 2003
|
||||
@@ -21430,10 +21430,6 @@
|
||||
|
||||
if test $succeeded = yes; then
|
||||
use_gtk2="yes"
|
||||
- else
|
||||
- { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
|
||||
-echo "$as_me: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
|
||||
- { (exit 1); exit 1; }; }
|
||||
fi
|
||||
|
||||
|
||||
@@ -21528,10 +21524,6 @@
|
||||
|
||||
if test $succeeded = yes; then
|
||||
use_gnome2="yes"
|
||||
- else
|
||||
- { { echo "$as_me:$LINENO: error: Library requirements (libgnome-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
|
||||
-echo "$as_me: error: Library requirements (libgnome-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
|
||||
- { (exit 1); exit 1; }; }
|
||||
fi
|
||||
|
||||
|
16
japanese/uim/files/patch-gtk:gtk-im-uim.c
Normal file
16
japanese/uim/files/patch-gtk:gtk-im-uim.c
Normal file
|
@ -0,0 +1,16 @@
|
|||
--- gtk/gtk-im-uim.c.orig Sun Aug 31 15:40:29 2003
|
||||
+++ gtk/gtk-im-uim.c Sun Aug 31 15:41:10 2003
|
||||
@@ -109,10 +109,12 @@
|
||||
static void
|
||||
pushback_cb(void *ptr, int attr, char *str)
|
||||
{
|
||||
+ IMUIMContext *uic;
|
||||
+
|
||||
if(!str)
|
||||
return;
|
||||
|
||||
- IMUIMContext *uic = ptr;
|
||||
+ uic = ptr;
|
||||
uic->pseg = realloc(uic->pseg,
|
||||
sizeof(struct preedit_segment) *
|
||||
(uic->nr_psegs + 1));
|
25
japanese/uim/files/patch-uim:uim-func.c
Normal file
25
japanese/uim/files/patch-uim:uim-func.c
Normal file
|
@ -0,0 +1,25 @@
|
|||
--- uim/uim-func.c.orig Sun Aug 31 15:09:52 2003
|
||||
+++ uim/uim-func.c Sun Aug 31 15:10:19 2003
|
||||
@@ -97,15 +97,17 @@
|
||||
char *
|
||||
uim_code_conv(char *str, iconv_t ic)
|
||||
{
|
||||
+ int len, buflen;
|
||||
+ char *realbuf, *outbuf, *inbuf;
|
||||
|
||||
if(!str)
|
||||
return NULL;
|
||||
|
||||
- int len = strlen(str);
|
||||
- int buflen = len * 6+3;
|
||||
- char *realbuf = alloca(buflen);
|
||||
- char *outbuf = realbuf;
|
||||
- char *inbuf = str;
|
||||
+ len = strlen(str);
|
||||
+ buflen = len * 6+3;
|
||||
+ realbuf = alloca(buflen);
|
||||
+ outbuf = realbuf;
|
||||
+ inbuf = str;
|
||||
if (!ic) {
|
||||
return strdup(str);
|
||||
}
|
11
japanese/uim/files/patch-xim:Makefile.in
Normal file
11
japanese/uim/files/patch-xim:Makefile.in
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- xim/Makefile.in.orig Mon Aug 25 23:44:36 2003
|
||||
+++ xim/Makefile.in Mon Aug 25 23:45:03 2003
|
||||
@@ -139,7 +139,7 @@
|
||||
install_sh = @install_sh@
|
||||
|
||||
INCLUDES = -I$(top_srcdir)
|
||||
-CPPFLAGS = -DLOCALEDIR=\""$(localedir)"\"
|
||||
+CPPFLAGS = @CPPFLAGS@ -DLOCALEDIR=\""$(localedir)"\"
|
||||
|
||||
bin_PROGRAMS = uim-xim
|
||||
uim_xim_LDFLAGS = -L/usr/lib -L/usr/X11R6/lib
|
11
japanese/uim/pkg-descr
Normal file
11
japanese/uim/pkg-descr
Normal file
|
@ -0,0 +1,11 @@
|
|||
uim aims for multilingual input method library.
|
||||
It works as an XIM server or an input module of GTK+ 2.x.
|
||||
And currently it supports following input methods.
|
||||
|
||||
Chinese: Pinyin
|
||||
Japanese: Anthy, Prime, SKK, T-code, TUT-code
|
||||
Korean: Hangul
|
||||
Vietnamese: VIQR
|
||||
Other: IPA
|
||||
|
||||
WWW: http://anthy.sourceforge.jp/
|
40
japanese/uim/pkg-plist
Normal file
40
japanese/uim/pkg-plist
Normal file
|
@ -0,0 +1,40 @@
|
|||
bin/uim-xim
|
||||
include/uim/uim.h
|
||||
%%GNOME%%lib/bonobo/servers/GNOME_UimApplet.server
|
||||
%%GTK%%lib/gtk-2.0/2.2.0/immodules/im-uim.a
|
||||
%%GTK%%lib/gtk-2.0/2.2.0/immodules/im-uim.la
|
||||
%%GTK%%lib/gtk-2.0/2.2.0/immodules/im-uim.so
|
||||
lib/libuim.a
|
||||
lib/libuim.la
|
||||
lib/libuim.so
|
||||
lib/libuim.so.0
|
||||
%%PORTDOCS%%%%DOCSDIR_JA%%/README.ja
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
share/locale/ja/LC_MESSAGES/uim.mo
|
||||
share/uim/PY.scm
|
||||
share/uim/anthy.scm
|
||||
share/uim/canna.scm
|
||||
share/uim/default.scm
|
||||
share/uim/generic-key.scm
|
||||
share/uim/generic.scm
|
||||
share/uim/hangul.scm
|
||||
share/uim/hangul2.scm
|
||||
share/uim/hangul3.scm
|
||||
share/uim/im.scm
|
||||
share/uim/ipa.scm
|
||||
share/uim/japanese.scm
|
||||
share/uim/key.scm
|
||||
share/uim/loader.scm
|
||||
share/uim/prime.scm
|
||||
share/uim/rk.scm
|
||||
share/uim/skk.scm
|
||||
share/uim/tcode.scm
|
||||
share/uim/tutcode.scm
|
||||
share/uim/util.scm
|
||||
share/uim/viqr.scm
|
||||
@dirrm include/uim
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR_JA%%
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@dirrm share/uim
|
||||
%%GTK%%@exec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
|
||||
%%GTK%%@unexec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
|
54
textproc/uim/Makefile
Normal file
54
textproc/uim/Makefile
Normal file
|
@ -0,0 +1,54 @@
|
|||
# New ports collection makefile for: uim
|
||||
# Date created: 31 August 2003
|
||||
# Whom: MANTANI Nobutaka <nobutaka@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= uim
|
||||
PORTVERSION= 0.0.2.1
|
||||
CATEGORIES= japanese x11
|
||||
MASTER_SITES= http://downloads.sourceforge.jp/anthy/5771/
|
||||
|
||||
MAINTAINER= nobutaka@FreeBSD.org
|
||||
COMMENT= Input method library
|
||||
|
||||
LIB_DEPENDS= anthy.0:${PORTSDIR}/japanese/anthy
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
WANT_GNOME= yes
|
||||
USE_GNOME= gnometarget glib20
|
||||
USE_GMAKE= yes
|
||||
USE_LIBTOOL= yes
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
|
||||
|
||||
DOCSDIR_JA= ${PREFIX}/share/doc/ja/uim
|
||||
PLIST_SUB+= DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${HAVE_GNOME:Mgtk20}
|
||||
USE_GNOME+= gtk20
|
||||
PLIST_SUB+= GTK=""
|
||||
.else
|
||||
PLIST_SUB+= GTK="@comment "
|
||||
.endif
|
||||
|
||||
.if ${HAVE_GNOME:Mlibgnome}
|
||||
USE_GNOME+= libgnome
|
||||
PLIST_SUB+= GNOME=""
|
||||
.else
|
||||
PLIST_SUB+= GNOME="@comment "
|
||||
.endif
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
post-install:
|
||||
${MKDIR} ${DOCSDIR_JA}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.ja ${DOCSDIR_JA}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
1
textproc/uim/distinfo
Normal file
1
textproc/uim/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (uim-0.0.2.1.tar.gz) = d8195a47be0cff1f4a7b6e0fab8f1cd9
|
13
textproc/uim/files/patch-Makefile.in
Normal file
13
textproc/uim/files/patch-Makefile.in
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- Makefile.in.orig Sat Aug 30 09:37:54 2003
|
||||
+++ Makefile.in Sun Aug 31 15:38:52 2003
|
||||
@@ -131,7 +131,9 @@
|
||||
am__quote = @am__quote@
|
||||
install_sh = @install_sh@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
-SUBDIRS = m4 doc scm uim xim helper po gtk
|
||||
+SUBDIRS = m4 doc scm uim xim po
|
||||
+@GTK2_TRUE@SUBDIRS := $(SUBDIRS) gtk
|
||||
+@GNOME2_TRUE@SUBDIRS := $(SUBDIRS) helper
|
||||
EXTRA_DIST = README.ja INSTALL.ja test.sh.in uim.spec.in \
|
||||
intltool-extract.in intltool-merge.in intltool-update.in
|
||||
|
24
textproc/uim/files/patch-configure
Normal file
24
textproc/uim/files/patch-configure
Normal file
|
@ -0,0 +1,24 @@
|
|||
--- configure.orig Mon Aug 25 23:34:01 2003
|
||||
+++ configure Mon Aug 25 23:34:40 2003
|
||||
@@ -21430,10 +21430,6 @@
|
||||
|
||||
if test $succeeded = yes; then
|
||||
use_gtk2="yes"
|
||||
- else
|
||||
- { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
|
||||
-echo "$as_me: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
|
||||
- { (exit 1); exit 1; }; }
|
||||
fi
|
||||
|
||||
|
||||
@@ -21528,10 +21524,6 @@
|
||||
|
||||
if test $succeeded = yes; then
|
||||
use_gnome2="yes"
|
||||
- else
|
||||
- { { echo "$as_me:$LINENO: error: Library requirements (libgnome-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
|
||||
-echo "$as_me: error: Library requirements (libgnome-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
|
||||
- { (exit 1); exit 1; }; }
|
||||
fi
|
||||
|
||||
|
16
textproc/uim/files/patch-gtk:gtk-im-uim.c
Normal file
16
textproc/uim/files/patch-gtk:gtk-im-uim.c
Normal file
|
@ -0,0 +1,16 @@
|
|||
--- gtk/gtk-im-uim.c.orig Sun Aug 31 15:40:29 2003
|
||||
+++ gtk/gtk-im-uim.c Sun Aug 31 15:41:10 2003
|
||||
@@ -109,10 +109,12 @@
|
||||
static void
|
||||
pushback_cb(void *ptr, int attr, char *str)
|
||||
{
|
||||
+ IMUIMContext *uic;
|
||||
+
|
||||
if(!str)
|
||||
return;
|
||||
|
||||
- IMUIMContext *uic = ptr;
|
||||
+ uic = ptr;
|
||||
uic->pseg = realloc(uic->pseg,
|
||||
sizeof(struct preedit_segment) *
|
||||
(uic->nr_psegs + 1));
|
25
textproc/uim/files/patch-uim:uim-func.c
Normal file
25
textproc/uim/files/patch-uim:uim-func.c
Normal file
|
@ -0,0 +1,25 @@
|
|||
--- uim/uim-func.c.orig Sun Aug 31 15:09:52 2003
|
||||
+++ uim/uim-func.c Sun Aug 31 15:10:19 2003
|
||||
@@ -97,15 +97,17 @@
|
||||
char *
|
||||
uim_code_conv(char *str, iconv_t ic)
|
||||
{
|
||||
+ int len, buflen;
|
||||
+ char *realbuf, *outbuf, *inbuf;
|
||||
|
||||
if(!str)
|
||||
return NULL;
|
||||
|
||||
- int len = strlen(str);
|
||||
- int buflen = len * 6+3;
|
||||
- char *realbuf = alloca(buflen);
|
||||
- char *outbuf = realbuf;
|
||||
- char *inbuf = str;
|
||||
+ len = strlen(str);
|
||||
+ buflen = len * 6+3;
|
||||
+ realbuf = alloca(buflen);
|
||||
+ outbuf = realbuf;
|
||||
+ inbuf = str;
|
||||
if (!ic) {
|
||||
return strdup(str);
|
||||
}
|
11
textproc/uim/files/patch-xim:Makefile.in
Normal file
11
textproc/uim/files/patch-xim:Makefile.in
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- xim/Makefile.in.orig Mon Aug 25 23:44:36 2003
|
||||
+++ xim/Makefile.in Mon Aug 25 23:45:03 2003
|
||||
@@ -139,7 +139,7 @@
|
||||
install_sh = @install_sh@
|
||||
|
||||
INCLUDES = -I$(top_srcdir)
|
||||
-CPPFLAGS = -DLOCALEDIR=\""$(localedir)"\"
|
||||
+CPPFLAGS = @CPPFLAGS@ -DLOCALEDIR=\""$(localedir)"\"
|
||||
|
||||
bin_PROGRAMS = uim-xim
|
||||
uim_xim_LDFLAGS = -L/usr/lib -L/usr/X11R6/lib
|
11
textproc/uim/pkg-descr
Normal file
11
textproc/uim/pkg-descr
Normal file
|
@ -0,0 +1,11 @@
|
|||
uim aims for multilingual input method library.
|
||||
It works as an XIM server or an input module of GTK+ 2.x.
|
||||
And currently it supports following input methods.
|
||||
|
||||
Chinese: Pinyin
|
||||
Japanese: Anthy, Prime, SKK, T-code, TUT-code
|
||||
Korean: Hangul
|
||||
Vietnamese: VIQR
|
||||
Other: IPA
|
||||
|
||||
WWW: http://anthy.sourceforge.jp/
|
40
textproc/uim/pkg-plist
Normal file
40
textproc/uim/pkg-plist
Normal file
|
@ -0,0 +1,40 @@
|
|||
bin/uim-xim
|
||||
include/uim/uim.h
|
||||
%%GNOME%%lib/bonobo/servers/GNOME_UimApplet.server
|
||||
%%GTK%%lib/gtk-2.0/2.2.0/immodules/im-uim.a
|
||||
%%GTK%%lib/gtk-2.0/2.2.0/immodules/im-uim.la
|
||||
%%GTK%%lib/gtk-2.0/2.2.0/immodules/im-uim.so
|
||||
lib/libuim.a
|
||||
lib/libuim.la
|
||||
lib/libuim.so
|
||||
lib/libuim.so.0
|
||||
%%PORTDOCS%%%%DOCSDIR_JA%%/README.ja
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
share/locale/ja/LC_MESSAGES/uim.mo
|
||||
share/uim/PY.scm
|
||||
share/uim/anthy.scm
|
||||
share/uim/canna.scm
|
||||
share/uim/default.scm
|
||||
share/uim/generic-key.scm
|
||||
share/uim/generic.scm
|
||||
share/uim/hangul.scm
|
||||
share/uim/hangul2.scm
|
||||
share/uim/hangul3.scm
|
||||
share/uim/im.scm
|
||||
share/uim/ipa.scm
|
||||
share/uim/japanese.scm
|
||||
share/uim/key.scm
|
||||
share/uim/loader.scm
|
||||
share/uim/prime.scm
|
||||
share/uim/rk.scm
|
||||
share/uim/skk.scm
|
||||
share/uim/tcode.scm
|
||||
share/uim/tutcode.scm
|
||||
share/uim/util.scm
|
||||
share/uim/viqr.scm
|
||||
@dirrm include/uim
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR_JA%%
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@dirrm share/uim
|
||||
%%GTK%%@exec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
|
||||
%%GTK%%@unexec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
|
Loading…
Add table
Reference in a new issue