# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 inherit eutils qmake-utils DESCRIPTION="Program that textually or visually compares two PDF files" HOMEPAGE="http://www.qtrac.eu/diffpdf.html" SRC_URI="http://www.qtrac.eu/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" SLOT="0" IUSE="" DEPEND=" app-text/poppler >=dev-qt/qtcore-5.9.3:5 >=dev-qt/qtgui-5.9.3:5 " RDEPEND="${DEPEND}" DOCS="README" src_prepare() { cd .. epatch "${FILESDIR}/diffpdf-qt5.patch" } src_configure() { echo "src_configure: ----------------------------------------------- " echo "src_configure: before '$(qt5_get_bindir)/lrelease diffpdf.pro': " echo "src_configure: ----------------------------------------------- " $(qt5_get_bindir)/lrelease diffpdf.pro || die 'Generating translations failed' echo "src_configure: ----------------------------------------------- " echo "src_configure: before 'eqmake5 PREFIX="${EPREFIX}/usr"': " echo "src_configure: ----------------------------------------------- " eqmake5 PREFIX="${EPREFIX}/usr" } src_install() { echo -n "src_install: before 'pwd': "; pwd echo "src_install: before 'ls -l': "; ls -l echo "src_install: ----------------------------------------------- " echo "src_install: before 'emake INSTALL_ROOT="${D}" install': " echo "src_install: ----------------------------------------------- " emake INSTALL_ROOT="${D}" install echo "src_install: --- after 'default': ---" echo "src_install: before 'ls -l': "; ls -l echo "src_install: ----------------------------------------------- " dobin diffpdf doman diffpdf.1 }