You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/app-dicts/qstardict/qstardict-0.13.1.ebuild

42 lines
904 B

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=1
inherit eutils qt4
DESCRIPTION="QStarDict is a StarDict clone written with using Qt"
HOMEPAGE="http://qstardict.ylsoftware.com/"
SRC_URI="http://qstardict.ylsoftware.com/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ia64"
IUSE="dbus nls"
RDEPEND="
|| (
( x11-libs/qt-core
x11-libs/qt-gui )
=x11-libs/qt-4.3*
)
dbus? ( || ( x11-libs/qt-dbus <x11-libs/qt-4.4[dbus] ) )
>=dev-libs/glib-2.0"
DEPEND="${RDEPEND}"
PROVIDE="virtual/stardict"
src_compile() {
QMAKE_FLAGS=""
if ! use dbus; then
QMAKE_FLAGS+="NO_DBUS=1 "
fi
if ! use nls; then
QMAKE_FLAGS+="NO_TRANSLATIONS=1 "
fi
eqmake4 $QMAKE_FLAGS || die "qmake failed"
emake || die "emake failed"
}
src_install() {
emake INSTALL_ROOT="${D}" install || die "emake install filed"
}