public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Akinori Hattori" <hattya@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/tomoe/
Date: Sat,  5 Aug 2017 14:47:57 +0000 (UTC)	[thread overview]
Message-ID: <1501944451.231f4e431067c62ba7684fe80050e5a5e9d8d279.hattya@gentoo> (raw)

commit:     231f4e431067c62ba7684fe80050e5a5e9d8d279
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Sat Aug  5 14:38:22 2017 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Sat Aug  5 14:47:31 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=231f4e43

app-i18n/tomoe: update to EAPI 6

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 app-i18n/tomoe/metadata.xml          | 23 +++++-----
 app-i18n/tomoe/tomoe-0.6.0-r2.ebuild | 84 +++++++++++++-----------------------
 2 files changed, 42 insertions(+), 65 deletions(-)

diff --git a/app-i18n/tomoe/metadata.xml b/app-i18n/tomoe/metadata.xml
index 4d49745ebe5..216815207e4 100644
--- a/app-i18n/tomoe/metadata.xml
+++ b/app-i18n/tomoe/metadata.xml
@@ -1,16 +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>
+  <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-r2.ebuild b/app-i18n/tomoe/tomoe-0.6.0-r2.ebuild
index 94c10714110..b922e94e490 100644
--- a/app-i18n/tomoe/tomoe-0.6.0-r2.ebuild
+++ b/app-i18n/tomoe/tomoe-0.6.0-r2.ebuild
@@ -1,10 +1,10 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-
+EAPI="6"
 PYTHON_COMPAT=( python2_7 )
-inherit autotools eutils multilib python-single-r1
+
+inherit autotools ltprune python-single-r1
 
 DESCRIPTION="Japanese handwriting recognition engine"
 HOMEPAGE="http://tomoe.sourceforge.jp/"
@@ -13,80 +13,58 @@ SRC_URI="mirror://sourceforge/tomoe/${P}.tar.gz"
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="amd64 ~x86"
-IUSE="doc hyperestraier mysql ruby python static-libs subversion"
+IUSE="hyperestraier mysql python ruby static-libs subversion"
+RESTRICT="test"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
-RDEPEND=">=dev-libs/glib-2.4
-	ruby? ( dev-ruby/ruby-glib2 )
+RDEPEND="dev-libs/glib:2
 	hyperestraier? ( app-text/hyperestraier )
-	subversion? (
-		>=dev-libs/apr-1
-		dev-vcs/subversion
-	)
 	mysql? ( dev-db/mysql )
 	python? (
 		${PYTHON_DEPS}
 		dev-python/pygobject:2[${PYTHON_USEDEP}]
 		dev-python/pygtk:2[${PYTHON_USEDEP}]
-	)"
-#	test? ( app-dicts/uconv )
-
-DEPEND="${DEPEND}
+	)
+	ruby? ( dev-ruby/ruby-glib2 )
+	subversion? ( dev-vcs/subversion )"
+DEPEND="${RDEPEND}
 	dev-util/gtk-doc-am
 	dev-util/intltool
-	virtual/pkgconfig
-	doc? ( dev-util/gtk-doc )"
-
-REQUIRED_USE=${PYTHON_REQUIRED_USE}
+	virtual/pkgconfig"
 
-RESTRICT="test"
+PATCHES=(
+	"${FILESDIR}"/${PN}-gentoo.patch
+	"${FILESDIR}"/${PN}-export-symbols.patch
+	"${FILESDIR}"/${PN}-glib-2.32.patch
+)
 
 pkg_setup() {
-	if use python ; then
-		python-single-r1_pkg_setup
-	fi
+	use python && python-single-r1_pkg_setup
 }
 
 src_prepare() {
-	epatch \
-		"${FILESDIR}/${PN}-gentoo.patch" \
-		"${FILESDIR}/${PN}-export-symbols.patch" \
-		"${FILESDIR}/${PN}-glib-2.32.patch"
+	sed -i \
+		-e "s/use_est=yes/use_est=$(usex hyperestraier)/" \
+		-e "s/use_mysql=yes/use_mysql=$(usex mysql)/" \
+		configure.ac
 
-	if ! use hyperestraier ; then
-		sed -i -e "s/use_est=yes/use_est=no/" configure.ac || die
-	fi
-	if ! use mysql ; then
-		sed -i -e "s/use_mysql=yes/use_mysql=no/" configure.ac || die
-	fi
-	if ! use subversion ; then
-		sed -i -e "s/use_svn=yes/use_svn=no/" macros/svn.m4 || die
-	fi
+	sed -i "s/use_svn=yes/use_svn=$(usex subversion)/" macros/svn.m4
 
+	default
 	eautoreconf
 }
 
 src_configure() {
-	local myconf
-
-	# --with-python b0rked hard
-	unset PYTHON
-	use python || myconf="${myconf} --without-python"
-
 	econf \
-		$(use_enable doc gtk-doc) \
-		$(use_with ruby) \
-		$(use_enable static-libs static) \
 		$(use_enable ruby dict-ruby) \
-		${myconf} || die
+		$(use_enable static-libs static) \
+		$(use_with python python "") \
+		$(use_with ruby) \
+		--with-svn-include="${EPREFIX}"/usr/include \
+		--with-svn-lib="${EPREFIX}"/usr/$(get_libdir)
 }
 
 src_install() {
-	emake DESTDIR="${D}" install || die "make install failed"
-
-	find "${ED}/usr/$(get_libdir)/tomoe" \( -name '*.la' -o -name '*.a' \) -type f -delete || die
-	if ! use static-libs ; then
-		find "${ED}" -name '*.la' -type f -delete || die
-	fi
-
-	dodoc AUTHORS ChangeLog NEWS TODO || die
+	default
+	prune_libtool_files --modules
 }


             reply	other threads:[~2017-08-05 14:48 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-05 14:47 Akinori Hattori [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-04-13  3:03 [gentoo-commits] repo/gentoo:master commit in: app-i18n/tomoe/ Sam James
2023-03-30  9:15 Hans de Graaff
2023-03-29  8:49 Hans de Graaff
2022-08-27  8:03 Sam James
2022-04-26  5:41 Sam James
2021-10-12 13:24 Akinori Hattori
2020-04-30 18:37 Andreas Sturmlechner
2020-04-30 18:37 Andreas Sturmlechner
2020-04-30 18:37 Andreas Sturmlechner
2020-03-09 19:29 Mike Gilbert
2020-03-09 19:29 Mike Gilbert
2020-02-09 16:11 Michał Górny
2019-08-28 11:17 Thomas Deutschmann
2019-08-24 10:30 Thomas Deutschmann
2019-04-09  5:53 Hans de Graaff
2019-02-06 13:50 Akinori Hattori
2019-02-06 13:50 Akinori Hattori
2018-04-27  7:09 Hans de Graaff
2018-04-03 16:40 Mike Gilbert
2018-03-05 14:31 Agostino Sarubbo
2018-03-04  6:51 Thomas Deutschmann
2017-08-12 13:44 Akinori Hattori
2017-08-05 14:47 Akinori Hattori
2017-08-05 14:47 Akinori Hattori
2016-11-13 10:32 Hans de Graaff
2016-10-09  7:56 Pacho Ramos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1501944451.231f4e431067c62ba7684fe80050e5a5e9d8d279.hattya@gentoo \
    --to=hattya@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox