* [gentoo-commits] repo/gentoo:master commit in: app-i18n/libpinyin/
@ 2017-08-31 19:53 99% Mike Gilbert
0 siblings, 0 replies; 1+ results
From: Mike Gilbert @ 2017-08-31 19:53 UTC (permalink / raw
To: gentoo-commits
commit: d45554ecec3f75f3387b5bb855a83b2c23fc02a4
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Thu Aug 31 18:36:57 2017 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Thu Aug 31 19:52:53 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d45554ec
app-i18n/libpinyin: Add live ebuild.
app-i18n/libpinyin/libpinyin-9999.ebuild | 61 ++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
diff --git a/app-i18n/libpinyin/libpinyin-9999.ebuild b/app-i18n/libpinyin/libpinyin-9999.ebuild
new file mode 100644
index 00000000000..e5df0d1c77a
--- /dev/null
+++ b/app-i18n/libpinyin/libpinyin-9999.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/libpinyin/libpinyin"
+fi
+
+LIBPINYIN_MODEL_VERSION="14"
+
+DESCRIPTION="Library to deal with pinyin"
+HOMEPAGE="https://github.com/libpinyin/libpinyin https://sourceforge.net/projects/libpinyin/"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+SRC_URI+=" mirror://sourceforge/${PN}/models/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz -> ${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0/13"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND="dev-libs/glib:2
+ sys-libs/db:="
+
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+src_unpack() {
+ if [[ "${PV}" == "9999" ]]; then
+ git-r3_src_unpack
+ else
+ unpack ${P}.tar.gz
+ fi
+}
+
+src_prepare() {
+ default
+
+ ln -s "${DISTDIR}/${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" "data/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" || die
+ sed -e "/^\twget .*\/model${LIBPINYIN_MODEL_VERSION}\.text\.tar\.gz$/d" -i data/Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --disable-static
+}
+
+src_install() {
+ default
+ find "${D}" -name "*.la" -delete || die
+}
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-08-31 19:53 99% [gentoo-commits] repo/gentoo:master commit in: app-i18n/libpinyin/ Mike Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox