Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/tomoe/
Date: Sat, 05 Aug 2017 14:48:01
Message-Id: 1501944451.231f4e431067c62ba7684fe80050e5a5e9d8d279.hattya@gentoo
1 commit: 231f4e431067c62ba7684fe80050e5a5e9d8d279
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 5 14:38:22 2017 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 5 14:47:31 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=231f4e43
7
8 app-i18n/tomoe: update to EAPI 6
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 app-i18n/tomoe/metadata.xml | 23 +++++-----
13 app-i18n/tomoe/tomoe-0.6.0-r2.ebuild | 84 +++++++++++++-----------------------
14 2 files changed, 42 insertions(+), 65 deletions(-)
15
16 diff --git a/app-i18n/tomoe/metadata.xml b/app-i18n/tomoe/metadata.xml
17 index 4d49745ebe5..216815207e4 100644
18 --- a/app-i18n/tomoe/metadata.xml
19 +++ b/app-i18n/tomoe/metadata.xml
20 @@ -1,16 +1,15 @@
21 <?xml version="1.0" encoding="UTF-8"?>
22 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
23 <pkgmetadata>
24 - <maintainer type="project">
25 - <email>cjk@g.o</email>
26 - <name>Cjk</name>
27 - </maintainer>
28 - <use>
29 - <flag name="hyperestraier">Enable support for
30 - <pkg>app-text/hyperestraier</pkg></flag>
31 - </use>
32 - <upstream>
33 - <remote-id type="sourceforge">tomoe</remote-id>
34 - <remote-id type="sourceforge-jp">tomoe</remote-id>
35 - </upstream>
36 + <maintainer type="project">
37 + <email>cjk@g.o</email>
38 + <name>Cjk</name>
39 + </maintainer>
40 + <use>
41 + <flag name="hyperestraier">Enable support for <pkg>app-text/hyperestraier</pkg></flag>
42 + </use>
43 + <upstream>
44 + <remote-id type="sourceforge">tomoe</remote-id>
45 + <remote-id type="sourceforge-jp">tomoe</remote-id>
46 + </upstream>
47 </pkgmetadata>
48
49 diff --git a/app-i18n/tomoe/tomoe-0.6.0-r2.ebuild b/app-i18n/tomoe/tomoe-0.6.0-r2.ebuild
50 index 94c10714110..b922e94e490 100644
51 --- a/app-i18n/tomoe/tomoe-0.6.0-r2.ebuild
52 +++ b/app-i18n/tomoe/tomoe-0.6.0-r2.ebuild
53 @@ -1,10 +1,10 @@
54 # Copyright 1999-2017 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56
57 -EAPI=5
58 -
59 +EAPI="6"
60 PYTHON_COMPAT=( python2_7 )
61 -inherit autotools eutils multilib python-single-r1
62 +
63 +inherit autotools ltprune python-single-r1
64
65 DESCRIPTION="Japanese handwriting recognition engine"
66 HOMEPAGE="http://tomoe.sourceforge.jp/"
67 @@ -13,80 +13,58 @@ SRC_URI="mirror://sourceforge/tomoe/${P}.tar.gz"
68 LICENSE="LGPL-2.1"
69 SLOT="0"
70 KEYWORDS="amd64 ~x86"
71 -IUSE="doc hyperestraier mysql ruby python static-libs subversion"
72 +IUSE="hyperestraier mysql python ruby static-libs subversion"
73 +RESTRICT="test"
74 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
75
76 -RDEPEND=">=dev-libs/glib-2.4
77 - ruby? ( dev-ruby/ruby-glib2 )
78 +RDEPEND="dev-libs/glib:2
79 hyperestraier? ( app-text/hyperestraier )
80 - subversion? (
81 - >=dev-libs/apr-1
82 - dev-vcs/subversion
83 - )
84 mysql? ( dev-db/mysql )
85 python? (
86 ${PYTHON_DEPS}
87 dev-python/pygobject:2[${PYTHON_USEDEP}]
88 dev-python/pygtk:2[${PYTHON_USEDEP}]
89 - )"
90 -# test? ( app-dicts/uconv )
91 -
92 -DEPEND="${DEPEND}
93 + )
94 + ruby? ( dev-ruby/ruby-glib2 )
95 + subversion? ( dev-vcs/subversion )"
96 +DEPEND="${RDEPEND}
97 dev-util/gtk-doc-am
98 dev-util/intltool
99 - virtual/pkgconfig
100 - doc? ( dev-util/gtk-doc )"
101 -
102 -REQUIRED_USE=${PYTHON_REQUIRED_USE}
103 + virtual/pkgconfig"
104
105 -RESTRICT="test"
106 +PATCHES=(
107 + "${FILESDIR}"/${PN}-gentoo.patch
108 + "${FILESDIR}"/${PN}-export-symbols.patch
109 + "${FILESDIR}"/${PN}-glib-2.32.patch
110 +)
111
112 pkg_setup() {
113 - if use python ; then
114 - python-single-r1_pkg_setup
115 - fi
116 + use python && python-single-r1_pkg_setup
117 }
118
119 src_prepare() {
120 - epatch \
121 - "${FILESDIR}/${PN}-gentoo.patch" \
122 - "${FILESDIR}/${PN}-export-symbols.patch" \
123 - "${FILESDIR}/${PN}-glib-2.32.patch"
124 + sed -i \
125 + -e "s/use_est=yes/use_est=$(usex hyperestraier)/" \
126 + -e "s/use_mysql=yes/use_mysql=$(usex mysql)/" \
127 + configure.ac
128
129 - if ! use hyperestraier ; then
130 - sed -i -e "s/use_est=yes/use_est=no/" configure.ac || die
131 - fi
132 - if ! use mysql ; then
133 - sed -i -e "s/use_mysql=yes/use_mysql=no/" configure.ac || die
134 - fi
135 - if ! use subversion ; then
136 - sed -i -e "s/use_svn=yes/use_svn=no/" macros/svn.m4 || die
137 - fi
138 + sed -i "s/use_svn=yes/use_svn=$(usex subversion)/" macros/svn.m4
139
140 + default
141 eautoreconf
142 }
143
144 src_configure() {
145 - local myconf
146 -
147 - # --with-python b0rked hard
148 - unset PYTHON
149 - use python || myconf="${myconf} --without-python"
150 -
151 econf \
152 - $(use_enable doc gtk-doc) \
153 - $(use_with ruby) \
154 - $(use_enable static-libs static) \
155 $(use_enable ruby dict-ruby) \
156 - ${myconf} || die
157 + $(use_enable static-libs static) \
158 + $(use_with python python "") \
159 + $(use_with ruby) \
160 + --with-svn-include="${EPREFIX}"/usr/include \
161 + --with-svn-lib="${EPREFIX}"/usr/$(get_libdir)
162 }
163
164 src_install() {
165 - emake DESTDIR="${D}" install || die "make install failed"
166 -
167 - find "${ED}/usr/$(get_libdir)/tomoe" \( -name '*.la' -o -name '*.a' \) -type f -delete || die
168 - if ! use static-libs ; then
169 - find "${ED}" -name '*.la' -type f -delete || die
170 - fi
171 -
172 - dodoc AUTHORS ChangeLog NEWS TODO || die
173 + default
174 + prune_libtool_files --modules
175 }