# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="4" inherit eutils myPN="sigrok" if [[ ${PV} == "9999" ]] ; then inherit autotools git-2 KEYWORDS="" EGIT_REPO_URI="git://${myPN}.git.sourceforge.net/gitroot/${myPN}/${myPN}" else KEYWORDS="~amd64 ~x86" SRC_URI="mirror://sourceforge/project/${myPN}/${myPN}/${PV}/${P}.tar.bz2" fi DESCRIPTION="libsigrokdecode - Free/Libre/Open-Source logic analyzer" HOMEPAGE="http://sigrok.org" LICENSE="GPL-2" SLOT="0" IUSE="" DEPEND=">=dev-lang/python-3" RDEPEND="${DEPEND}" src_prepare() { if [ "${PV}" = "9999" ]; then export S="${S}"/${PN} cd "${S}" eautoreconf fi } src_configure() { local py3ver py3ver="$(python3 -V 2>&1 | sed -e 's/Python\ //' -e 's/\([0-9]\+\.[0-9]\+\).*/\1/')" PYTHON3_CONFIG=python-config-${py3ver} econf }