# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit qmake-utils DESCRIPTION="Qt/KDE based frontend to diff3" HOMEPAGE="http://kdiff3.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="4" KEYWORDS="amd64 x86 ~amd64-linux" IUSE="qt5" DEPEND=" !qt5? ( dev-qt/qtcore:4 dev-qt/qtgui:4 ) qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtprintsupport:5 dev-qt/qtwidgets:5 ) " RDEPEND="${DEPEND} sys-apps/diffutils " RESTRICT="test" src_prepare() { default # adapt to Gentoo paths sed -e s,documentation.path.*$,documentation.path\ =\ "${EPREFIX}"/usr/share/doc/"${PF}", \ -e s,target.path.*$,target.path\ =\ "${EPREFIX}"/usr/bin, -i src-QT4/kdiff3.pro || die } src_configure() { if use qt5; then eqmake5 "${S}"/src-QT4/kdiff3.pro else eqmake4 "${S}"/src-QT4/kdiff3.pro fi } src_install() { emake INSTALL_ROOT="${D}" install }