summaryrefslogtreecommitdiff
blob: 0f45b493a69b2ab1481d19d59e0fa65913ab226b (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="6"

DESCRIPTION="Wnn dictionary for librarian"
#HOMEPAGE="http://www.tulips.tsukuba.ac.jp/misc/export/cat/ldic"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
SRC_URI="mirror://gentoo/ldic-${PV}-wnn.txt"

LICENSE="HPND"
SLOT="0"
KEYWORDS="~amd64 ~riscv ~x86"
IUSE=""

DEPEND="app-i18n/freewnn"
S="${WORKDIR}"

src_unpack() {
	:
}

src_compile() {
	local atod=atod
	if has_version "<app-i18n/freewnn-1.1.1_alpha23"; then
		atod="${EPREFIX}"/usr/bin/Wnn4/atod
	fi
	"${atod}" lib.dic < "${DISTDIR}"/${A} || die
}

src_install() {
	insinto /usr/lib/wnn/ja_JP/dic/misc
	doins lib.dic
}

pkg_postinst() {
	elog "lib.dic is installed in ${EPREFIX}/usr/lib/wnn/ja_JP/dic/misc."
	elog "You have to edit your wnnenvrc or eggrc to use it."
}