# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-laptop/omnibook/omnibook-20060817-r1.ebuild,v 1.2 2006/12/24 08:13:26 s4t4n Exp $ inherit linux-mod eutils MY_PV="2.${PV}" MY_P="${PN}-${MY_PV}" DESCRIPTION="Linux kernel module for (but not limited to) HP Omnibook support" HOMEPAGE="http://www.sourceforge.net/projects/omnibook" SRC_URI="mirror://sourceforge/omnibook/${MY_P}.tar.gz" LICENSE="GPL-2" KEYWORDS="x86 -ppc" IUSE="" S=${WORKDIR}/${MY_P} MODULE_NAMES="omnibook(char:)" BUILD_TARGETS=" " pkg_setup() { linux-mod_pkg_setup BUILD_PARAMS="KERNEL=${KV_MAJOR}.${KV_MINOR} KSRC=${KV_DIR}" } src_unpack() { unpack ${A} cd ${S} # Patch to fix compilation against kernels >=2.6.19, see bug #158529 [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -eq 6 -a ${KV_PATCH} -gt 18 ] && \ epatch ${FILESDIR}/omnibook-2.6.19.patch } src_compile() { cd misc/obtest emake || die "make obtest failed" linux-mod_src_compile } src_install() { dosbin misc/obtest/obtest dodoc doc/* docinto misc dodoc misc/*.patch misc/*.txt docinto hotkeys dodoc misc/hotkeys/* linux-mod_src_install }