summaryrefslogtreecommitdiff
blob: 0bd6ac856b0239d1200c9baabf430a2b945c4daf (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwdata-gentoo/hwdata-gentoo-0.3.ebuild,v 1.4 2006/09/05 23:36:01 dberkholz Exp $

inherit eutils

DESCRIPTION="Data for the hwsetup program"
SRC_URI="mirror://gentoo/${P}.tar.bz2
	http://dev.gentoo.org/~wolf31o2/sources/hwdata-gentoo/${P}.tar.bz2"
HOMEPAGE="http://www.gentoo.org"

IUSE="opengl binary-drivers"
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
SLOT="0"
LICENSE="GPL-2"

DEPEND="!sys-apps/hwdata
	!sys-apps/hwdata-knoppix
	!sys-apps/hwdata-redhat"

src_unpack() {
	unpack ${A}
	if use x86 || use amd64
	then
		if use opengl && use binary-drivers
		then
			epatch "${FILESDIR}"/${PV}-fglrx.patch || die "patching for ATI"
			epatch "${FILESDIR}"/${PV}-nvidia.patch || die "patching for nVidia"
		else
			# On amd64/x86, we choose VESA over fbdev
			epatch "${FILESDIR}"/${PV}-nv-vesa.patch || die "patching vesa"
		fi
	else
		# The "nv" driver sucks so much, we choose fbdev, instead
		epatch "${FILESDIR}"/${PV}-nv-fbdev.patch || die "patching fbdev"
	fi
}

src_install() {
	dodoc ChangeLog check-cards
	insinto /usr/share/hwdata
	doins Cards MonitorsDB pcitable blacklist
}