blob: 045d9d6ad1f2fe1c299aefa51e57c29e59170efa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit gnome2-utils
DESCRIPTION="Japanese-English Dictionary for GNOME"
HOMEPAGE="http://gwaei.sourceforge.net/"
SRC_URI="mirror://sourceforge/gwaei/${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gtk hunspell nls mecab test"
RESTRICT="!test? ( test )"
RDEPEND="
>=net-misc/curl-7.20.0
>=dev-libs/glib-2.31
gtk? (
x11-libs/gtk+:3
>=app-text/gnome-doc-utils-0.14.0
)
hunspell? ( app-text/hunspell )
nls? ( virtual/libintl )
mecab? ( app-text/mecab )"
DEPEND="${RDEPEND}
gtk? (
x11-themes/gnome-icon-theme-symbolic
>=app-text/gnome-doc-utils-0.14.0
)"
BDEPEND="
app-text/rarian
dev-util/intltool
virtual/pkgconfig
nls? ( >=sys-devel/gettext-0.17 )
test? (
app-text/docbook-xml-dtd:4.1.2
app-text/scrollkeeper-dtd
)"
src_configure() {
econf \
--disable-static \
$(use_with gtk gnome) \
$(use_enable nls) \
$(use_with hunspell) \
$(use_with mecab)
}
src_install() {
default
# no static archives
find "${ED}" -name '*.la' -delete || die
}
pkg_preinst() {
use gtk && gnome2_schemas_savelist
}
pkg_postinst() {
use gtk && gnome2_schemas_update
}
pkg_postrm() {
use gtk && gnome2_schemas_update
}
|