/[gentoo-x86]/sci-electronics/sigrok-cli/sigrok-cli-9999.ebuild
Gentoo

Contents of /sci-electronics/sigrok-cli/sigrok-cli-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Apr 8 18:21:21 2015 UTC (4 years, 6 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Drop old Python implementations

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/sigrok-cli/sigrok-cli-9999.ebuild,v 1.1 2014/06/14 06:22:26 vapier Exp $
4
5 EAPI="5"
6
7 PYTHON_COMPAT=( python3_{3,4} )
8 inherit eutils python-single-r1
9
10 if [[ ${PV} == "9999" ]]; then
11 EGIT_REPO_URI="git://sigrok.org/${PN}"
12 inherit git-2 autotools
13 else
14 SRC_URI="http://sigrok.org/download/source/${PN}/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
16 fi
17
18 DESCRIPTION="Command-line client for the sigrok logic analyzer software"
19 HOMEPAGE="http://sigrok.org/wiki/Sigrok-cli"
20
21 LICENSE="GPL-3"
22 SLOT="0"
23 IUSE="+decode"
24 REQUIRED_USE="decode? ( ${PYTHON_REQUIRED_USE} )"
25
26 RDEPEND=">=dev-libs/glib-2.28.0
27 >=sci-libs/libsigrok-0.3.0
28 decode? (
29 >=sci-libs/libsigrokdecode-0.3.0
30 ${PYTHON_DEPS}
31 )"
32 DEPEND="${RDEPEND}
33 virtual/pkgconfig"
34
35 src_prepare() {
36 [[ ${PV} == "9999" ]] && eautoreconf
37
38 # This is fixed after the 0.5.0 release.
39 sed -i \
40 -e '/WITH_SRD=$enableval/s:=$enableval:=$withval:' \
41 configure || die
42 }
43
44 src_configure() {
45 econf $(use_with decode libsigrokdecode)
46 }

  ViewVC Help
Powered by ViewVC 1.1.20