summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2017-09-16 22:22:37 +0200
committerMike Gilbert <floppym@gentoo.org>2017-09-18 14:31:02 -0400
commit6b9ddb4e7c2ce01c9f46b243de39361c0eb4e8ae (patch)
tree5fbf06d5eb8e971d9765a0d3832994cc7b9063ba /app-i18n/fcitx-libpinyin
parentapp-i18n/libchewing: Add live ebuild. (diff)
downloadgentoo-6b9ddb4e7c2ce01c9f46b243de39361c0eb4e8ae.tar.gz
gentoo-6b9ddb4e7c2ce01c9f46b243de39361c0eb4e8ae.tar.bz2
gentoo-6b9ddb4e7c2ce01c9f46b243de39361c0eb4e8ae.zip
app-i18n/fcitx-libpinyin: In live ebuild, avoid downloading of data during src_compile() phase.
Diffstat (limited to 'app-i18n/fcitx-libpinyin')
-rw-r--r--app-i18n/fcitx-libpinyin/Manifest1
-rw-r--r--app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.1.ebuild10
-rw-r--r--app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.2.ebuild10
-rw-r--r--app-i18n/fcitx-libpinyin/fcitx-libpinyin-9999.ebuild10
4 files changed, 28 insertions, 3 deletions
diff --git a/app-i18n/fcitx-libpinyin/Manifest b/app-i18n/fcitx-libpinyin/Manifest
index 9ab8f9d89dc8..bb9e3a40cd2f 100644
--- a/app-i18n/fcitx-libpinyin/Manifest
+++ b/app-i18n/fcitx-libpinyin/Manifest
@@ -1,3 +1,4 @@
+DIST fcitx-data-model.text.20161206.tar.gz 15099931 SHA256 5c7024e5735389c471f54b867eda0d98c5a40a5e5e75333a9febac107508f704 SHA512 26450e347b7a211e5abd94acbb9befc8cee7d8fc20e5161ef11b8b9b1ad47cde4f1add5c41484d9af04e4dde2aa748090e297e799ee7f6d2f9fcec3873eee429 WHIRLPOOL ed5ee634d8904ed6578f4e6547eb58762d43e8323d755e9c9dd8562737c652395bec3774124c754a7196df9016ffd4dc51052f07185a30f1d75275b894802c8f
DIST fcitx-libpinyin-0.2.1_dict.tar.xz 10007544 SHA256 1ec33b2c56f98079fa5383b5fffcbe095ec64ffaa07eefebbc5d609136a2fab8 SHA512 7e446ac1e07301d6671f3de1059d099237aeeb46fdb9f68fce40a205cdcb17542345334b13f45b19f356743f92601492d178e6e2d578567c2506bed9c808ccbd WHIRLPOOL 598341a001d4cbb544bf3e3fc4449b1a323fc9ae6d3fc5fe8217b9a15bc2db22fb937e61bae32b3420a6b33d235368d6bd31fecfd1a845d1edd3acda320cb6f3
DIST fcitx-libpinyin-0.3.1_dict.tar.xz 15143832 SHA256 0b553c90d37c36e82ad692803519cb3cf82ae3597ed2f74b1f5251e942c272ae SHA512 3b7501a75dab2f5b83541c71ccac93709f3354f390f322d7b95e4b94e0c4dc6963522759ab52eb77203d787d6d14d3ce1c838dd92ecd0db041a3b7a25008eaa4 WHIRLPOOL 1f655dc2a4439b8ff0583fa88f3d75f2472a8abdeff9132a98d242f2007d3abaf582f8ae31ec18ef693754bdf29788a37f4dda96bd1777d6a43eb1ac8eb6c194
DIST fcitx-libpinyin-0.3.3_dict.tar.xz 15145448 SHA256 cac02fb2ac19d9072d58e2d9383297e21942caf71b528aee8fa36c55c899d1e1 SHA512 1d77bb0a73ef2f94058ad8f991c628097c87b0ea9c7c4480d23c972ff20ea8ea2653113c8100f1611911606fe84a470650e1a2e9cc6d596d3e80960bb00900c2 WHIRLPOOL ea9f470a92ad55fbdc561d0df1ba51414c716fac158c8db28cccd18d2f106339ee8dc9eba03067f2473289f485dd1118ffedee6ea5b0fbcd0517f6ef5e68abb8
diff --git a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.1.ebuild b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.1.ebuild
index abc1b717a0cf..d62dc5fe5c9d 100644
--- a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.1.ebuild
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.1.ebuild
@@ -14,7 +14,7 @@ fi
DESCRIPTION="Chinese LibPinyin input methods for Fcitx"
HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-libpinyin"
if [[ "${PV}" == "9999" ]]; then
- SRC_URI=""
+ 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"
fi
@@ -41,6 +41,14 @@ RDEPEND=">=app-i18n/fcitx-4.2.8
DEPEND="${RDEPEND}
virtual/pkgconfig"
+src_prepare() {
+ if [[ "${PV}" == "9999" ]]; then
+ ln -s "${DISTDIR}/fcitx-data-model.text.20161206.tar.gz" data/model.text.20161206.tar.gz || die
+ fi
+
+ cmake-utils_src_prepare
+}
+
src_configure() {
local mycmakeargs=(
-DENABLE_QT=$(usex dictmanager)
diff --git a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.2.ebuild b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.2.ebuild
index 3952bec12f1b..22dc23285618 100644
--- a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.2.ebuild
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.2.ebuild
@@ -14,7 +14,7 @@ fi
DESCRIPTION="Chinese LibPinyin input methods for Fcitx"
HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-libpinyin"
if [[ "${PV}" == "9999" ]]; then
- SRC_URI=""
+ 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"
fi
@@ -43,6 +43,14 @@ DEPEND="${RDEPEND}
DOCS=(AUTHORS)
+src_prepare() {
+ if [[ "${PV}" == "9999" ]]; then
+ ln -s "${DISTDIR}/fcitx-data-model.text.20161206.tar.gz" data/model.text.20161206.tar.gz || die
+ fi
+
+ cmake-utils_src_prepare
+}
+
src_configure() {
local mycmakeargs=(
-DENABLE_QT=$(usex dictmanager)
diff --git a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-9999.ebuild b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-9999.ebuild
index 8a516cc85645..2453d36ed435 100644
--- a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-9999.ebuild
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-9999.ebuild
@@ -14,7 +14,7 @@ fi
DESCRIPTION="Chinese LibPinyin input methods for Fcitx"
HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-libpinyin"
if [[ "${PV}" == "9999" ]]; then
- SRC_URI=""
+ 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"
fi
@@ -43,6 +43,14 @@ DEPEND="${RDEPEND}
DOCS=(AUTHORS)
+src_prepare() {
+ if [[ "${PV}" == "9999" ]]; then
+ ln -s "${DISTDIR}/fcitx-data-model.text.20161206.tar.gz" data/model.text.20161206.tar.gz || die
+ fi
+
+ cmake-utils_src_prepare
+}
+
src_configure() {
local mycmakeargs=(
-DENABLE_QT=$(usex dictmanager)