# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils eutils

DESCRIPTION="LightLang - electronic dictionary system"
HOMEPAGE="http://lightlang.org.ru"
SRC_URI="ftp://ftp.etc.edu.ru/pub/soft/for_linux/lightlang/apps/stable/${P}.tar.bz2"

EAPI="1"

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

DEPEND="x11-libs/qt:4
		dev-python/PyQt4
		>=dev-python/sip-4.6
		dev-python/python-xlib"
RDEPEND="${DEPEND}"

src_compile() {
		econf || die "econf failed"
		emake || die "emake failed"
}

src_install() {
		cd ${S}
		econf --prefix=${D}/usr || die "reconf failed"
		emake DESTDIR=${D} install || die "install failed"		
}