# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /mnt/heaven/development/vdict-1.94_alpha4.ebuild 2005/02/20 00:00:00 ipridian

inherit eutils

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"
DESCRIPTION="Vdict - Vietnamese Dictionary"
MY_P="1.94"
SRC_URI="mirror://sourceforge/xvnkb/${PN}-${MY_P}.tar.bz2"
HOMEPAGE="http://xvnkb.sourceforge.net/?menu=vdict&lang=en"
IUSE=""
DEPEND="x11-libs/qt
	sys-libs/gdbm
	media-libs/freetype"
RDEPEND="x11-libs/qt
	sys-libs/gdbm
	media-libs/freetype"
S="${WORKDIR}/${PN}-${MY_P}"

src_compile() {
	cd ${S}
	emake || die "emake failed"
}

src_install() {
	mkdir ${D}usr && mkdir ${D}usr/bin || die
	cp ${S}/fd/fd ${D}usr/bin || die
	cp ${S}/vd/vd ${D}usr/bin || die
	cp ${S}/utils/wd2vd ${D}usr/bin || die
}

pkg_postinst() {
	einfo "Now that you have"
	einfo "installed vdict,"
	einfo "to setup the databases"
	einfo "please emerge vdict-dictionaries"
	einfo "and don't forget to import them later in vdict."
}