# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

inherit eutils toolchain-funcs

DESCRIPTION="Read a file over HTTP as a block device."
HOMEPAGE="http://patraulea.com/nbd-http/"
SRC_URI="http://patraulea.com/${PN}/src/${P}.tgz"

LICENSE="|| ( GPL-2 GPL-3 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND=""

src_compile() {
	emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" || die
}

src_install() {
	dodoc ChangeLog README || die
	dobin ${PN} || die
}