# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) MY_COMMIT=50fb2eb9ea34cf94e3756b7ddfc601af023267d5 inherit distutils-r1 eutils flag-o-matic python-r1 DESCRIPTION="A python binding for libpoppler-qt5" HOMEPAGE="https://github.com/wbsoft/${PN}" if [[ ${PV} == 9999* ]]; then EGIT_REPO_URI="https://github.com/wbsoft/${PN}" EGIT_CLONE_TYPE="shallow" inherit git-r3 else if [[ ${MY_COMMIT}x != x ]]; then SRC_URI="https://github.com/wbsoft/${PN}/archive/${MY_COMMIT}.tar.gz -> ${PN}-${PV}-${MY_COMMIT}.tar.gz" else SRC_URI="https://github.com/wbsoft/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" fi KEYWORDS="~amd64 ~x86" fi IUSE="" LICENSE="GPL-2" SLOT="0" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND="app-text/poppler:=[qt5] dev-python/PyQt5[${PYTHON_USEDEP}] >=dev-python/sip-4.19[${PYTHON_USEDEP}]" DEPEND="${RDEPEND}" if [[ ${PV} != 9999* ]]; then S=${WORKDIR}/${PN}${MY_COMMIT+-}${MY_COMMIT} fi src_configure() { append-cxxflags -std=c++11 }