# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils linux-info DESCRIPTION="PCMCIA userspace utilities for Linux kernel 2.6.12 and beyond" HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/pcmcia/" SRC_URI="mirror://kernel/linux/utils/kernel/pcmcia/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="debug" DEPEND="dev-util/yacc sys-apps/sed" RDEPEND="!sys-apps/pcmcia-cs >=sys-fs/sysfsutils-1.2.0-r1 >=sys-apps/module-init-tools-3.2_pre1-r1 >=sys-apps/hotplug-20040920 >=sys-apps/coldplug-20040920" src_unpack() { unpack ${A} if use debug; then sed -i -e "s:^\(DEBUG\) = .*:\1 = true:" ${S}/Makefile fi } src_compile() { # pcmciautils doesn't like emake... make CFLAGS="${CFLAGS}" || die "make failed" } src_install() { # pcmciautils doesn't like emake... make DESTDIR=${D} install || die "make install failed" } pkg_postinst() { ewarn ewarn "If you relied on pcmcia-cs to automatically load the" ewarn "appropriate PCMCIA-related modules upon boot, you need" ewarn "to add " ewarn " pcmcia" ewarn "and the PCMCIA socket driver you need for this system" ewarn "(yenta-socket, i82092, i82365, ...) to" ewarn "/etc/modules.autoload.d/kernel-2.6" ewarn }