1 |
commit: d45554ecec3f75f3387b5bb855a83b2c23fc02a4 |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Thu Aug 31 18:36:57 2017 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 31 19:52:53 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d45554ec |
7 |
|
8 |
app-i18n/libpinyin: Add live ebuild. |
9 |
|
10 |
app-i18n/libpinyin/libpinyin-9999.ebuild | 61 ++++++++++++++++++++++++++++++++ |
11 |
1 file changed, 61 insertions(+) |
12 |
|
13 |
diff --git a/app-i18n/libpinyin/libpinyin-9999.ebuild b/app-i18n/libpinyin/libpinyin-9999.ebuild |
14 |
new file mode 100644 |
15 |
index 00000000000..e5df0d1c77a |
16 |
--- /dev/null |
17 |
+++ b/app-i18n/libpinyin/libpinyin-9999.ebuild |
18 |
@@ -0,0 +1,61 @@ |
19 |
+# Copyright 1999-2017 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+ |
22 |
+EAPI="6" |
23 |
+ |
24 |
+inherit autotools |
25 |
+ |
26 |
+if [[ "${PV}" == "9999" ]]; then |
27 |
+ inherit git-r3 |
28 |
+ |
29 |
+ EGIT_REPO_URI="https://github.com/libpinyin/libpinyin" |
30 |
+fi |
31 |
+ |
32 |
+LIBPINYIN_MODEL_VERSION="14" |
33 |
+ |
34 |
+DESCRIPTION="Library to deal with pinyin" |
35 |
+HOMEPAGE="https://github.com/libpinyin/libpinyin https://sourceforge.net/projects/libpinyin/" |
36 |
+if [[ "${PV}" == "9999" ]]; then |
37 |
+ SRC_URI="" |
38 |
+else |
39 |
+ SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+fi |
41 |
+SRC_URI+=" mirror://sourceforge/${PN}/models/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz -> ${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-3+" |
44 |
+SLOT="0/13" |
45 |
+KEYWORDS="" |
46 |
+IUSE="" |
47 |
+ |
48 |
+RDEPEND="dev-libs/glib:2 |
49 |
+ sys-libs/db:=" |
50 |
+ |
51 |
+DEPEND="${RDEPEND} |
52 |
+ virtual/libintl |
53 |
+ virtual/pkgconfig" |
54 |
+ |
55 |
+src_unpack() { |
56 |
+ if [[ "${PV}" == "9999" ]]; then |
57 |
+ git-r3_src_unpack |
58 |
+ else |
59 |
+ unpack ${P}.tar.gz |
60 |
+ fi |
61 |
+} |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ |
66 |
+ ln -s "${DISTDIR}/${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" "data/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" || die |
67 |
+ sed -e "/^\twget .*\/model${LIBPINYIN_MODEL_VERSION}\.text\.tar\.gz$/d" -i data/Makefile.am || die |
68 |
+ |
69 |
+ eautoreconf |
70 |
+} |
71 |
+ |
72 |
+src_configure() { |
73 |
+ econf --disable-static |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ default |
78 |
+ find "${D}" -name "*.la" -delete || die |
79 |
+} |