# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 PYTHON_COMPAT=( python3_{3,4,5,6} ) inherit eutils qmake-utils python-single-r1 DESCRIPTION="A Qt 5 QML Plugin that provides access to a Python 3 interpreter from QML." SRC_URI="https://github.com/thp/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" HOMEPAGE="https://thp.io/2011/pyotherside/" KEYWORDS="~amd64" SLOT="0" LICENSE="ISC" REQUIRED_USE="${PYTHON_REQUIRED_USE}" IUSE="debug" RDEPEND=" ${PYTHON_DEPS} dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtsvg:5 dev-qt/qttest:5 dev-qt/qtdeclarative:5" DEPEND="${RDEPEND} virtual/pkgconfig" DOCS=( NEWS README ) src_configure() { if use !debug; then echo "DEFINES += QT_NO_DEBUG_OUTPUT" >> src/src.pro fi eqmake5 pyotherside.pro } src_install() { emake install INSTALL_ROOT="${D}" }