# Distributed under the terms of the GNU General Public License v2 EAPI=5 PYTHON_COMPAT=( python3_{6..9} ) #inherit cmake-utils eutils pax-utils toolchain-funcs versionator wxwidgets games inherit eutils python-single-r1 #distutils if [[ ${PV} == *9999* ]]; then inherit git-r3 #EGIT_REPO_URI="https://github.com/robertbasic/pugdebug.git" EGIT_REPO_URI="https://github.com/mte90/pugdebug" EGIT_BRANCH="master" else SRC_URI="https://github.com/mte90/pugdebug/archive/${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="x86 amd64" fi DESCRIPTION="standalone debugging client for PHP applications that uses XDebug as the debugging engine" HOMEPAGE="http://pugdebug.com/" LICENSE="GPL-3" SLOT="0" IUSE="" RDEPEND=" ${PYTHON_DEPS} >=dev-lang/python-3.6 >=dev-qt/qtcore-5.4 >=dev-python/PyQt5-5.4 >=dev-python/sip-4.16 dev-python/pygments " DEPEND="${RDEPEND}" src_install() { pushd "$S" # remove .git rm -Rf ".git" # remove other unwanted files rm build.* .gitignore setup.cfg requirements.txt # update shebang mv "app.py" "app.py.org" sed "s~^#! python\$~#!/usr/bin/env $EPYTHON~" < "app.py.org" > "app.py" rm "app.py.org" python_fix_shebang . # install the rest of the app insinto "/usr/share/${PN}" doins -r . # install the loader and its symlink exeinto "/usr/share/${PN}" doexe "app.py" dosym "/usr/share/${PN}/app.py" "/usr/bin/pugdebug" popd # optimize the python python_optimize "${D}/usr/share/${PN}" }