commit:     8b818d81d96944dd74a7bdd336bb6609242b3095
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Tue Sep 26 21:02:43 2017 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Wed Sep 27 19:56:59 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b818d81

app-i18n/fcitx-libpinyin: Use ${Fcitx_major_version}.9999 version scheme for 
live ebuild.

 .../{fcitx-libpinyin-9999.ebuild => fcitx-libpinyin-4.9999.ebuild}  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-9999.ebuild 
b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-4.9999.ebuild
similarity index 92%
rename from app-i18n/fcitx-libpinyin/fcitx-libpinyin-9999.ebuild
rename to app-i18n/fcitx-libpinyin/fcitx-libpinyin-4.9999.ebuild
index 3497b22a034..3496db3a2e8 100644
--- a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-9999.ebuild
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-4.9999.ebuild
@@ -5,7 +5,7 @@ EAPI="6"
 
 inherit cmake-utils gnome2-utils
 
-if [[ "${PV}" == "9999" ]]; then
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
        inherit git-r3
 
        EGIT_REPO_URI="https://github.com/fcitx/fcitx-libpinyin";
@@ -13,7 +13,7 @@ fi
 
 DESCRIPTION="Chinese LibPinyin input methods for Fcitx"
 HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-libpinyin";
-if [[ "${PV}" == "9999" ]]; then
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
        SRC_URI="https://download.fcitx-im.org/data/model.text.20161206.tar.gz 
-> fcitx-data-model.text.20161206.tar.gz"
 else
        SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz";
@@ -44,7 +44,7 @@ DEPEND="${RDEPEND}
 DOCS=(AUTHORS)
 
 src_prepare() {
-       if [[ "${PV}" == "9999" ]]; then
+       if [[ "${PV}" =~ (^|\.)9999$ ]]; then
                ln -s "${DISTDIR}/fcitx-data-model.text.20161206.tar.gz" 
data/model.text.20161206.tar.gz || die
        fi
 

Reply via email to