# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils SLOT="2.1" LICENSE="BSD" KEYWORDS="~x86 ~amd64" DESCRIPTION="Plugins for libcdorganizer, including KDS CDM-751 and Dacal DC-300" SRC_URI="http://libcdorganizer.sourceforge.net/download/${P}.tar.bz2" HOMEPAGE="http://libcdorganizer.sourceforge.net" IUSE="kdscdm751 dacaldc300" DEPEND="=dev-libs/libusb-0.1* =sys-devel/automake-1.10* >=sys-devel/libtool-1.5 >=sys-devel/autoconf-2.61 =dev-libs/libcdorganizer-2.1*" src_compile() { local myconf if use !kdscdm751 ; then myconf="${myconf} --enable-kdscdm751=no" fi if use !dacaldc300 ; then myconf="${myconf} --enable-dacaldc300=no" fi econf ${myconf} || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" } src_postinst() { einfo "Make sure that your user is part of the usb group to use this library on any USB modules..." }