blob: f9ca325407a41c6a743fed2f734a68960e9cbde6 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcmcia-cs-pnptools/pcmcia-cs-pnptools-3.2.8.ebuild,v 1.3 2009/02/23 09:56:43 flameeyes Exp $
inherit eutils toolchain-funcs linux-info
MY_P=${P/-pnptools/}
S=${WORKDIR}/${MY_P}
DESCRIPTION="PCMCIA PNP tools for Linux"
HOMEPAGE="http://pcmcia-cs.sourceforge.net"
SRC_URI="mirror://sourceforge/pcmcia-cs/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RDEPEND="!sys-apps/pcmcia-cs"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${MY_P}-move-pnp-ids.patch
epatch ${FILESDIR}/${MY_P}-gcc4.patch
}
pcmcia_cs_configure() {
# output arguments to Configure to assist in debugging
echo "${S}/Configure $@"
${S}/Configure "$@" || die "Configure failed"
return ${?}
}
src_compile() {
pcmcia_cs_configure \
--noprompt \
--kernel=${KV_DIR} \
--target=${D} \
--arch=$(tc-arch-kernel) \
--ucc=$(tc-getCC) \
--kcc=$(tc-getCC) \
--ld=$(tc-getLD) \
--uflags="${CFLAGS}" \
--kflags="$(getfilevar HOSTCFLAGS ${KV_DIR}/Makefile)" \
--srctree \
--nox11 \
--pnp \
|| die "Configure failed"
emake all || die "emake failed"
}
src_install () {
dosbin debug-tools/lspnp debug-tools/setpnp || die "dosbin failed"
insinto /usr/share/misc
doins debug-tools/pnp.ids || die "doins failed"
doman man/lspnp.8 man/setpnp.8 || die "doman failed"
}
|