diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2009-02-22 21:16:40 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2009-02-22 21:16:40 +0000 |
commit | 8065fe301e69377450e8fd74834c580fbad2f2b2 (patch) | |
tree | ce89c8801a7ae1239e415ad17c32e054b53e7b84 /app-i18n/libtomoe-gtk | |
parent | Add missing media-libs/libmng to DEPEND, see bug #259800. (diff) | |
download | historical-8065fe301e69377450e8fd74834c580fbad2f2b2.tar.gz historical-8065fe301e69377450e8fd74834c580fbad2f2b2.tar.bz2 historical-8065fe301e69377450e8fd74834c580fbad2f2b2.zip |
Bump to 0.6.0-r1. Fix build with gucharmap-2.24, bug #243160. Make gucharmap optional with EAPI 2 love.
Package-Manager: portage-2.2_rc23/cvs/Linux x86_64
Diffstat (limited to 'app-i18n/libtomoe-gtk')
-rw-r--r-- | app-i18n/libtomoe-gtk/ChangeLog | 12 | ||||
-rw-r--r-- | app-i18n/libtomoe-gtk/Manifest | 16 | ||||
-rw-r--r-- | app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-gucharmap2.patch | 238 | ||||
-rw-r--r-- | app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r1.ebuild | 47 | ||||
-rw-r--r-- | app-i18n/libtomoe-gtk/metadata.xml | 3 |
5 files changed, 312 insertions, 4 deletions
diff --git a/app-i18n/libtomoe-gtk/ChangeLog b/app-i18n/libtomoe-gtk/ChangeLog index 68e768a9d46f..90a9c6d7a216 100644 --- a/app-i18n/libtomoe-gtk/ChangeLog +++ b/app-i18n/libtomoe-gtk/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-i18n/libtomoe-gtk -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/libtomoe-gtk/ChangeLog,v 1.10 2008/09/23 16:35:42 matsuu Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/libtomoe-gtk/ChangeLog,v 1.11 2009/02/22 21:16:40 eva Exp $ + +*libtomoe-gtk-0.6.0-r1 (22 Feb 2009) + + 22 Feb 2009; Gilles Dartiguelongue <eva@gentoo.org> + +files/libtomoe-gtk-0.6.0-gucharmap2.patch, metadata.xml, + +libtomoe-gtk-0.6.0-r1.ebuild: + Bump to 0.6.0-r1. Fix build with gucharmap-2.24, bug #243160. + Make gucharmap optional with EAPI 2 love. 23 Sep 2008; MATSUU Takuto <matsuu@gentoo.org> libtomoe-gtk-0.6.0.ebuild: Fixed dependency on dev-util/gtk-doc, bug #221709. diff --git a/app-i18n/libtomoe-gtk/Manifest b/app-i18n/libtomoe-gtk/Manifest index 289f62632482..84579401e88a 100644 --- a/app-i18n/libtomoe-gtk/Manifest +++ b/app-i18n/libtomoe-gtk/Manifest @@ -1,4 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX libtomoe-gtk-0.6.0-gucharmap2.patch 7945 RMD160 3c26aea7e23b29aec7b4ae38e9e60ce81ddb6094 SHA1 0304ce8af6eb7cfea6ed5a75fe6d168fbd63d340 SHA256 6ac285615e0bffba6c39846afcd12962c9e6edf0cbc9400a5a28eac867c809bc DIST tomoe-gtk-0.6.0.tar.gz 448058 RMD160 72e0954b8994d1e62acb7d4cb0c478dadb54b8f0 SHA1 dddb1178c437380a92b59dbc273dafdd2045e1d1 SHA256 4e9b228e25451b1e875127a57eb40270e38c59cf4d46bc25c208e370d884ba64 +EBUILD libtomoe-gtk-0.6.0-r1.ebuild 1071 RMD160 c30288b710c7989b92463000a32979e0f1c2a696 SHA1 85e551155d4802bf28c46164384690008878ae95 SHA256 2179dc806daa2d45c5335c8b522e90f477e005f3d4896be48f5b4d335664ed94 EBUILD libtomoe-gtk-0.6.0.ebuild 842 RMD160 bf22b5965dcae644450d52c832dfacb5b964acfa SHA1 5c420d37944d9928dde1be59ee3d247149c290b5 SHA256 51fad8fe51c869a6431a583f125bf28d5ea94b097360388a43c3f1929881ccef -MISC ChangeLog 1742 RMD160 5a42a1bb6e0162042ab6b5ef4721dac6e3f7be86 SHA1 ed4a4dfe6477f203b1bf1b023dde90afe02b3247 SHA256 ae99b5ff1a2ef7538fd110302e8103e72ea2441b814b9b40f58b467b09449251 -MISC metadata.xml 157 RMD160 97adcce791d5b0e94b3844a1e27e00be60378454 SHA1 e11f0d9b1f8c57c4f50e453a89d2e61cf737329a SHA256 92a8379a3f1d8c9e52e17dbaf224721ad5bd6ba9fba4302e909aa2b099b33f89 +MISC ChangeLog 2033 RMD160 c30c17a7bff975d6acdd4c2946fbb9b035ce3ed9 SHA1 78e9c344490f5349aa9a3f336348184d5720f573 SHA256 15ae66e0296c27ec8a1e3dc91a5b9c09e7eaced51abdafe29dbd5dfd540f0457 +MISC metadata.xml 236 RMD160 1cb61037b0cf761f4823da85befe9f91352af1f3 SHA1 1315236a62927ab9992425322fe761114f117ab5 SHA256 74c11e14aec9152565aeaf815c2af06db75d65f1da66d069317277eb2b8f9f11 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.10 (GNU/Linux) + +iEYEARECAAYFAkmhwL4ACgkQ1fmVwcYIWAZzNACfXmSTtPNfikacscTcCOwPdhMC +IE0AoLj0u+bo1RnHB0KJL2kglOl5nyXZ +=4y3L +-----END PGP SIGNATURE----- diff --git a/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-gucharmap2.patch b/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-gucharmap2.patch new file mode 100644 index 000000000000..68dd0d466c6e --- /dev/null +++ b/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-gucharmap2.patch @@ -0,0 +1,238 @@ +--- + Update libtomoe-gtk to gucharmap-2 API + https://bugs.gentoo.org/show_bug.cgi?id=243160 + + Makefile.am | 1 + bindings/python/Makefile.am | 5 ++- + configure.ac | 14 +++++--- + src/tomoe-gucharmap.c | 71 +++++++++++++++++++++++++++++++++++++++----- + 4 files changed, 78 insertions(+), 13 deletions(-) + +--- a/Makefile.am 2007-06-07 14:36:06.000000000 +0900 ++++ b/Makefile.am 2008-12-21 01:24:06.000000000 +0900 +@@ -1,3 +1,4 @@ ++ACLOCAL_AMFLAGS = -I macros + SUBDIRS=src data po test doc bindings + + EXTRA_DIST = autogen.sh tomoe-gtk.pc +--- a/configure.ac 2007-06-12 17:17:23.000000000 +0900 ++++ b/configure.ac 2008-12-21 01:08:16.000000000 +0900 +@@ -94,6 +94,9 @@ + AC_SUBST(TOMOE_CFLAGS) + AC_SUBST(TOMOE_LIBS) + ++TOMOE_GTK_REQUIRED_LIBS="tomoe >= 0.4.0 gtk+-2.0 >= 2.4.0" ++AC_SUBST(TOMOE_GTK_REQUIRED_LIBS) ++ + # Checks for gucharmap + AC_ARG_WITH(gucharmap, + AS_HELP_STRING([--with-gucharmap], +@@ -102,14 +105,15 @@ + [use_gucharmap=yes]) + if test x"$use_gucharmap" = "xyes"; then + # Checks for gucharmap +- PKG_CHECK_MODULES(GUCHARMAP, [gucharmap >= 1.4.0]) +- TOMOE_GTK_REQUIRED_LIBS="tomoe >= 0.4.0 gtk+-2.0 >= 2.4.0 gucharmap >= 1.4.0" +-else +- TOMOE_GTK_REQUIRED_LIBS="tomoe >= 0.4.0 gtk+-2.0 >= 2.4.0" ++ PKG_CHECK_EXISTS(gucharmap-2, ++ [PKG_CHECK_MODULES(GUCHARMAP, [gucharmap-2], ++ [gucharmap_lib="gucharmap-2"])], ++ [PKG_CHECK_MODULES(GUCHARMAP, [gucharmap >= 1.4.0], ++ [gucharmap_lib="gucharmap >= 1.4.0"])]) ++ TOMOE_GTK_REQUIRED_LIBS="$TOMOE_GTK_REQUIRED_LIBS $gucharmap_lib" + fi + AC_SUBST(GUCHARMAP_CFLAGS) + AC_SUBST(GUCHARMAP_LIBS) +-AC_SUBST(TOMOE_GTK_REQUIRED_LIBS) + AM_CONDITIONAL([USE_GUCHARMAP], [test x"$use_gucharmap" = "xyes"]) + + # Check for pygtk +--- a/src/tomoe-gucharmap.c 2007-04-27 14:41:40.000000000 +0900 ++++ b/src/tomoe-gucharmap.c 2008-12-21 01:08:16.000000000 +0900 +@@ -34,7 +34,11 @@ + { + GtkWidget *chapters_type_combobox; + GtkWidget *chapters_combobox; ++#ifdef GUCHARMAP_TYPE_CHAPTERS + GucharmapChapters *chapters; ++#else ++ GucharmapChaptersModel *chapters_model; ++#endif + GucharmapCharmap *charmap; + gchar *selected; + }; +@@ -120,14 +124,24 @@ + gtk_widget_show (combobox); + + /* gucharmap */ ++#ifdef GUCHARMAP_TYPE_CHAPTERS + priv->chapters = GUCHARMAP_CHAPTERS (gucharmap_block_chapters_new ()); + priv->charmap = GUCHARMAP_CHARMAP (gucharmap_charmap_new (priv->chapters)); ++#else ++ priv->chapters_model = gucharmap_block_chapters_model_new (); ++ priv->charmap = GUCHARMAP_CHARMAP (gucharmap_charmap_new ()); ++ gucharmap_charmap_set_chapters_model (priv->charmap, priv->chapters_model); ++#endif + widget = GTK_WIDGET (priv->charmap); + gtk_box_pack_start (GTK_BOX (vbox), widget, TRUE, TRUE, 2); + gtk_widget_show (widget); + + /* Hide chapters page by default. Usually use combo box instead. */ ++#ifdef GUCHARMAP_TYPE_CHAPTERS + gtk_widget_hide (GTK_WIDGET (priv->chapters)); ++#else ++ gucharmap_charmap_set_chapters_visible (priv->charmap, FALSE); ++#endif + + #if 0 + /* CharDetails view will be here */ +@@ -146,10 +160,11 @@ + g_signal_connect (G_OBJECT (priv->chapters_combobox), "changed", + G_CALLBACK (on_chapters_combo_changed), + (gpointer) page); +- g_signal_connect (G_OBJECT (priv->charmap->chartable), "activate", ++ g_signal_connect (G_OBJECT (gucharmap_charmap_get_chartable (priv->charmap)), ++ "activate", + G_CALLBACK (on_gucharmap_activate), + (gpointer) page); +- g_signal_connect (G_OBJECT (priv->charmap->chartable), ++ g_signal_connect (G_OBJECT (gucharmap_charmap_get_chartable (priv->charmap)), + "button-release-event", + G_CALLBACK (on_gucharmap_button_release), + (gpointer) page); +@@ -162,7 +177,11 @@ + + priv->chapters_type_combobox = NULL; + priv->chapters_combobox = NULL; ++#ifdef GUCHARMAP_TYPE_CHAPTERS + priv->chapters = NULL; ++#else ++ priv->chapters_model = NULL; ++#endif + priv->charmap = NULL; + if (priv->selected) { + g_free (priv->selected); +@@ -188,7 +207,11 @@ + tomoe_gucharmap_get_selected_char (TomoeGucharmap *page) + { + TomoeGucharmapPrivate *priv; ++#ifdef GUCHARMAP_TABLE + GucharmapTable *table; ++#else ++ GucharmapChartable *table; ++#endif + gunichar c; + gchar buf[7]; + gint bytes; +@@ -196,9 +219,17 @@ + g_return_val_if_fail (TOMOE_IS_GUCHARMAP (page), NULL); + + priv = TOMOE_GUCHARMAP_GET_PRIVATE (page); ++#ifdef GUCHARMAP_TABLE + table = GUCHARMAP_TABLE (priv->charmap->chartable); ++#else ++ table = gucharmap_charmap_get_chartable (priv->charmap); ++#endif + ++#ifdef GUCHARMAP_TABLE + c = gucharmap_table_get_active_character (table); ++#else ++ c = gucharmap_chartable_get_active_character (table); ++#endif + bytes = g_unichar_to_utf8(c, buf); + + if (bytes > 0 && bytes < 7) { +@@ -222,7 +253,13 @@ + setup_chapters_combo_box (TomoeGucharmap *page) + { + TomoeGucharmapPrivate *priv = TOMOE_GUCHARMAP_GET_PRIVATE (page); +- GtkTreeModel *model = priv->chapters->tree_model; ++ GtkTreeModel *model; ++ ++#ifdef GUCHARMAP_TYPE_CHAPTERS ++ model = priv->chapters->tree_model; ++#else ++ model = GTK_TREE_MODEL (priv->chapters_model); ++#endif + + gtk_combo_box_set_model (GTK_COMBO_BOX (priv->chapters_combobox), model); + gtk_combo_box_set_active (GTK_COMBO_BOX (priv->chapters_combobox), 0); +@@ -235,12 +272,26 @@ + TomoeGucharmapPrivate *priv = TOMOE_GUCHARMAP_GET_PRIVATE (page); + gint idx = gtk_combo_box_get_active (combobox); + +- if (idx == 1) ++ if (idx == 1) { ++#ifdef GUCHARMAP_TYPE_CHAPTERS + priv->chapters = GUCHARMAP_CHAPTERS (gucharmap_script_chapters_new ()); +- else ++#else ++ priv->chapters_model = gucharmap_script_chapters_model_new (); ++#endif ++ } else { ++#ifdef GUCHARMAP_TYPE_CHAPTERS + priv->chapters = GUCHARMAP_CHAPTERS (gucharmap_block_chapters_new ()); ++#else ++ priv->chapters_model = gucharmap_block_chapters_model_new (); ++#endif ++ } ++#ifdef GUCHARMAP_TYPE_CHAPTERS + gucharmap_charmap_set_chapters (priv->charmap, priv->chapters); + gtk_widget_hide (GTK_WIDGET (priv->chapters)); ++#else ++ gucharmap_charmap_set_chapters_model (priv->charmap, priv->chapters_model); ++ gucharmap_charmap_set_chapters_visible (priv->charmap, FALSE); ++#endif + setup_chapters_combo_box (page); + } + +@@ -249,6 +300,7 @@ + { + TomoeGucharmap *page = data; + TomoeGucharmapPrivate *priv = TOMOE_GUCHARMAP_GET_PRIVATE (page); ++ GtkTreeView *tree_view; + GtkTreePath *path; + gchar buf[8]; + gint idx; +@@ -256,8 +308,13 @@ + idx = gtk_combo_box_get_active (combobox); + g_snprintf (buf, 8 , "%d", idx); + path = gtk_tree_path_new_from_string (buf); +- gtk_tree_view_set_cursor (GTK_TREE_VIEW (priv->chapters->tree_view), +- path, NULL, FALSE); ++#ifdef GUCHARMAP_TYPE_CHAPTERS ++ tree_view = GTK_TREE_VIEW (priv->chapters->tree_view); ++#else ++ tree_view = ++ GTK_TREE_VIEW (gucharmap_charmap_get_chapters_view (priv->charmap)); ++#endif ++ gtk_tree_view_set_cursor (tree_view, path, NULL, FALSE); + gtk_tree_path_free (path); + } + +--- a/bindings/python/Makefile.am ++++ b/bindings/python/Makefile.am +@@ -6,6 +6,7 @@ + $(PYTHON_CFLAGS) \ + $(PYGOBJECT_CFLAGS) \ + $(PYGTK_CFLAGS) \ ++ $(GUCHARMAP_CFLAGS) \ + $(GTK2_CFLAGS) \ + $(TOMOE_CFLAGS) \ + -I$(top_srcdir)/src \ +@@ -21,11 +22,13 @@ + -module \ + -avoid-version \ + $(TOMOE_LDFLAGS) \ +- $(PYTHON_LDFLAGS) ++ $(PYTHON_LDFLAGS) \ ++ $(GUCHARMAP_LDFLAGS) + + tomoegtk_la_LIBADD = \ + $(TOMOE_LIBS) \ + $(PYGTK_LIBS) \ ++ $(GUCHARMAP_LIBS) \ + $(top_builddir)/src/libtomoe-gtk.la + + OVERRIDES = \ diff --git a/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r1.ebuild b/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r1.ebuild new file mode 100644 index 000000000000..456c5178de74 --- /dev/null +++ b/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r1.ebuild,v 1.1 2009/02/22 21:16:40 eva Exp $ + +EAPI="2" + +inherit autotools + +MY_P="tomoe-gtk-${PV}" +DESCRIPTION="Tomoe GTK+ interface widget library" +HOMEPAGE="http://tomoe.sourceforge.jp/" +SRC_URI="mirror://sourceforge/tomoe/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc +gucharmap" + +RDEPEND=">=app-i18n/tomoe-0.6.0 + >=dev-python/pygtk-2 + >=dev-python/pygobject-2 + gucharmap? ( >=gnome-extra/gucharmap-1.4.0 )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + sys-devel/gettext + doc? ( >=dev-util/gtk-doc-1.4 )" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Fix compilation with gucharmap-2.24, bug #243160 + epatch "${FILESDIR}/${P}-gucharmap2.patch" + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable doc gtk-doc) \ + $(use_with gucharmap) +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + dodoc AUTHORS ChangeLog NEWS README +} diff --git a/app-i18n/libtomoe-gtk/metadata.xml b/app-i18n/libtomoe-gtk/metadata.xml index 51689f0cbcb5..0f7257ad54e8 100644 --- a/app-i18n/libtomoe-gtk/metadata.xml +++ b/app-i18n/libtomoe-gtk/metadata.xml @@ -2,5 +2,8 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>cjk</herd> +<use> + <flag name="gucharmap">Enable gucharmap dictionary plugin</flag> +</use> </pkgmetadata> |