Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/libkkc/
Date: Sun, 29 Sep 2019 02:56:49
Message-Id: 1569725773.8289adcfd545d29f51fd1f0c952209228def7b50.floppym@gentoo
1 commit: 8289adcfd545d29f51fd1f0c952209228def7b50
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Sat Sep 28 02:22:22 2019 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 29 02:56:13 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8289adcf
7
8 app-i18n/libkkc: Add live ebuild.
9
10 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 app-i18n/libkkc/libkkc-9999.ebuild | 67 ++++++++++++++++++++++++++++++++++++++
14 1 file changed, 67 insertions(+)
15
16 diff --git a/app-i18n/libkkc/libkkc-9999.ebuild b/app-i18n/libkkc/libkkc-9999.ebuild
17 new file mode 100644
18 index 00000000000..971d75ef2cb
19 --- /dev/null
20 +++ b/app-i18n/libkkc/libkkc-9999.ebuild
21 @@ -0,0 +1,67 @@
22 +# Copyright 2013-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI="7"
26 +PYTHON_COMPAT=(python{3_6,3_7})
27 +
28 +inherit autotools python-any-r1 vala
29 +
30 +if [[ "${PV}" == "9999" ]]; then
31 + inherit git-r3
32 +
33 + EGIT_REPO_URI="https://github.com/ueno/libkkc"
34 +elif [[ "${PV}" == *_pre* ]]; then
35 + LIBKKC_GIT_REVISION=""
36 +fi
37 +
38 +DESCRIPTION="Japanese Kana Kanji conversion input method library"
39 +HOMEPAGE="https://github.com/ueno/libkkc"
40 +if [[ "${PV}" == "9999" ]]; then
41 + SRC_URI=""
42 +elif [[ "${PV}" == *_pre* ]]; then
43 + SRC_URI="https://github.com/ueno/${PN}/archive/${LIBKKC_GIT_REVISION}.tar.gz -> ${P}.tar.gz"
44 +else
45 + SRC_URI="https://github.com/ueno/${PN}/releases/download/v${PV}/${P}.tar.gz"
46 +fi
47 +
48 +LICENSE="GPL-3+"
49 +SLOT="0"
50 +KEYWORDS=""
51 +IUSE="nls static-libs"
52 +
53 +BDEPEND="$(python_gen_any_dep 'dev-libs/marisa[python,${PYTHON_USEDEP}]')
54 + $(vala_depend)
55 + dev-libs/gobject-introspection
56 + virtual/pkgconfig
57 + nls? ( sys-devel/gettext )"
58 +DEPEND="dev-libs/glib:2
59 + dev-libs/json-glib
60 + dev-libs/libgee:0.8
61 + dev-libs/marisa
62 + nls? ( virtual/libintl )"
63 +RDEPEND="${DEPEND}"
64 +
65 +if [[ "${PV}" == *_pre* ]]; then
66 + S="${WORKDIR}/libkkc-${LIBKKC_GIT_REVISION}"
67 +fi
68 +
69 +python_check_deps() {
70 + has_version -b "dev-libs/marisa[python,${PYTHON_USEDEP}]"
71 +}
72 +
73 +src_prepare() {
74 + default
75 + eautoreconf
76 + vala_src_prepare
77 +}
78 +
79 +src_configure() {
80 + econf \
81 + $(use_enable nls) \
82 + $(use_enable static-libs static)
83 +}
84 +
85 +src_install() {
86 + default
87 + find "${D}" -name "*.la" -type f -delete || die
88 +}