# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils qt4 DESCRIPTION="GoldenDict is feature-rich dictionary lookup program" HOMEPAGE="http://goldendict.berlios.de/" SRC_URI="http://download.berlios.de/goldendict/${P}-src.tar.bz2" LICENSE="GPL3" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" RDEPEND="dev-libs/libzip media-libs/libvorbis" DEPEND="${RDEPEND}" src_compile() { echo ${PN} eqmake4 ${PN}.pro || die "eqmake4 failed" emake || die "emake failed" } src_install(){ into /usr dobin ${PN} || die "Installation failed" cp icons/programicon.png icons/${PN}.png doicon icons/${PN}.png || die "Failed to install icon" make_desktop_entry ${PN} ${PN} ${PN}.png "Utility;Dictionary;Office" || die "Failed to create a shourtcut" }