summaryrefslogtreecommitdiff
blob: f6bd4eb71f019dd8096f48d7b85c7c79112fa549 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-dicts/vdict/vdict-1.97-r1.ebuild,v 1.2 2008/07/27 19:15:32 carlo Exp $

EAPI=1

inherit eutils

DESCRIPTION="Vdict - Vietnamese Dictionary"
SRC_URI="http://xvnkb.sourceforge.net/vdict/${P}.tar.bz2"
HOMEPAGE="http://xvnkb.sourceforge.net/?menu=vdict&lang=en"

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

DEPEND="x11-libs/qt:3
	sys-libs/gdbm
	media-libs/freetype"

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

src_compile() {
	emake CC="$(tc-getCC)" CPP="$(tc-getCC) -E" CXX="$(tc-getCXX)" CXXPP="$(tc-getCC) -E" || die
}

src_install() {
	dobin fd/fd vd/vd utils/wd2vd

	dodoc AUTHORS BUGS ChangeLog README TODO
}

pkg_postinst() {
	elog "You may want to install app-dicts/vdict-* packages"
	elog "to have corresponding dictionaries"
}