1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 KDE_REQUIRED="optional"
9 inherit eutils gnome2-utils kde4-base qt4-r2
13 DESCRIPTION="Automatic subtitle downloader using Napiprojekt database"
14 HOMEPAGE="http://krzemin.iglu.cz/software/qnapi"
15 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
19 KEYWORDS="~amd64 ~x86"
24 DEPEND="dev-libs/qtcore:4
26 gnome? ( gnome-base/gconf )"
30 # fix install paths, remove unneeded files, general cleanup
31 PATCHES=( "${FILESDIR}/${P}-gentoo.diff" )
34 use kde && kde4-base_pkg_setup # get KDEDIR for KDE4
40 use gnome && integr="gnome_integration"
41 use kde && integr="${integr} kde4_integration"
42 KDE4DIR="${KDEDIR}" INTEGRATION_TARGETS="${integr}" eqmake4
46 use gnome && gnome2_gconf_savelist
50 use gnome && gnome2_gconf_install
51 use kde && kde4-base_pkg_postinst
55 use kde && kde4-base_pkg_postrm