summaryrefslogtreecommitdiff
blob: bb62ea72f103b718f87f9a8d6ee4316a987f907f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcmcia-cs-cis/pcmcia-cs-cis-3.2.8-r1.ebuild,v 1.5 2007/02/10 06:45:43 steev Exp $

inherit linux-info

MY_P=${P/-cis/}
S=${WORKDIR}/${MY_P}

DESCRIPTION="PCMCIA CIS files for use with pcmciautils"
HOMEPAGE="http://pcmcia-cs.sourceforge.net"
SRC_URI="mirror://sourceforge/pcmcia-cs/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"

IUSE=""
DEPEND="|| ( >=sys-fs/udev-096 >=sys-apps/hotplug-20040920 )
		!sys-apps/pcmcia-cs"

CONFIG_CHECK="PCMCIA_LOAD_CIS"
ERROR_PCMCIA_LOAD_CIS="${P} requires support for loading CIS updates from userspace (CONFIG_PCMCIA_LOAD_CIS)"

src_compile () {
	einfo "No compilation necessary."
}

src_install () {
	insinto /lib/firmware

	cd ${S}/etc/cis
	for file in *.dat; do
		newins ${file} ${file/.dat/.cis}
	done
}