summaryrefslogtreecommitdiff
blob: 08c18bc3a085f19da4e75fb247821b84c46e0331 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/detect/detect-0.9.72.ebuild,v 1.10 2007/07/15 02:08:20 mr_bones_ Exp $

inherit eutils

DESCRIPTION="library for automatic hardware detection"
HOMEPAGE="http://www.mandrakelinux.com/harddrake/index.php"
SRC_URI="mirror://debian/pool/main/d/detect/${P//-/_}.orig.tar.gz
	mirror://debian/pool/main/d/detect/${P//-/_}-6.1.diff.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND="virtual/libc"

S="${WORKDIR}/${PN}"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${WORKDIR}/${P//-/_}-6.1.diff
	chmod a+rx configure config.sub config.guess
	sed -i '/include.*genhd\.h/s:.*::' src/{detect.h,disk.c}
}

src_compile() {
	econf --with-kernel-source="${ROOT}/usr" || die
	emake || die
}

src_install() {
	make \
		DESTDIR="${D}" \
		localedir="${D}/usr/share/locale" \
		gnulocaledir="${D}/usr/share/locale" \
		install || die
}