1 |
commit: 838214d13e6868434543459f6ebc30c087a14388 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 30 10:54:10 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 30 18:18:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=838214d1 |
7 |
|
8 |
app-i18n/tomoe: Drop USE python |
9 |
|
10 |
Bug: https://bugs.gentoo.org/695012 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
app-i18n/tomoe/tomoe-0.6.0-r6.ebuild | 78 ++++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 78 insertions(+) |
16 |
|
17 |
diff --git a/app-i18n/tomoe/tomoe-0.6.0-r6.ebuild b/app-i18n/tomoe/tomoe-0.6.0-r6.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..4be2663f575 |
20 |
--- /dev/null |
21 |
+++ b/app-i18n/tomoe/tomoe-0.6.0-r6.ebuild |
22 |
@@ -0,0 +1,78 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI="6" |
27 |
+ |
28 |
+USE_RUBY="ruby25 ruby26 ruby27" |
29 |
+inherit autotools ruby-utils |
30 |
+ |
31 |
+DESCRIPTION="Japanese handwriting recognition engine" |
32 |
+HOMEPAGE="http://tomoe.osdn.jp/" |
33 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="LGPL-2.1" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="amd64 x86" |
38 |
+IUSE="hyperestraier mysql ruby ${USE_RUBY//ruby/ruby_targets_ruby} static-libs subversion" |
39 |
+REQUIRED_USE="ruby? ( ^^ ( ${USE_RUBY//ruby/ruby_targets_ruby} ) )" |
40 |
+ |
41 |
+RESTRICT="test" |
42 |
+ |
43 |
+RDEPEND="dev-libs/glib:2 |
44 |
+ hyperestraier? ( app-text/hyperestraier ) |
45 |
+ mysql? ( dev-db/mysql-connector-c:= ) |
46 |
+ ruby? ( |
47 |
+ $(for ruby in ${USE_RUBY}; do |
48 |
+ echo "ruby_targets_${ruby}? ( |
49 |
+ $(_ruby_implementation_depend "${ruby}") |
50 |
+ dev-ruby/ruby-glib2[ruby_targets_${ruby}] |
51 |
+ )" |
52 |
+ done) |
53 |
+ ) |
54 |
+ subversion? ( dev-vcs/subversion )" |
55 |
+DEPEND="${RDEPEND} |
56 |
+ dev-util/glib-utils |
57 |
+ dev-util/gtk-doc-am |
58 |
+ dev-util/intltool |
59 |
+ virtual/pkgconfig" |
60 |
+ |
61 |
+PATCHES=( |
62 |
+ "${FILESDIR}"/${PN}-gentoo.patch |
63 |
+ "${FILESDIR}"/${PN}-export-symbols.patch |
64 |
+ "${FILESDIR}"/${PN}-glib-2.32.patch |
65 |
+ "${FILESDIR}"/${PN}-ruby19.patch |
66 |
+) |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ sed -i \ |
70 |
+ -e "s/use_est=yes/use_est=$(usex hyperestraier)/" \ |
71 |
+ -e "s/use_mysql=yes/use_mysql=$(usex mysql)/" \ |
72 |
+ configure.ac |
73 |
+ |
74 |
+ sed -i "s/use_svn=yes/use_svn=$(usex subversion)/" macros/svn.m4 |
75 |
+ |
76 |
+ default |
77 |
+ eautoreconf |
78 |
+} |
79 |
+ |
80 |
+src_configure() { |
81 |
+ local ruby |
82 |
+ for ruby in ${USE_RUBY}; do |
83 |
+ if use ruby_targets_${ruby}; then |
84 |
+ break |
85 |
+ fi |
86 |
+ done |
87 |
+ |
88 |
+ econf \ |
89 |
+ $(use_enable ruby dict-ruby) \ |
90 |
+ $(use_enable static-libs static) \ |
91 |
+ --without-python \ |
92 |
+ $(use_with ruby ruby "$(type -P ${ruby})") \ |
93 |
+ --with-svn-include="${EPREFIX}"/usr/include \ |
94 |
+ --with-svn-lib="${EPREFIX}"/usr/$(get_libdir) |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ default |
99 |
+ find "${ED}" -name '*.la' -delete || die |
100 |
+} |