| # Copyright 1999-2014 Gentoo Foundation | |
| # Distributed under the terms of the GNU General Public License v2 | |
| # $Header: /var/cvsroot/gentoo-x86/sci-libs/libsigrok/libsigrok-9999.ebuild,v 1.3 2014/08/04 02:36:55 vapier Exp $ | |
| EAPI="5" | |
| CROS_WORKON_COMMIT="199fe31115c76231746f5953271795d58679561c" | |
| CROS_WORKON_TREE="b2fa8b7e13a75748082ca036acf49cfd97fdd471" | |
| CROS_WORKON_PROJECT="chromiumos/third_party/libsigrok" | |
| CROS_WORKON_EGIT_BRANCH="chromeos" | |
| inherit cros-workon eutils autotools cros-sanitizers | |
| SRC_URI="" | |
| KEYWORDS="*" | |
| DESCRIPTION="provide basic hardware drivers for logic analyzers and input/output file format support" | |
| HOMEPAGE="http://sigrok.org/wiki/Libsigrok" | |
| LICENSE="GPL-3" | |
| SLOT="0" | |
| IUSE="ftdi serial static-libs test usb" | |
| # We also support librevisa, but that isn't in the tree ... | |
| LIB_DEPEND=">=dev-libs/glib-2.32.0[static-libs(+)] | |
| >=dev-libs/libzip-0.8[static-libs(+)] | |
| ftdi? ( >=dev-embedded/libftdi-0.16[static-libs(+)] ) | |
| serial? ( dev-libs/libserialport[static-libs(+)] ) | |
| usb? ( virtual/libusb:1[static-libs(+)] )" | |
| RDEPEND="!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} ) | |
| static-libs? ( ${LIB_DEPEND} )" | |
| DEPEND="${LIB_DEPEND//\[static-libs(+)]} | |
| test? ( >=dev-libs/check-0.9.4 ) | |
| virtual/pkgconfig" | |
| src_prepare() { | |
| [[ ${PV} == "9999" ]] && eautoreconf | |
| } | |
| src_configure() { | |
| sanitizers-setup-env | |
| econf \ | |
| $(use_enable ftdi libftdi) \ | |
| $(use_enable serial libserialport) \ | |
| $(use_enable usb libusb) \ | |
| $(use_enable static-libs static) | |
| } | |
| src_test() { | |
| emake check | |
| } | |
| src_install() { | |
| default | |
| prune_libtool_files | |
| } |