app-i18n/fcitx-libpinyin: Use ${Fcitx_major_version}.9999 version scheme for live...
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Tue, 26 Sep 2017 21:02:43 +0000 (23:02 +0200)
committerMike Gilbert <floppym@gentoo.org>
Wed, 27 Sep 2017 19:56:59 +0000 (15:56 -0400)
app-i18n/fcitx-libpinyin/fcitx-libpinyin-4.9999.ebuild [moved from app-i18n/fcitx-libpinyin/fcitx-libpinyin-9999.ebuild with 92% similarity]

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 3497b22a03431fb770b41b845439673667f816c8..3496db3a2e829182fdd39218531692de0d687632 100644 (file)
@@ -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