summaryrefslogtreecommitdiff
blob: 1cab4f30f82e71032149ab3af273d7df2acc2fb2 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="5"
GCONF_DEBUG="no"

inherit autotools eutils gnome2 readme.gentoo

DESCRIPTION="A Japanese dictionary program for Gnome"
HOMEPAGE="http://gjiten.sourceforge.net/"
SRC_URI="http://gjiten.sourceforge.net/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""

RESTRICT="test"

RDEPEND="
	>=gnome-base/libgnome-2.2
	>=gnome-base/libgnomeui-2.2
	>=gnome-base/libglade-2
"
DEPEND="${RDEPEND}
	app-text/rarian
	dev-util/intltool
	app-text/xmlto
	app-text/docbook-xml-dtd:4.1.2
	virtual/pkgconfig
"

DISABLE_AUTOFORMATTING="yes"
DOC_CONTENTS="Dictionary files are necessary in order for
Gjiten to function.

Download dictionary files from:
http://ftp.cc.monash.edu.au/pub/nihongo/00INDEX.html#dic_fil

You need kanjidic and edict at a minimum.  Dictionary files
must be converted to UTF-8 format - check the Gjiten help
and README files for details.

A shell script is available from
the Gjiten homepage(${HOMEPAGE}) to
download and convert the dictionary files, but you need
to put the files in /usr/share/gjiten after running the script."

src_prepare() {
	DOCS="AUTHORS BUGS ChangeLog NEWS README TODO"

	epatch "${FILESDIR}"/${P}-pref.patch
	epatch "${FILESDIR}"/${P}-drop-gnome.patch
	epatch "${FILESDIR}"/${P}-desktop.patch

	AM_OPTS="--foreign" eautoreconf
	gnome2_src_prepare
}

src_install() {
	gnome2_src_install
	readme.gentoo_create_doc
}

pkg_postinst() {
	gnome2_pkg_postinst
	readme.gentoo_print_elog
}