summaryrefslogtreecommitdiff
blob: a03837ab782e5976893a66e409c4af1879422bc1 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-dicts/gwaei/gwaei-0.15.1.ebuild,v 1.1 2009/03/02 14:55:11 matsuu Exp $

inherit autotools eutils gnome2-utils

DESCRIPTION="Japanese-English Dictionary for GNOME"
HOMEPAGE="http://gwaei.sourceforge.net/"
SRC_URI="mirror://sourceforge/gwaei/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gnome libsexy nls"

RDEPEND=">=x11-libs/gtk+-2.12
	>=net-misc/curl-7.18
	>=dev-libs/glib-2.16.5
	gnome? (
		>=gnome-base/libgnome-2.22
		>=gnome-base/gconf-2.22
	)
	libsexy? ( >=x11-libs/libsexy-0.1.11 )
	nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
	nls? ( >=sys-devel/gettext-0.17 )
	dev-util/pkgconfig"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}/${P}-parallel-install.patch"
	eautomake
}

src_compile() {
	econf \
		$(use_enable gnome gconf) \
		$(use_enable gnome) \
		$(use_enable libsexy) \
		$(use_enable nls) \
		--disable-schemas-install || die
	emake || die
}

src_install() {
	emake DESTDIR="${D}" install || die

	rm -rf "${D}/usr/share/doc/${P}"
	dodoc AUTHORS ChangeLog NEWS README
}
pkg_preinst() {
	if use gnome ; then
		gnome2_gconf_savelist
		gnome2_icon_savelist
	fi
}

pkg_postinst() {
	use gnome && gnome2_gconf_install
}