# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ MY_PV=${PV//./} DESCRIPTION="Linux/390 Interface to z/VM's Control Program" SRC_URI="http://linuxvm.org/Patches/s390/${PN}${MY_PV}.tgz" HOMEPAGE="http://linuxvm.org/Patches/index.html" LICENSE="GPL-2" KEYWORDS="s390" IUSE="" SLOT="${KV}" DEPEND="" src_unpack() { unpack ${A} epatch ${FILESDIR}/${P}-class_simple.patch } src_compile() { check_KV || die "Cannot find kernel in /usr/src/linux" einfo "Using kernel in /usr/src/linux:- ${KV}" emake INCLUDEDIR=-I/usr/src/linux/include || die "emake failed" make -C /usr/src/linux M="${S}" modules || die "make failed" } src_install() { dosbin mongen monstat hcp dodoc ChangeLog HOW-TO insinto /lib/modules/$KV/kernel/drivers/s390/char doins cpint_mod.ko }