# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /sources/linux/gentoo/portage.local/sys-devel/pcsc-lite/pcsc-lite-1.1.1.ebuild,v 1.3 2002/09/27 07:37:03 rael Exp $ S=${WORKDIR}/${P} DESCRIPTION="A smartcard development library" HOMEPAGE="http://www.linuxnet.com/middle.html" LICENSE="as-is" KEYWORDS="x86" SLOT="0" SRC_URI="http://www.linuxnet.com/middleware/files/pcsc-lite-1.1.1.tar.gz" DEPEND="sys-devel/make sys-devel/libtool" src_unpack () { unpack ${A} cd ${WORKDIR} patch -p0 < ${FILESDIR}/${PN}-1.1.1-patch1.diff patch -p0 < ${FILESDIR}/${PN}-1.1.1-patch2.diff patch -p0 < ${FILESDIR}/${PN}-1.1.1-patch3.diff } src_compile() { ./configure \ --enable-confdir=/etc \ --prefix=/usr || die "./configure failed" emake || die } src_install () { emake prefix=${D}/usr install || die dodoc AUTHORS COPYING ChangeLog DRIVERS HELP INSTALL NEWS README SECURITY insinto /usr/share/doc/${P} doins doc/*.pdf doc/README.DAEMON insinto /usr/share/pcsc-lite/utils insopts -m755 doins src/utils/bundleTool src/utils/formaticc src/utils/installifd insopts -m644 doins src/utils/README src/utils/sample.* insinto /etc doins etc/reader.conf insinto /etc/init.d insopts -m755 newins doc/pcscd.startup pcscd }