| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/Attic/hal-0.4.5-r2.ebuild,v 1.8 2005/04/09 12:59:48 corsair Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/Attic/hal-0.4.5-r2.ebuild,v 1.9 2005/04/24 10:27:20 dsd Exp $ |
| 4 | |
4 | |
| 5 | inherit eutils python linux-info versionator flag-o-matic |
5 | inherit eutils python linux-info versionator flag-o-matic |
| 6 | |
6 | |
| 7 | DESCRIPTION="Hardware Abstraction Layer" |
7 | DESCRIPTION="Hardware Abstraction Layer" |
| 8 | HOMEPAGE="http://www.freedesktop.org/Software/hal" |
8 | HOMEPAGE="http://www.freedesktop.org/Software/hal" |
| … | |
… | |
| 32 | |
32 | |
| 33 | # We need to run at least a 2.6.10 kernel, this is a |
33 | # We need to run at least a 2.6.10 kernel, this is a |
| 34 | # way to ensure that to some extent |
34 | # way to ensure that to some extent |
| 35 | pkg_setup() { |
35 | pkg_setup() { |
| 36 | |
36 | |
| 37 | if get_version; then |
37 | linux-info_pkg_setup |
| 38 | kernel_is ge 2 6 10 && break |
38 | kernel_is ge 2 6 10 \ |
| 39 | else |
|
|
| 40 | RKV=$(uname -r) |
|
|
| 41 | RKV=${RKV//-*} |
|
|
| 42 | if version_is_at_least "2.6.10" ${RKV}; then |
|
|
| 43 | break |
|
|
| 44 | fi |
|
|
| 45 | fi |
|
|
| 46 | die "You need a 2.6.10 or newer kernel to build this pack" |
39 | || die "You need a 2.6.10 or newer kernel to build this package" |
| 47 | |
40 | |
| 48 | } |
41 | } |
| 49 | |
42 | |
| 50 | src_unpack() { |
43 | src_unpack() { |
| 51 | |
44 | |