# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" #inherit eutils if [[ ${PV} == "9999" ]] ; then ECVS_SERVER="cvs.comedi.org:/cvs/comedi" ECVS_MODULE="comedilib" ECVS_LOCALNAME="${P}" inherit cvs SRC_URI="" else SRC_URI="http://www.comedi.org/download/${P}.tar.gz" fi DESCRIPTION="Userspace interface to Comedi kernel modules." HOMEPAGE="http://www.comedi.org" IUSE="python ruby doc" KEYWORDS="x86" LICENSE="LGPL-2.1" SLOT="0" DEPEND=">=sci-misc/comedi-headers-${PV} sys-devel/flex sys-devel/bison python? ( dev-lang/swig dev-lang/python ) ruby? ( dev-lang/swig dev-lang/ruby ) doc? ( app-text/xmlto )" RDEPEND="" src_compile() { if [ "${PV}" == "9999" ] ; then ./autogen.sh fi econf \ $(use_enable python python-binding) \ $(use_enable ruby ruby-binding) \ $(use_enable doc docbook-binding) \ || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" keepdir /var/calibrations # comedi.h already installed by sci-misc/comedi-headers rm ${D}/usr/include/comedi.h || die "failed to remove comedi.h" }