diff options
Diffstat (limited to 'app-i18n/tomoe')
-rw-r--r-- | app-i18n/tomoe/Manifest | 7 | ||||
-rw-r--r-- | app-i18n/tomoe/files/tomoe-export-symbols.patch | 240 | ||||
-rw-r--r-- | app-i18n/tomoe/files/tomoe-gentoo.patch | 22 | ||||
-rw-r--r-- | app-i18n/tomoe/files/tomoe-glib-2.32.patch | 33 | ||||
-rw-r--r-- | app-i18n/tomoe/files/tomoe-ruby19.patch | 84 | ||||
-rw-r--r-- | app-i18n/tomoe/metadata.xml | 15 | ||||
-rw-r--r-- | app-i18n/tomoe/tomoe-0.6.0-r3.ebuild | 93 |
7 files changed, 494 insertions, 0 deletions
diff --git a/app-i18n/tomoe/Manifest b/app-i18n/tomoe/Manifest new file mode 100644 index 000000000000..32af54cdccb6 --- /dev/null +++ b/app-i18n/tomoe/Manifest @@ -0,0 +1,7 @@ +AUX tomoe-export-symbols.patch 8483 BLAKE2B 45a7ce461400256809275d626bcf7c3d4b1201be2a07f7db2c77b94059e11b5026cdd060cc7e2f57a1c1d60498ca266218b3c26356dd27447f00bc8fd090b107 SHA512 32caa46e10d2c1885e7d850f7ecb3ac79a4754156100e4db68e87f1614b0d9db71fde6af9d8520f337143bf2a3e6f3fe1f6e7e83f1c066552238a2a2c3d3bba5 +AUX tomoe-gentoo.patch 599 BLAKE2B d297c41007f17ac07f6a80fb451c2d605ebf275b64af96b81e31875ff2ce065684d78e60610627b2295195b024813b3d02b2327a3c06c38e992d7e78361f897a SHA512 50b573c046f9b98c64bfd8e0320f7d4d7f4c113d6cc5368fbaa68575d199ce269bfc8827709a6565f244a1b6e82e220db7309570a022c30ad03c51317110030b +AUX tomoe-glib-2.32.patch 688 BLAKE2B 5aeb0fa73f54331e20d8a3cd360a4e7c06e770f988686bd3ddd055b49390abd1c064a9369d89c7a4f6cd6c9631a075ba56857b0db54befeace96c233cf9e7947 SHA512 ec0344ccb48ecc8f0df3a76424ed93c9e223a3b22733626a460c4729681d7f9f072ddb84311d22e161c04503dd845c7da774ea9832df32cb79199ca47589073c +AUX tomoe-ruby19.patch 2646 BLAKE2B 7b2289af7e87946bb9c4cb197b493bc2b8625a3bc3f22ee42270a403bd36b1bee4efcbb46117f11d537e3c8a38dfbcfca6484c0a1db6ec2f0b7a5469dac35b47 SHA512 52f555412853c3485e8d3ab7b7739f030e2c3d2b5c4aac14ebb967c93427fe04cbcfec2f5997f09f0f7611dc268ee63437b256ef4cac1ea805f0ae84a522b836 +DIST tomoe-0.6.0.tar.gz 4918949 BLAKE2B c9f4accc77fe7c6214c4d19dbbac7d0d39ed7947588ab1b8a1416f6cfeda33a6cfa84352f888d02848c8e2026bd5c36d2fe52d099bda6ca41a6d215733b11aa3 SHA512 eab618d7b28fc9613c175fab6f80fc7d6acc34af3a47f20c11b42a32acd87143ae10caca67fa1a5e2e75441d431799a5725a5d507604f8bd7447bbc1826f0bb8 +EBUILD tomoe-0.6.0-r3.ebuild 2136 BLAKE2B 62990d33dbb526e9e82e2e1dc754f8cfe735000b39196250ccf7c78fdbfa4ed1ed17b7a1591048efc4e0f844656762176cc27cc260d71bcad0a2b26ef1bc5e26 SHA512 70814b92e3da0d39d38dba7380c59f3d1c265cb4afb8c56abcde02ac4ea3b95c58b352f1d09b6b0c30749ec037112d98da68cef42427c9274ce6812c4cd134d3 +MISC metadata.xml 482 BLAKE2B 454f6c496dda5f9ca738bb81c843a650be203b58bbaf4f0775204be463de6eccdd11023705295e89d1cc8513eead67dbe1fb26740bdc39216e8e2d4ee838e8ca SHA512 0898e0ba0bd42458870d268ee6bc881da1c88ab01969037d57f0d4abf5f140a7ce77bf87d918976bd763a33c8869e73d0fb2ec744be747d5bc30d594cc54efeb diff --git a/app-i18n/tomoe/files/tomoe-export-symbols.patch b/app-i18n/tomoe/files/tomoe-export-symbols.patch new file mode 100644 index 000000000000..2b2d98b6ddd7 --- /dev/null +++ b/app-i18n/tomoe/files/tomoe-export-symbols.patch @@ -0,0 +1,240 @@ +Index: trunk/module/dict/tomoe-dict-xml.c +=================================================================== +--- trunk/module/dict/tomoe-dict-xml.c (revision 1581) ++++ trunk/module/dict/tomoe-dict-xml.c (revision 1582) +@@ -303,14 +303,14 @@ + return success; + + result.name = NULL; +- result.chars = _tomoe_dict_ptr_array_get_array (TOMOE_DICT_PTR_ARRAY (dict)); +- success = _tomoe_xml_parser_parse_dictionary_file (dict->filename, &result); ++ result.chars = tomoe_dict_ptr_array_get_array (TOMOE_DICT_PTR_ARRAY (dict)); ++ success = tomoe_xml_parser_parse_dictionary_file (dict->filename, &result); + if (result.name) { + g_free (dict->name); + dict->name = g_strdup (result.name); + g_free (result.name); + } +- _tomoe_dict_ptr_array_sort (TOMOE_DICT_PTR_ARRAY (dict)); ++ tomoe_dict_ptr_array_sort (TOMOE_DICT_PTR_ARRAY (dict)); + + return success; + } +@@ -343,7 +343,7 @@ + else + g_string_append (xml, "<dictionary>\n"); + +- chars = _tomoe_dict_ptr_array_get_array (TOMOE_DICT_PTR_ARRAY (dict)); ++ chars = tomoe_dict_ptr_array_get_array (TOMOE_DICT_PTR_ARRAY (dict)); + for (i = 0; i < chars->len; i++) { + gchar *chr_xml; + TomoeChar *chr = g_ptr_array_index (chars, i); +Index: trunk/module/dict/tomoe-dict-unihan.c +=================================================================== +--- trunk/module/dict/tomoe-dict-unihan.c (revision 1581) ++++ trunk/module/dict/tomoe-dict-unihan.c (revision 1582) +@@ -193,7 +193,7 @@ + object = klass->constructor (type, n_props, props); + the_singleton = TOMOE_DICT_UNIHAN (object); + +- chars = _tomoe_dict_ptr_array_get_array (TOMOE_DICT_PTR_ARRAY (object)); ++ chars = tomoe_dict_ptr_array_get_array (TOMOE_DICT_PTR_ARRAY (object)); + _tomoe_unihan_create (chars); + } else { + object = g_object_ref (G_OBJECT (the_singleton)); +Index: trunk/lib/tomoe-char.c +=================================================================== +--- trunk/lib/tomoe-char.c (revision 1581) ++++ trunk/lib/tomoe-char.c (revision 1582) +@@ -143,7 +143,7 @@ + TomoeChar* + tomoe_char_new_from_xml_data (const gchar *data, gssize len) + { +- return _tomoe_xml_parser_parse_char_data (data, len); ++ return tomoe_xml_parser_parse_char_data (data, len); + } + + static void +Index: trunk/lib/tomoe-xml-parser.c +=================================================================== +--- trunk/lib/tomoe-xml-parser.c (revision 1581) ++++ trunk/lib/tomoe-xml-parser.c (revision 1582) +@@ -428,8 +428,8 @@ + } + + gboolean +-_tomoe_xml_parser_parse_dictionary_file (const gchar *filename, +- TomoeXMLParsedData *result) ++tomoe_xml_parser_parse_dictionary_file (const gchar *filename, ++ TomoeXMLParsedData *result) + { + GMarkupParseContext *context; + FILE *f; +@@ -469,7 +469,7 @@ + } + + TomoeChar * +-_tomoe_xml_parser_parse_char_data (const gchar *xml, gssize len) ++tomoe_xml_parser_parse_char_data (const gchar *xml, gssize len) + { + GMarkupParseContext *context; + TomoeXMLParsedData result; +Index: trunk/lib/tomoe-xml-parser.h +=================================================================== +--- trunk/lib/tomoe-xml-parser.h (revision 1581) ++++ trunk/lib/tomoe-xml-parser.h (revision 1582) +@@ -37,10 +37,10 @@ + GPtrArray *chars; + }; + +-gboolean _tomoe_xml_parser_parse_dictionary_file (const gchar *filename, +- TomoeXMLParsedData *result); +-TomoeChar *_tomoe_xml_parser_parse_char_data (const gchar *xml, +- gssize len); ++gboolean tomoe_xml_parser_parse_dictionary_file (const gchar *filename, ++ TomoeXMLParsedData *result); ++TomoeChar *tomoe_xml_parser_parse_char_data (const gchar *xml, ++ gssize len); + + + G_END_DECLS +Index: trunk/lib/tomoe-dict-ptr-array.c +=================================================================== +--- trunk/lib/tomoe-dict-ptr-array.c (revision 1581) ++++ trunk/lib/tomoe-dict-ptr-array.c (revision 1582) +@@ -50,7 +50,7 @@ + + static TomoeDictClass *parent_class; + +-G_DEFINE_ABSTRACT_TYPE (TomoeDictPtrArray, _tomoe_dict_ptr_array, TOMOE_TYPE_DICT) ++G_DEFINE_ABSTRACT_TYPE (TomoeDictPtrArray, tomoe_dict_ptr_array, TOMOE_TYPE_DICT) + + static void dispose (GObject *object); + static void set_property (GObject *object, +@@ -75,7 +75,7 @@ + static gchar *get_available_private_utf8 (TomoeDict *dict); + + static void +-_tomoe_dict_ptr_array_class_init (TomoeDictPtrArrayClass *klass) ++tomoe_dict_ptr_array_class_init (TomoeDictPtrArrayClass *klass) + { + GObjectClass *gobject_class; + TomoeDictClass *dict_class; +@@ -123,7 +123,7 @@ + } + + static void +-_tomoe_dict_ptr_array_init (TomoeDictPtrArray *dict) ++tomoe_dict_ptr_array_init (TomoeDictPtrArray *dict) + { + TomoeDictPtrArrayPrivate *priv = TOMOE_DICT_PTR_ARRAY_GET_PRIVATE (dict); + priv->chars = g_ptr_array_new(); +@@ -196,7 +196,7 @@ + } + + void +-_tomoe_dict_ptr_array_sort (TomoeDictPtrArray *dict) ++tomoe_dict_ptr_array_sort (TomoeDictPtrArray *dict) + { + TomoeDictPtrArrayPrivate *priv; + +@@ -219,7 +219,7 @@ + + unregister_char (dict, tomoe_char_get_utf8 (chr)); + g_ptr_array_add (priv->chars, g_object_ref (G_OBJECT (chr))); +- _tomoe_dict_ptr_array_sort (TOMOE_DICT_PTR_ARRAY (dict)); ++ tomoe_dict_ptr_array_sort (TOMOE_DICT_PTR_ARRAY (dict)); + + priv->modified = TRUE; + +@@ -449,7 +449,7 @@ + g_ptr_array_add (*dest_chars, tomoe_char_dup (chr)); + } + +-gboolean ++static gboolean + copy (TomoeDict *src_dict, TomoeDict *dest_dict) + { + TomoeDictPtrArrayPrivate *src_priv, *dest_priv; +@@ -487,7 +487,7 @@ + return TOMOE_DICT_PTR_ARRAY_GET_PRIVATE (dict)->editable; + } + +-gchar * ++static gchar * + get_available_private_utf8 (TomoeDict *dict) + { + TomoeDictPtrArrayPrivate *priv; +@@ -523,7 +523,7 @@ + } + + GPtrArray * +-_tomoe_dict_ptr_array_get_array (TomoeDictPtrArray *dict) ++tomoe_dict_ptr_array_get_array (TomoeDictPtrArray *dict) + { + g_return_val_if_fail (TOMOE_IS_DICT_PTR_ARRAY (dict), NULL); + +Index: trunk/lib/tomoe-dict-ptr-array.h +=================================================================== +--- trunk/lib/tomoe-dict-ptr-array.h (revision 1581) ++++ trunk/lib/tomoe-dict-ptr-array.h (revision 1582) +@@ -29,7 +29,7 @@ + + #include "tomoe-dict.h" + +-#define TOMOE_TYPE_DICT_PTR_ARRAY (_tomoe_dict_ptr_array_get_type ()) ++#define TOMOE_TYPE_DICT_PTR_ARRAY (tomoe_dict_ptr_array_get_type ()) + #define TOMOE_DICT_PTR_ARRAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOMOE_TYPE_DICT_PTR_ARRAY, TomoeDictPtrArray)) + #define TOMOE_DICT_PTR_ARRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOMOE_TYPE_DICT_PTR_ARRAY, TomoeDictPtrArrayClass)) + #define TOMOE_IS_DICT_PTR_ARRAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOMOE_TYPE_DICT_PTR_ARRAY)) +@@ -49,9 +49,9 @@ + TomoeDictClass parent_class; + }; + +-GType _tomoe_dict_ptr_array_get_type (void) G_GNUC_CONST; +-void _tomoe_dict_ptr_array_sort (TomoeDictPtrArray *dict); +-GPtrArray *_tomoe_dict_ptr_array_get_array (TomoeDictPtrArray *dict); ++GType tomoe_dict_ptr_array_get_type (void) G_GNUC_CONST; ++void tomoe_dict_ptr_array_sort (TomoeDictPtrArray *dict); ++GPtrArray *tomoe_dict_ptr_array_get_array (TomoeDictPtrArray *dict); + + G_END_DECLS + +Index: trunk/lib/Makefile.am +=================================================================== +--- trunk/lib/Makefile.am (revision 1581) ++++ trunk/lib/Makefile.am (revision 1582) +@@ -30,13 +30,15 @@ + tomoe-context.h \ + tomoe-config.h \ + tomoe-dict.h \ ++ tomoe-dict-ptr-array.h \ + tomoe-module.h \ + tomoe-module-impl.h \ + tomoe-query.h \ + tomoe-reading.h \ + tomoe-recognizer.h \ + tomoe-shelf.h \ +- tomoe-writing.h ++ tomoe-writing.h \ ++ tomoe-xml-parser.h + + enum_source_prefix = tomoe-enum-types + +@@ -103,15 +105,13 @@ + tomoe-config.c \ + tomoe-dict.c \ + tomoe-dict-ptr-array.c \ +- tomoe-dict-ptr-array.h \ + tomoe-module.c \ + tomoe-query.c \ + tomoe-reading.c \ + tomoe-recognizer.c \ + tomoe-shelf.c \ + tomoe-writing.c \ +- tomoe-xml-parser.c \ +- tomoe-xml-parser.h ++ tomoe-xml-parser.c + + libtomoe_la_LDFLAGS = \ + -version-info $(LT_VERSION_INFO) \ diff --git a/app-i18n/tomoe/files/tomoe-gentoo.patch b/app-i18n/tomoe/files/tomoe-gentoo.patch new file mode 100644 index 000000000000..92ed311a0a76 --- /dev/null +++ b/app-i18n/tomoe/files/tomoe-gentoo.patch @@ -0,0 +1,22 @@ +--- a/module/dict/Makefile.am ++++ b/module/dict/Makefile.am +@@ -34,7 +34,7 @@ + + LIBADD = $(TOMOE_LIBS) \ + $(top_builddir)/lib/libtomoe.la +-LDFLAGS = \ ++AM_LDFLAGS = \ + -rpath $(dict_moduledir) -avoid-version -module \ + -export-dynamic $(no_undefined) $(LIBTOOL_EXPORT_OPTIONS) + +--- a/module/recognizer/Makefile.am ++++ b/module/recognizer/Makefile.am +@@ -23,7 +23,7 @@ + AM_CPPFLAGS = + INCLUDES = $(TOMOE_CFLAGS) + +-LDFLAGS = \ ++AM_LDFLAGS = \ + -rpath $(recognizer_moduledir) -avoid-version -module \ + -export-dynamic $(no_undefined) $(LIBTOOL_EXPORT_OPTIONS) + diff --git a/app-i18n/tomoe/files/tomoe-glib-2.32.patch b/app-i18n/tomoe/files/tomoe-glib-2.32.patch new file mode 100644 index 000000000000..eb05ab8b8d50 --- /dev/null +++ b/app-i18n/tomoe/files/tomoe-glib-2.32.patch @@ -0,0 +1,33 @@ +--- a/lib/glib-compat-key-file.h ++++ b/lib/glib-compat-key-file.h +@@ -51,7 +51,7 @@ + #ifndef __G_KEY_FILE_H__ + #define __G_KEY_FILE_H__ + +-#include <glib/gerror.h> ++#include <glib.h> + + G_BEGIN_DECLS + +--- a/lib/glib-utils.h ++++ b/lib/glib-utils.h +@@ -28,7 +28,7 @@ + #include "config.h" + #endif /* HAVE_CONFIG_H */ + +-#include <glib/garray.h> ++#include <glib.h> + #include <glib/gi18n-lib.h> + #include "glib-compat-file-utilities.h" + #include "glib-compat-key-file.h" +--- a/lib/tomoe.c ++++ b/lib/tomoe.c +@@ -26,7 +26,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +-#include <glib/garray.h> ++#include <glib.h> + #include "tomoe.h" + + static gboolean initialized = FALSE; diff --git a/app-i18n/tomoe/files/tomoe-ruby19.patch b/app-i18n/tomoe/files/tomoe-ruby19.patch new file mode 100644 index 000000000000..bca6aa807f04 --- /dev/null +++ b/app-i18n/tomoe/files/tomoe-ruby19.patch @@ -0,0 +1,84 @@ +--- a/bindings/ruby/tomoe-rb-char.c ++++ b/bindings/ruby/tomoe-rb-char.c +@@ -2,6 +2,10 @@ + + #define _SELF(obj) RVAL2TCHR(obj) + ++#ifndef RSTRING_LEN ++# define RSTRING_LEN(s) (RSTRING(s)->len) ++#endif ++ + static VALUE + tc_initialize(int argc, VALUE *argv, VALUE self) + { +@@ -13,7 +17,7 @@ + if (NIL_P(xml)) { + chr = tomoe_char_new(); + } else { +- chr = tomoe_char_new_from_xml_data(RVAL2CSTR(xml), RSTRING(xml)->len); ++ chr = tomoe_char_new_from_xml_data(RVAL2CSTR(xml), RSTRING_LEN(xml)); + } + + G_INITIALIZE(self, chr); +--- a/macros/ruby.m4 ++++ b/macros/ruby.m4 +@@ -28,13 +28,18 @@ + + changequote(<<, >>) + for var_name in archdir sitearchdir CFLAGS LIBRUBYARG libdir \ +- sitelibdir sitearchdir; do +- rbconfig_tmp=`$rbconfig "print Config::CONFIG['$var_name']"` ++ sitelibdir rubyhdrdir rubyarchhdrdir; do ++ rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"` + eval "rbconfig_$var_name=\"$rbconfig_tmp\"" + done + changequote([, ]) + +- RUBY_CFLAGS="$RUBY_CFLAGS -I$rbconfig_archdir " ++ if test "x$rbconfig_rubyhdrdir" = "x"; then ++ RUBY_CFLAGS="$RUBY_CFLAGS -I$rbconfig_archdir " ++ else ++ RUBY_CFLAGS="$RUBY_CFLAGS -I$rbconfig_rubyhdrdir " ++ RUBY_CFLAGS="$RUBY_CFLAGS -I$rbconfig_rubyarchhdrdir " ++ fi + RUBY_CFLAGS="$RUBY_CFLAGS -I$rbconfig_sitearchdir " + RUBY_CFLAGS="$RUBY_CFLAGS $rbconfig_CFLAGS " + RUBY_LIBS="$rbconfig_LIBRUBYARG" +--- a/module/dict/tomoe-dict-ruby.c ++++ b/module/dict/tomoe-dict-ruby.c +@@ -52,6 +52,13 @@ + #define TOMOE_IS_DICT_RUBY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOMOE_TYPE_DICT_RUBY)) + #define TOMOE_DICT_RUBY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), TOMOE_TYPE_DICT_RUBY, TomoeDictRubyClass)) + ++#ifndef RARRAY_LEN ++# define RARRAY_LEN(a) (RARRAY(a)->len) ++#endif ++#ifndef RARRAY_PTR ++# define RARRAY_PTR(a) (RARRAY(a)->ptr) ++#endif ++ + enum { + PROP_0, + PROP_FILENAME, +@@ -209,7 +216,7 @@ + ruby_script (PACKAGE); + ruby_set_argv (1, argv); + +- if (RARRAY(rb_load_path)->len == 0) { ++ if (RARRAY_LEN(rb_load_path) == 0) { + ruby_init_loadpath (); + } + } +@@ -405,10 +412,10 @@ + + rb_results = rb_funcall (dict->rb_dict, rb_intern ("search"), + 1, GOBJ2RVAL (query)); +- len = RARRAY (rb_results)->len; ++ len = RARRAY_LEN(rb_results); + for (i = len; i; i--) { + results = g_list_prepend (results, +- RVAL2TCND (RARRAY (rb_results)->ptr[i])); ++ RVAL2TCND (RARRAY_PTR(rb_results)[i])); + } + return results; + } diff --git a/app-i18n/tomoe/metadata.xml b/app-i18n/tomoe/metadata.xml new file mode 100644 index 000000000000..216815207e4e --- /dev/null +++ b/app-i18n/tomoe/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> + </maintainer> + <use> + <flag name="hyperestraier">Enable support for <pkg>app-text/hyperestraier</pkg></flag> + </use> + <upstream> + <remote-id type="sourceforge">tomoe</remote-id> + <remote-id type="sourceforge-jp">tomoe</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-i18n/tomoe/tomoe-0.6.0-r3.ebuild b/app-i18n/tomoe/tomoe-0.6.0-r3.ebuild new file mode 100644 index 000000000000..249cf77a5630 --- /dev/null +++ b/app-i18n/tomoe/tomoe-0.6.0-r3.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +PYTHON_COMPAT=( python2_7 ) +USE_RUBY="ruby23 ruby24" + +inherit autotools ltprune python-single-r1 ruby-single + +DESCRIPTION="Japanese handwriting recognition engine" +HOMEPAGE="http://tomoe.osdn.jp/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="hyperestraier mysql python ruby ${USE_RUBY//ruby/ruby_targets_ruby} static-libs subversion" +RESTRICT="test" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) + ruby? ( || ( ${USE_RUBY//ruby/ruby_targets_ruby} ) )" + +_ruby_set_globals() { + local ruby + for ruby in ${USE_RUBY}; do + RUBY_USEDEP="${RUBY_USEDEP}ruby_targets_${ruby}?," + done + RUBY_USEDEP="${RUBY_USEDEP%,}" +} +_ruby_set_globals +unset -f _ruby_set_globals + +RDEPEND="dev-libs/glib:2 + hyperestraier? ( app-text/hyperestraier ) + mysql? ( virtual/libmysqlclient ) + python? ( + ${PYTHON_DEPS} + dev-python/pygobject:2[${PYTHON_USEDEP}] + dev-python/pygtk:2[${PYTHON_USEDEP}] + ) + ruby? ( + ${RUBY_DEPS} + dev-ruby/ruby-glib2[${RUBY_USEDEP}] + ) + subversion? ( dev-vcs/subversion )" +DEPEND="${RDEPEND} + dev-util/gtk-doc-am + dev-util/intltool + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-gentoo.patch + "${FILESDIR}"/${PN}-export-symbols.patch + "${FILESDIR}"/${PN}-glib-2.32.patch + "${FILESDIR}"/${PN}-ruby19.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + sed -i \ + -e "s/use_est=yes/use_est=$(usex hyperestraier)/" \ + -e "s/use_mysql=yes/use_mysql=$(usex mysql)/" \ + configure.ac + + sed -i "s/use_svn=yes/use_svn=$(usex subversion)/" macros/svn.m4 + + default + eautoreconf +} + +src_configure() { + local ruby + for ruby in ${RUBY_TARGETS_PREFERENCE}; do + if use ruby_targets_${ruby}; then + break + fi + done + + econf \ + $(use_enable ruby dict-ruby) \ + $(use_enable static-libs static) \ + $(use_with python python "") \ + $(use_with ruby ruby "$(type -p ${ruby})") \ + --with-svn-include="${EPREFIX}"/usr/include \ + --with-svn-lib="${EPREFIX}"/usr/$(get_libdir) +} + +src_install() { + default + prune_libtool_files --modules +} |