summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2011-04-04 01:04:40 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2011-04-04 01:04:40 +0000
commit3c439127037cb6c20d6c7d9592730f7922f3eb51 (patch)
treef0b4bd69c556d71b3cdb7527c558547cf9317d83 /dev-libs/m17n-lib
parentVersion bump; apply a patch from ChromiumOS by Peng Huang to fix issues with ... (diff)
downloadgentoo-2-3c439127037cb6c20d6c7d9592730f7922f3eb51.tar.gz
gentoo-2-3c439127037cb6c20d6c7d9592730f7922f3eb51.tar.bz2
gentoo-2-3c439127037cb6c20d6c7d9592730f7922f3eb51.zip
Version bump; fix up --disable-gui and add USE=X to disable the GUI functionalities; fix parallel-make failures; apply a patch from ChromiumOS by Peng Huang to fix issues with traditional Chinese input.
(Portage version: 2.2.0_alpha29/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/m17n-lib')
-rw-r--r--dev-libs/m17n-lib/ChangeLog13
-rw-r--r--dev-libs/m17n-lib/files/m17n-lib-1.6.2-candidates-list.patch83
-rw-r--r--dev-libs/m17n-lib/files/m17n-lib-1.6.2-gui.patch16
-rw-r--r--dev-libs/m17n-lib/files/m17n-lib-1.6.2-parallel-make.patch63
-rw-r--r--dev-libs/m17n-lib/m17n-lib-1.6.2.ebuild64
-rw-r--r--dev-libs/m17n-lib/metadata.xml12
6 files changed, 248 insertions, 3 deletions
diff --git a/dev-libs/m17n-lib/ChangeLog b/dev-libs/m17n-lib/ChangeLog
index 9d1d7d3f425d..d61dc9fef9c8 100644
--- a/dev-libs/m17n-lib/ChangeLog
+++ b/dev-libs/m17n-lib/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for dev-libs/m17n-lib
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/m17n-lib/ChangeLog,v 1.50 2010/01/31 11:49:02 armin76 Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/m17n-lib/ChangeLog,v 1.51 2011/04/04 01:04:40 flameeyes Exp $
+
+*m17n-lib-1.6.2 (04 Apr 2011)
+
+ 04 Apr 2011; Diego E. Pettenò <flameeyes@gentoo.org> +m17n-lib-1.6.2.ebuild,
+ +files/m17n-lib-1.6.2-candidates-list.patch, +files/m17n-lib-1.6.2-gui.patch,
+ +files/m17n-lib-1.6.2-parallel-make.patch, metadata.xml:
+ Version bump; fix up --disable-gui and add USE=X to disable the GUI
+ functionalities; fix parallel-make failures; apply a patch from ChromiumOS by
+ Peng Huang to fix issues with traditional Chinese input.
31 Jan 2010; Raúl Porcel <armin76@gentoo.org> m17n-lib-1.5.2.ebuild:
arm stable wrt #296159
diff --git a/dev-libs/m17n-lib/files/m17n-lib-1.6.2-candidates-list.patch b/dev-libs/m17n-lib/files/m17n-lib-1.6.2-candidates-list.patch
new file mode 100644
index 000000000000..40cd85d49c2b
--- /dev/null
+++ b/dev-libs/m17n-lib/files/m17n-lib-1.6.2-candidates-list.patch
@@ -0,0 +1,83 @@
+--- src/input.c 2011/02/14 04:59:22 1.154
++++ src/input.c 2011/03/09 05:45:49 1.155
+@@ -3004,9 +3004,6 @@
+ take_action_list (MInputContext *ic, MPlist *action_list)
+ {
+ MInputContextInfo *ic_info = (MInputContextInfo *) ic->info;
+- MPlist *candidate_list = ic->candidate_list;
+- int candidate_index = ic->candidate_index;
+- int candidate_show = ic->candidate_show;
+ MTextProperty *prop;
+
+ MPLIST_DO (action_list, action_list)
+@@ -3480,31 +3477,6 @@
+ };
+ }
+ }
+-
+- if (ic->candidate_list)
+- {
+- M17N_OBJECT_UNREF (ic->candidate_list);
+- ic->candidate_list = NULL;
+- }
+- if (ic->cursor_pos > 0
+- && (prop = mtext_get_property (ic->preedit, ic->cursor_pos - 1,
+- Mcandidate_list)))
+- {
+- ic->candidate_list = mtext_property_value (prop);
+- M17N_OBJECT_REF (ic->candidate_list);
+- ic->candidate_index
+- = (int) mtext_get_prop (ic->preedit, ic->cursor_pos - 1,
+- Mcandidate_index);
+- ic->candidate_from = mtext_property_start (prop);
+- ic->candidate_to = mtext_property_end (prop);
+- }
+-
+- if (candidate_list != ic->candidate_list)
+- ic->candidates_changed |= MINPUT_CANDIDATES_LIST_CHANGED;
+- if (candidate_index != ic->candidate_index)
+- ic->candidates_changed |= MINPUT_CANDIDATES_INDEX_CHANGED;
+- if (candidate_show != ic->candidate_show)
+- ic->candidates_changed |= MINPUT_CANDIDATES_SHOW_CHANGED;
+ return 0;
+ }
+
+@@ -3914,7 +3886,37 @@
+ ic_info->key_unhandled = 0;
+
+ do {
+- if (handle_key (ic) < 0)
++ MPlist *candidate_list = ic->candidate_list;
++ int candidate_index = ic->candidate_index;
++ int candidate_show = ic->candidate_show;
++ MTextProperty *prop;
++ int result = handle_key (ic);
++
++ if (ic->candidate_list)
++ {
++ M17N_OBJECT_UNREF (ic->candidate_list);
++ ic->candidate_list = NULL;
++ }
++ if (ic->cursor_pos > 0
++ && (prop = mtext_get_property (ic->preedit, ic->cursor_pos - 1,
++ Mcandidate_list)))
++ {
++ ic->candidate_list = mtext_property_value (prop);
++ M17N_OBJECT_REF (ic->candidate_list);
++ ic->candidate_index
++ = (int) mtext_get_prop (ic->preedit, ic->cursor_pos - 1,
++ Mcandidate_index);
++ ic->candidate_from = mtext_property_start (prop);
++ ic->candidate_to = mtext_property_end (prop);
++ }
++ if (candidate_list != ic->candidate_list)
++ ic->candidates_changed |= MINPUT_CANDIDATES_LIST_CHANGED;
++ if (candidate_index != ic->candidate_index)
++ ic->candidates_changed |= MINPUT_CANDIDATES_INDEX_CHANGED;
++ if (candidate_show != ic->candidate_show)
++ ic->candidates_changed |= MINPUT_CANDIDATES_SHOW_CHANGED;
++
++ if (result < 0)
+ {
+ /* KEY was not handled. Delete it from the current key sequence. */
+ if (ic_info->used > 0)
diff --git a/dev-libs/m17n-lib/files/m17n-lib-1.6.2-gui.patch b/dev-libs/m17n-lib/files/m17n-lib-1.6.2-gui.patch
new file mode 100644
index 000000000000..2c37246a6e5d
--- /dev/null
+++ b/dev-libs/m17n-lib/files/m17n-lib-1.6.2-gui.patch
@@ -0,0 +1,16 @@
+Index: m17n-lib-1.6.2/configure.ac
+===================================================================
+--- m17n-lib-1.6.2.orig/configure.ac
++++ m17n-lib-1.6.2/configure.ac
+@@ -100,9 +100,9 @@ dnl Checks which levels of APIs should b
+ AC_ARG_ENABLE(gui,
+ AS_HELP_STRING([--enable-gui],[enable GUI level APIs (default is YES)]))
+
+-AM_CONDITIONAL(WITH_GUI, test x$with_gui != xno)
++AM_CONDITIONAL(WITH_GUI, test x$enable_gui != xno)
+
+-if test x$with_gui != xno; then
++if test x$enable_gui != xno; then
+
+ dnl Checks if dlopen exists, and if it's in libc or libdl.
+
diff --git a/dev-libs/m17n-lib/files/m17n-lib-1.6.2-parallel-make.patch b/dev-libs/m17n-lib/files/m17n-lib-1.6.2-parallel-make.patch
new file mode 100644
index 000000000000..4402188aa887
--- /dev/null
+++ b/dev-libs/m17n-lib/files/m17n-lib-1.6.2-parallel-make.patch
@@ -0,0 +1,63 @@
+Index: m17n-lib-1.6.2/src/Makefile.am
+===================================================================
+--- m17n-lib-1.6.2.orig/src/Makefile.am
++++ m17n-lib-1.6.2/src/Makefile.am
+@@ -53,7 +53,7 @@ libm17n_la_SOURCES = \
+ language.h language.c \
+ mlocale.h locale.c \
+ m17n.h m17n.c
+-libm17n_la_LIBADD = ${top_builddir}/src/libm17n-core.la -ldl
++libm17n_la_LIBADD = libm17n-core.la -ldl
+ libm17n_la_LDFLAGS = -export-dynamic ${VINFO}
+
+ FLT_SOURCES = \
+@@ -61,7 +61,7 @@ FLT_SOURCES = \
+ m17n-flt.h m17n-flt.c
+
+ libm17n_flt_la_SOURCES = ${FLT_SOURCES}
+-libm17n_flt_la_LIBADD = ${top_builddir}/src/libm17n-core.la
++libm17n_flt_la_LIBADD = libm17n-core.la
+ libm17n_flt_la_LDFLAGS = -export-dynamic ${VINFO}
+
+ GUI_SOURCES = \
+@@ -80,7 +80,7 @@ OPTIONAL_LD_FLAGS = \
+ @FONTCONFIG_LD_FLAGS@
+
+ libm17n_gui_la_SOURCES = ${GUI_SOURCES}
+-libm17n_gui_la_LIBADD = ${OPTIONAL_LD_FLAGS} ${top_builddir}/src/libm17n-core.la ${top_builddir}/src/libm17n.la ${top_builddir}/src/libm17n-flt.la
++libm17n_gui_la_LIBADD = ${OPTIONAL_LD_FLAGS} libm17n-core.la libm17n.la libm17n-flt.la
+ libm17n_gui_la_LDFLAGS = -export-dynamic ${VINFO}
+
+ if WITH_GUI
+@@ -90,11 +90,11 @@ module_LTLIBRARIES = libm17n-X.la libm17
+ X_LD_FLAGS = ${X_PRE_LIBS} ${X_LIBS} @X11_LD_FLAGS@ ${X_EXTRA_LIBS}
+
+ libm17n_X_la_SOURCES = m17n-X.h m17n-X.c
+-libm17n_X_la_LIBADD = ${X_LD_FLAGS} @XFT2_LD_FLAGS@ ${top_builddir}/src/libm17n-core.la ${top_builddir}/src/libm17n.la ${top_builddir}/src/libm17n-flt.la ${top_builddir}/src/libm17n-gui.la
++libm17n_X_la_LIBADD = ${X_LD_FLAGS} @XFT2_LD_FLAGS@ libm17n-core.la libm17n.la libm17n-flt.la libm17n-gui.la
+ libm17n_X_la_LDFLAGS = -avoid-version -module
+
+ libm17n_gd_la_SOURCES = m17n-gd.c
+-libm17n_gd_la_LIBADD = @GD_LD_FLAGS@ @FREETYPE_LD_FLAGS@ ${top_builddir}/src/libm17n-core.la ${top_builddir}/src/libm17n.la ${top_builddir}/src/libm17n-flt.la ${top_builddir}/src/libm17n-gui.la
++libm17n_gd_la_LIBADD = @GD_LD_FLAGS@ @FREETYPE_LD_FLAGS@ libm17n-core.la libm17n.la libm17n-flt.la libm17n-gui.la
+ libm17n_gd_la_LDFLAGS = -avoid-version -module
+
+ endif
+@@ -121,14 +121,14 @@ if MAINTAINER_MODE
+ noinst_PROGRAMS = linkcore linkshell linkgui
+
+ linkcore_SOURCES = linkcore.c
+-linkcore_LDADD = ${top_builddir}/src/libm17n-core.la
++linkcore_LDADD = libm17n-core.la
+ linkcore_LDFLAGS = -static
+
+ linkshell_SOURCES = linkshell.c
+-linkshell_LDADD = ${top_builddir}/src/libm17n.la
++linkshell_LDADD = libm17n.la
+ linkshell_LDFLAGS = -static
+
+ linkgui_SOURCES = linkgui.c
+-linkgui_LDADD = ${top_builddir}/src/libm17n-gui.la
++linkgui_LDADD = libm17n-gui.la
+ linkgui_LDFLAGS = -static
+ endif
diff --git a/dev-libs/m17n-lib/m17n-lib-1.6.2.ebuild b/dev-libs/m17n-lib/m17n-lib-1.6.2.ebuild
new file mode 100644
index 000000000000..238c83786c35
--- /dev/null
+++ b/dev-libs/m17n-lib/m17n-lib-1.6.2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/m17n-lib/m17n-lib-1.6.2.ebuild,v 1.1 2011/04/04 01:04:40 flameeyes Exp $
+
+EAPI=4
+
+inherit eutils autotools
+
+DESCRIPTION="Multilingual Library for Unix/Linux"
+HOMEPAGE="http://www.m17n.org/m17n-lib/"
+SRC_URI="http://www.m17n.org/m17n-lib-download/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
+#IUSE="anthy gd ispell"
+IUSE="gd X"
+
+RDEPEND="
+ X? (
+ x11-libs/libXaw
+ x11-libs/libXft
+ x11-libs/libX11
+ gd? ( media-libs/gd[png] )
+ dev-libs/fribidi
+ >=media-libs/freetype-2.1
+ media-libs/fontconfig
+ >=dev-libs/libotf-0.9.4
+ )
+ dev-libs/libxml2
+ ~dev-db/m17n-db-${PV}"
+# linguas_th? ( || ( app-i18n/libthai app-i18n/wordcut ) )
+# anthy? ( app-i18n/anthy )
+# ispell? ( app-text/ispell )
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gui.patch \
+ "${FILESDIR}"/${P}-parallel-make.patch \
+ "${FILESDIR}"/${P}-candidates-list.patch
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=
+
+ if use X; then
+ myconf+=" --enable-gui $(use_with gd)"
+ else
+ myconf+=" --disable-gui --without-gd"
+ fi
+
+ econf ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}
diff --git a/dev-libs/m17n-lib/metadata.xml b/dev-libs/m17n-lib/metadata.xml
index 2d5852c16c60..aedfbc44e579 100644
--- a/dev-libs/m17n-lib/metadata.xml
+++ b/dev-libs/m17n-lib/metadata.xml
@@ -1,5 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>cjk</herd>
+ <herd>cjk</herd>
+ <use>
+ <flag name='X'>
+ Builds the Graphical User Interface API and utilities for the
+ package.
+ </flag>
+ <flag name='gd'>
+ Build API and utilities based on <pkg>media-libs/gd</pkg>. This
+ flag is only meaningful if the X USE flag is also enabled.
+ </flag>
+ </use>
</pkgmetadata>