# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" WANT_AUTOMAKE="1.11" AT_M4DIR=./config # for aclocal called by eautoreconf EGIT_REPO_URI="git://github.com/zfs-linux/lzfs.git" EGIT_BRANCH="master" inherit git eutils autotools linux-mod DESCRIPTION="ZFS POSIX layer for Linux" HOMEPAGE="https://github.com/zfs-linux/lzfs" SRC_URI="" LICENSE="CDDL GPL-2" SLOT="0" KEYWORDS="" IUSE="" DEPEND="=sys-devel/spl-9999 =sys-fs/zfs-9999 >=virtual/linux-sources-2.6.32" RDEPEND="${DEPEND} !sys-fs/zfs-fuse" src_prepare() { #epatch "${FILESDIR}"/${P}-includedir.patch ewarn "WARNING: I was written without ebuild writing GNU toolchain skills! Please fix me, if you can! Thanks!" eautoreconf } src_configure() { set_arch_to_kernel econf \ --with-linux="${KERNEL_DIR}" --with-linux-obj="${KERNEL_DIR}" \ --with-spl=/usr/include/spl --with-spl-obj=/usr/include/spl/module \ --with-zfs=/usr/include/zfs --with-zfs-obj=/usr/include/zfs/module } src_compile() { set_arch_to_kernel default # _not_ the one from linux-mod } src_install() { emake DESTDIR="${D}" install || die 'emake install failed' }