# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit qmake-utils DESCRIPTION="GUI and CLI ST-Link V2(Debugger/Programmer) client" HOMEPAGE="https://github.com/fpoussin/QStlink2/" SRC_URI="https://github.com/fpoussin/QStlink2/archive/v${P}.tar.gz -> ${P}.tar.gz https://github.com/fpoussin/QtUsb/archive/v0.2.1.tar.gz -> QtUsb-0.2.1.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="amd64 x86" IUSE="" DEPEND="dev-qt/qtcore:5 virtual/libusb:0" RDEPEND="${DEPEND}" S="${WORKDIR}/QStlink2-${PV}" src_prepare() { rmdir "${S}/QtUsb" mv "${WORKDIR}/QtUsb-0.2.1" "${S}/QtUsb" eapply_user } src_configure() { eqmake5 } src_install() { emake INSTALL_ROOT="${D}" install }