diff --git a/japanese/scim-uim/Makefile b/japanese/scim-uim/Makefile index 151580cfa1df..69e8aa6a5ac0 100644 --- a/japanese/scim-uim/Makefile +++ b/japanese/scim-uim/Makefile @@ -7,7 +7,7 @@ PORTNAME= scim-uim PORTVERSION= 0.1.4 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= japanese MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://freedesktop.org/~suzhe/sources/ @@ -20,8 +20,6 @@ BUILD_DEPENDS= scim:${PORTSDIR}/textproc/scim LIB_DEPENDS= uim:${PORTSDIR}/textproc/uim RUN_DEPENDS= ${BUILD_DEPENDS} -BROKEN= Does not compile - USE_AUTOTOOLS= libtool:15 USE_GNOME= lthack USE_X_LIB= yes @@ -34,12 +32,13 @@ CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ .include +EXTRA_PATCHES= ${FILESDIR}/extra-patch-aa ${FILESDIR}/extra-patch-ab .if ${OSVERSION} < 500035 BUILD_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport RUN_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include -I${LOCALBASE}/include/stlport" \ LDFLAGS="-L${LOCALBASE}/lib -lstlport_gcc -lintl ${PTHREAD_LIBS}" -EXTRA_PATCHES= ${FILESDIR}/extra-patch-4-stable +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-4-stable .else CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include -D__STDC_ISO_10646__" \ LDFLAGS="-L${LOCALBASE}/lib -lintl" diff --git a/japanese/scim-uim/files/extra-patch-aa b/japanese/scim-uim/files/extra-patch-aa new file mode 100644 index 000000000000..3440e4e44e97 --- /dev/null +++ b/japanese/scim-uim/files/extra-patch-aa @@ -0,0 +1,42 @@ +--- src/scim_uim_imengine.cpp.orig Mon Aug 8 12:08:34 2005 ++++ src/scim_uim_imengine.cpp Mon Mar 26 17:12:57 2007 +@@ -823,39 +823,6 @@ + } + } + +-void +-UIMInstance::uim_surrounding_text_request_cb (void *ptr) +-{ +- UIMInstance *this_ptr = static_cast (ptr); +- if (this_ptr) { +- +- SCIM_DEBUG_IMENGINE(2) << "uim_surrounding_text_request_cb.\n"; +- +- WideString wstr; +- int cursor; +- +- if (this_ptr->get_surrounding_text (wstr, cursor)) { +- String str = utf8_wcstombs (wstr); +- uim_set_surrounding_text (this_ptr->m_uc, str.c_str (), cursor, wstr.length ()); +- } +- } +-} +- +-int +-UIMInstance::uim_surrounding_text_delete_cb (void *ptr, int offset, int len) +-{ +- UIMInstance *this_ptr = static_cast (ptr); +- int ret = -1; +- +- if (this_ptr) { +- SCIM_DEBUG_IMENGINE(2) << "uim_surrounding_text_delete_cb.\n"; +- +- if (this_ptr->delete_surrounding_text (offset, len)) +- ret = 0; +- } +- +- return ret; +-} + /* + vi:ts=4:nowrap:ai:expandtab + */ diff --git a/japanese/scim-uim/files/extra-patch-ab b/japanese/scim-uim/files/extra-patch-ab new file mode 100644 index 000000000000..1987de4feae4 --- /dev/null +++ b/japanese/scim-uim/files/extra-patch-ab @@ -0,0 +1,12 @@ +--- src/scim_uim_imengine.h.orig Mon Mar 26 17:12:19 2007 ++++ src/scim_uim_imengine.h Mon Mar 26 17:12:55 2007 +@@ -104,9 +104,6 @@ + static void uim_cand_select_cb (void *ptr, int index); + static void uim_cand_shift_page_cb (void *ptr, int dir); + static void uim_cand_deactive_cb (void *ptr); +- +- static void uim_surrounding_text_request_cb (void *ptr); +- static int uim_surrounding_text_delete_cb (void *ptr, int offset, int len); + }; + #endif + /* diff --git a/japanese/scim-uim/pkg-plist b/japanese/scim-uim/pkg-plist index 841d226a7832..89240f485d24 100644 --- a/japanese/scim-uim/pkg-plist +++ b/japanese/scim-uim/pkg-plist @@ -1,6 +1,5 @@ -lib/scim-1.0/IMEngine/uim.a -lib/scim-1.0/IMEngine/uim.la -lib/scim-1.0/IMEngine/uim.so +lib/scim-1.0/1.4.0/IMEngine/uim.a +lib/scim-1.0/1.4.0/IMEngine/uim.la +lib/scim-1.0/1.4.0/IMEngine/uim.so share/scim/icons/scim-uim.png -@dirrmtry lib/scim-1.0/IMEngine -@dirrmtry lib/scim-1.0/icons +@dirrmtry share/scim/icons