public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/tagainijisho/
Date: Fri,  4 Oct 2019 18:43:08 +0000 (UTC)	[thread overview]
Message-ID: <1570214418.a40bbd257936dc1719ea36e274e6fb96c113601a.floppym@gentoo> (raw)

commit:     a40bbd257936dc1719ea36e274e6fb96c113601a
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Wed Oct  2 20:00:51 2019 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Oct  4 18:40:18 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a40bbd25

app-i18n/tagainijisho: Use EAPI="7". Update code for non-live versions.

Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 app-i18n/tagainijisho/tagainijisho-9999.ebuild | 49 ++++++++++++++++----------
 1 file changed, 30 insertions(+), 19 deletions(-)

diff --git a/app-i18n/tagainijisho/tagainijisho-9999.ebuild b/app-i18n/tagainijisho/tagainijisho-9999.ebuild
index 11c02a413f1..ca0b9b19513 100644
--- a/app-i18n/tagainijisho/tagainijisho-9999.ebuild
+++ b/app-i18n/tagainijisho/tagainijisho-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 2014-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="6"
+EAPI="7"
 
-inherit cmake-utils gnome2-utils
+inherit cmake-utils xdg-utils
 
 if [[ "${PV}" == 9999 ]]; then
 	inherit git-r3
@@ -14,9 +14,15 @@ elif [[ "${PV}" == *_pre* ]]; then
 
 	TAGAINIJISHO_GIT_REVISION=""
 fi
+if [[ "${PV}" != 9999 ]]; then
+	TAGAINIJISHO_VERSION="${PV%_p*_p*}"
+	JMDICT_DATE="${PV#${TAGAINIJISHO_VERSION}_p}"
+	JMDICT_DATE="${JMDICT_DATE%_p*}"
+	JMDICT_DATE="${JMDICT_DATE:0:4}-${JMDICT_DATE:4:2}-${JMDICT_DATE:6}"
+	KANJIDIC2_DATE="${PV#${TAGAINIJISHO_VERSION}_p*_p}"
+	KANJIDIC2_DATE="${KANJIDIC2_DATE:0:4}-${KANJIDIC2_DATE:4:2}-${KANJIDIC2_DATE:6}"
+fi
 if [[ "${PV}" == 9999 || "${PV}" == *_pre* ]]; then
-	JMDICT_DATE=""
-	KANJIDIC2_DATE=""
 	KANJIVG_VERSION="20160426"
 fi
 
@@ -25,15 +31,13 @@ HOMEPAGE="https://www.tagaini.net/ https://github.com/Gnurou/tagainijisho"
 if [[ "${PV}" == 9999 ]]; then
 	SRC_URI=""
 elif [[ "${PV}" == *_pre* ]]; then
-	SRC_URI="https://github.com/Gnurou/${PN}/archive/${TAGAINIJISHO_GIT_REVISION}.tar.gz -> ${P}.tar.gz"
+	SRC_URI="https://github.com/Gnurou/${PN}/archive/${TAGAINIJISHO_GIT_REVISION}.tar.gz -> ${PN}-${TAGAINIJISHO_VERSION}.tar.gz"
 else
-	SRC_URI="https://github.com/Gnurou/${PN}/releases/download/${PV}/${P}.tar.gz"
+	SRC_URI="https://github.com/Gnurou/${PN}/releases/download/${PV}/${PN}-${TAGAINIJISHO_VERSION}.tar.gz"
 fi
-if [[ "${PV}" == *_pre* ]]; then
+if [[ "${PV}" != 9999 ]]; then
 	# Upstream: http://ftp.monash.edu.au/pub/nihongo/JMdict.gz
 	SRC_URI+=" https://home.apache.org/~arfrever/distfiles/JMdict-${JMDICT_DATE}.gz"
-fi
-if [[ "${PV}" == *_pre* ]]; then
 	# Upstream: http://www.edrdg.org/kanjidic/kanjidic2.xml.gz
 	SRC_URI+=" https://home.apache.org/~arfrever/distfiles/kanjidic2-${KANJIDIC2_DATE}.xml.gz"
 fi
@@ -45,27 +49,34 @@ LICENSE="GPL-3+ public-domain"
 SLOT="0"
 KEYWORDS=""
 IUSE=""
+if [[ "${PV}" == 9999 ]]; then
+	PROPERTIES="live"
+fi
 
-RDEPEND=">=dev-db/sqlite-3.12:3
+BDEPEND="dev-qt/linguist-tools:5"
+DEPEND=">=dev-db/sqlite-3.12:3
 	dev-qt/qtcore:5
 	dev-qt/qtnetwork:5
 	dev-qt/qtprintsupport:5
 	dev-qt/qtwidgets:5"
-DEPEND="${RDEPEND}
-	dev-qt/linguist-tools:5"
+RDEPEND="${DEPEND}"
 
 pkg_langs=(ar cs de es fa fi fr hu id it nb nl pl pt ru sv th tr uk vi zh)
 IUSE+=" ${pkg_langs[@]/#/l10n_}"
 unset pkg_langs
 
+if [[ "${PV}" != 9999 ]]; then
+	S="${WORKDIR}/${PN}-${TAGAINIJISHO_VERSION}"
+fi
+
 src_unpack() {
 	if [[ "${PV}" == 9999 ]]; then
 		git-r3_src_unpack
 	elif [[ "${PV}" == *_pre* ]]; then
-		unpack ${P}.tar.gz
-		mv tagainijisho-${TAGAINIJISHO_GIT_REVISION} ${P} || die
+		unpack ${PN}-${TAGAINIJISHO_VERSION}.tar.gz
+		mv ${PN}-${TAGAINIJISHO_GIT_REVISION} ${PN}-${TAGAINIJISHO_VERSION} || die
 	else
-		unpack ${P}.tar.gz
+		unpack ${PN}-${TAGAINIJISHO_VERSION}.tar.gz
 	fi
 
 	if [[ "${PV}" == 9999 ]]; then
@@ -118,7 +129,7 @@ src_unpack() {
 		mkdir "${S}/3rdparty" || die
 		gzip -cd "${distdir}/JMdict-${JMDICT_DATE}.gz" > "${S}/3rdparty/JMdict" || die
 		gzip -cd "${distdir}/kanjidic2-${KANJIDIC2_DATE}.xml.gz" > "${S}/3rdparty/kanjidic2.xml" || die
-	elif [[ "${PV}" == *_pre* ]]; then
+	else
 		mkdir "${S}/3rdparty" || die
 		pushd "${S}/3rdparty" > /dev/null || die
 
@@ -181,9 +192,9 @@ src_configure() {
 }
 
 pkg_postinst() {
-	gnome2_icon_cache_update
+	xdg_icon_cache_update
 }
 
 pkg_postrm() {
-	gnome2_icon_cache_update
+	xdg_icon_cache_update
 }


             reply	other threads:[~2019-10-04 18:43 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-04 18:43 Mike Gilbert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-09 18:54 [gentoo-commits] repo/gentoo:master commit in: app-i18n/tagainijisho/ Matt Turner
2023-12-10 18:31 Mike Gilbert
2023-12-10 18:31 Mike Gilbert
2022-03-09  8:59 Jakov Smolić
2022-01-29 15:20 Yixun Lan
2021-07-01 20:08 Mike Gilbert
2021-07-01 20:08 Mike Gilbert
2021-04-21 18:51 Sam James
2021-04-01 19:57 Mike Gilbert
2021-04-01 19:57 Mike Gilbert
2021-01-17  4:10 Sam James
2020-10-02 17:45 Mike Gilbert
2020-10-02 17:45 Mike Gilbert
2020-07-04 13:53 Mike Gilbert
2020-07-04 13:53 Mike Gilbert
2020-04-02 19:28 Mike Gilbert
2020-01-17 19:09 Mike Gilbert
2020-01-01 22:10 Mike Gilbert
2019-10-04 18:43 Mike Gilbert
2018-07-07  2:03 Mike Gilbert
2018-06-13 14:36 Mike Gilbert
2018-06-13 14:36 Mike Gilbert
2018-04-25 21:28 Aaron Bauman
2018-01-08  7:25 Ulrich Müller
2018-01-08  7:25 Ulrich Müller
2016-03-15 17:46 Denis Dupeyron
2016-03-08 18:56 Denis Dupeyron

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=1570214418.a40bbd257936dc1719ea36e274e6fb96c113601a.floppym@gentoo \
    --to=floppym@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