# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit rpm eutils RH_REV=10 DESCRIPTION="Linux Driver support for the CoolKey and CAC products" HOMEPAGE="http://directory.fedora.redhat.com/wiki/CoolKey" SRC_URI="mirror://fedora/6/source/SRPMS/${P}-${RH_REV}.src.rpm" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="nss static" RDEPEND="sys-apps/pcsc-lite sys-libs/zlib" DEPEND="${RDEPEND} dev-util/pkgconfig nss? ( dev-libs/nss )" src_unpack() { rpm_src_unpack cd "${S}" for p in "${WORKDIR}"/*.patch; do epatch "${p}" done sed -i 's#src/install##' Makefile.am Makefile.in } src_compile() { local nssconf if use nss ; then nssconf="${nssconf}" else nssconf="${nssconf} NSS_CFLAGS=/ NSS_LIBS=/" fi econf \ $(use_enable static) \ ${nssconf} || die emake || die } src_install() { emake install DESTDIR="${D}" || die }