# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils distutils DESCRIPTION="A library allowing access to Velleman's K8055 card" HOMEPAGE="http://libk8055.sourceforge.net/" SRC_URI="mirror://sourceforge/libk8055/libk8055.${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="python" DEPEND="dev-libs/libusb python? ( dev-lang/python )" S="${WORKDIR}/src" src_compile() { emake all || die "make failed" if use python; then cd pyk8055 distutils_src_compile fi } src_install() { # make install # use python && make pyinstall dobin k8055 dolib.so libk8055.so libk8055.so.${PV} doman man/* if use python; then cd pyk8055 distutils_src_install fi }