# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit linux-mod eutils MY_P="linux-${PN}" DESCRIPTION="Fusion provides statistical information in the so called Linux /proc file system" HOMEPAGE="http://directfb.org" SRC_URI="http://directfb.org/downloads/Core/${MY_P}-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" S="${WORKDIR}/${MY_P}-${PV}" MODULE_NAMES="fusion(drivers/char:${S}:${S}/linux/drivers/char/${PN})" BUILD_PARAMS="KSRC=${ROOT}${KV_DIR} TOUT=${TMP}/tmp-gas-check" BUILD_TARGETS="all" MODULESD_REALTIME_DOCS="AUTHORS ChangeLog README" src_unpack() { if ! kernel_is 2 6 then die "A Linux kernel of version 2.6 is required." fi unpack ${A} cd ${S} convert_to_m Makefile } src_install() { linux-mod_src_install insinto /usr/include/linux doins "${S}"/linux/include/linux/fusion.h }