blob: d28180fbbfa6cf29e460da634527e196206068f2 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/kudzu-knoppix/kudzu-knoppix-1.1.36-r1.ebuild,v 1.1 2004/10/16 14:51:44 wolf31o2 Exp $
MY_PV=${PV}-2
S=${WORKDIR}/kudzu-${PV}
DESCRIPTION="Knoppix version of the Red Hat hardware detection tools"
HOMEPAGE="http://www.knopper.net/"
SRC_URI="http://developer.linuxtag.net/knoppix/sources/${PN}_${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64 ppc alpha -sparc -mips"
IUSE="livecd"
RDEPEND="!livecd? ( dev-libs/newt )"
DEPEND="$RDEPEND
!livecd? ( sys-devel/gettext )
!livecd? ( sys-libs/slang )
sys-apps/pciutils
!livecd? ( >=dev-libs/dietlibc-0.20 )
!sys-apps/kudzu"
src_compile() {
if use livecd; then
emake libkudzu.a || die
else
emake || die
fi
if [ "${ARCH}" = "x86" -o "${ARCH}" = "ppc" ]
then
cd ddcprobe || die
emake || die
fi
}
src_install() {
if use livecd; then
dodir /etc/sysconfig
dodir /usr/include/kudzu
insinto /usr/include/kudzu
doins *.h
dolib.a libkudzu.a
else
einstall install-program DESTDIR=${D} PREFIX=/usr \
MANDIR=/usr/share/man || die "Install failed"
fi
if [ "${ARCH}" = "x86" -o "${ARCH}" = "ppc" ]
then
cd ${S}/ddcprobe || die
dosbin ddcxinfo ddcprobe || die
fi
}
|